Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

JavaScript & jQuery - Chapter 2: Homework Assignment

Shapes

Hi!
Class name:
Area of the Triangle:
Area of the Circle: 0
Area of the rectangle: 0
Grand total area of all the shapes: 0
Submit Now

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions