Question: Create a webpage, which use JavaScript ( simpleCalculator . js ) to do the followings: a . Displays 2 textboxes, which should read numbers, and

Create a webpage, which use JavaScript (simpleCalculator.js) to do the followings:
a. Displays 2 textboxes, which should read numbers, and another textbox for the result.
b. Display 4 buttons that hold the arithmetic operation +-** and / respectively.
c. The user should enter the number in the 2 textboxes, and then click on a button.
d. The JS should calculate the result and display it in the result's textbox
Now alter the above JavaScript (simpleCalculator2.js) to do the followings:
a. Make sure that the entered numbers are integers
b. Display error message "Cannot divide by ZERO" when the user selects the operation "/" while the 2nd number is 0.
Create a webpage, which uses JavaScript (geometrics.js) to do the followings:
a. Display 3 radio buttons labeled with "Circle", "Rectangle", and "Right-angle Triangle".
b. Under (or in front of each option) display textboxes to read the sufficient information to calculate the area of each shape
c. When the user clicks on a shape, the script should display the area of the selected shape based on the given information using alert dialog box
Now modify the above script to do the followings:
a. Validate the entries (in the textboxes) that they are positive numbers (0 is not accepted)
Create a webpage, which use JavaScript (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!