Question: I need help with creating a javascript page that does the following for my html page. 1. The JavaScript file should contain at least three
I need help with creating a javascript page that does the following for my html page.
1. The JavaScript file should contain at least three variables length1, length2 and length3 and assign values to them.
2. The html file has spaces for you to enter areas of specific shapes (via your JavaScript). All these areas need to be calculated from the three variables defined in item 1 above. Make sure your math is correct in calculating areas. Values need to be filled for ids: classname, triangle, circle, rectangle, and totalarea which display the total area of the three shapes.
Here is my HTML code:
Shapes
| Class name: | |
| Area of the Triangle: | |
| Area of the Circle: | 0 |
| Area of the rectangle: | 0 |
| Grand total area of all the shapes: | 0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
