Question: Create an online mini calculator that can do addition, subtraction, multiplication and division. Each task should have two text boxes and a button. When a
Create an online mini calculator that can do addition, subtraction, multiplication and division.
Each task should have two text boxes and a button. When a button is clicked, the program will
perform a relevant task and result will be displayed under the button. This is an extension to the
inclass exercise where only addition is demonstrated
Rubric
You web page has a meaningful HTML title
Your web page has a header, instructions, labels, and required objects.
Your web page is wellstructured.
HTML codes should be separated with JavaScript codes.
Each button click triggers a function call and the function is defined in the JavaScript file.
Results are displayed under the button and must be correct.
Handle divideby case. Use ifelse statements to make sure the second textbox entry is
not If it is user should see an error message, otherwise, user will see the result.
Good HTML coding structures eg good indentations, correct HTML tags
Submit both HTML and JavaScript file. Your html file name must be in the format of
yourFullNameAssignmenthtml There is no requirement for the JavaScript file name.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
