JavaScript: Use any of the techniques (including jQuery if you would like to). Be sure to upload your html, js, and css/jquery files if used. /* * Your task is to create a calculator. You can create *...



JavaScript: Use any of the techniques (including jQuery if you would like to). Be sure to upload your html, js, and css/jquery files if used.


/*
* Your task is to create a calculator. You can create
* your calculator using any of the DOM manipulation
* techniques. Use javascript's eval function to perform the calculation.
* If an error occurs, show ERROR on the calculator
* 'screen'.
*
* Example of using eval: var result = eval('10+4*2');
*
* Requirements:
* - Buttons for every digit 0-9
* - Buttons for +, -, /, *
* - Button to backspace or clear <>
* - Button to execute calculation =
* - Calculator 'screen' should update as buttons
* are pressed including numbers, operations, etc
* - Result should show on calculator 'screen'
* - Upon submitting and showing result, calculator
* should reset on next button click, starting new
* calculation
* - If an error occurs, for example inputting ---6,
* calculator 'screen' should output 'ERROR'
* - Calculator 'screen' should fit at least 10
* characters
* - At least 12 CSS styles
*
* Submit your JS file, HTML file, and CSS/jquery
* file.
*/



Refer to the instructions and images:


7<br>8<br>9<br>4.<br>1<br>2<br>+<br>3.<br>

Extracted text: 7 8 9 4. 1 2 + 3.
78*2+3=159<br>7<br>8<br>9<br>4<br>5<br>1<br>3.<br>LO<br>2.<br>

Extracted text: 78*2+3=159 7 8 9 4 5 1 3. LO 2.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here