Design and implement a calculator using HTML, CSS (with Bootstrap) and JavaScript. The calculator will only run in the browser, and must not depend on any server side scripting (C#).
Design and implement a calculator using HTML, CSS (with Bootstrap) and JavaScript. The calculator will only run in the browser, and must not depend on any server side scripting (C#).
Functional requirements:
-A display that shows entry and results
-Number buttons on the calculator
-Supports resetting the calculator (C function)
-Supports clearing the current entry (CE function)
-Handles user errors (e.g. pressing "5++5" leads to "5+5", pressing "5+-5 leads to "5-5")
-Supports using the result in the next calculation
Each element of the calculator needs to be labeled with the following HTML id attribute:
Display: display
Each number button must have the following IDs: 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'
+ button: 'plus'
- button: 'minus'
* button: 'multiply'
/ button: 'divide'
= button: 'equals'
C button: 'reset'
CE button: 'clear'
IDs are used to find buttons on the page, correctly labeling HTML elements with IDs is important for the tests to pass. Wrong labeling of IDs is a common error source!
Please try to organize and comment the JavaScript in a clean and tidy way
(The photo has nothing to do with the question, just uploaded beacause I could not continue without uploading a photo)
![▶ 13Week Group 2 13Week Group Besøk
1 student
Forlate](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc46ac814-2bae-48f8-b3ff-df49b2f61cf9%2F6ada0f69-21cc-4340-8ba6-5828222ec41e%2Fiybr41g_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 6 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)