Class name: | |
Area of the Triangle: | |
Area of the Circle: | 0 |
Area of the rectangle: | 0 |
Grand total area of all the shapes: | 0 |
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started