Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mini-Calculator

Smart Duckulator πŸ¦†

Overview

The Smart Duckulator is a simple calculator built using HTML, CSS, and JavaScript. It features a visually appealing design, user-friendly layout, and supports basic arithmetic operations. This project showcases collaborative teamwork and the application of fundamental web development skills.

Features

Basic Operations: Addition, subtraction, multiplication, and division.

Clear Screen: Easily reset calculations with a "CE" button.

Floating-Point Support: Perform calculations with decimal numbers.

Responsive Design: Centered calculator with an engaging design and hover effects for buttons.

Technologies Used

HTML: Structure and layout of the calculator.

CSS: Styling and design elements.

JavaScript: Functional logic for calculator operations.

File Structure

/project-directory β”œβ”€β”€ index.html # Main HTML file β”œβ”€β”€ styles.css # CSS file for styling β”œβ”€β”€ script.js # JavaScript file for functionality └── README.md # Project documentation

How to Use

Clone or download the project files.

Open index.html in any modern web browser.

Use the calculator for basic arithmetic operations:

Enter numbers using the provided buttons.

Perform operations by clicking on operator buttons (+, -, Γ—, Γ·).

Use the = button to compute results.

Press CE to clear the display.

How It Works

Display Functionality:

The display() function appends clicked values to the input field.

Calculation:

The solve() function evaluates the expression in the input field using JavaScript's eval() function.

Clear Screen:

The clearScreen() function resets the input field to an empty state.

Preview

Credits

This project was collaboratively developed by:

Fernando: Led the design efforts and refined the CSS.

Emanuel: Structured and ensured clean HTML.

Jordyn: Implemented the JavaScript logic for calculator operations.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages