Question: Program in JavaScript please Write a program that asks the user which of the following 7 shapes they would like to calculate the Exercise 1:

Program in JavaScript please  Program in JavaScript please Write a program that asks the user
which of the following 7 shapes they would like to calculate the

Write a program that asks the user which of the following 7 shapes they would like to calculate the Exercise 1: area of. You can decide how the user makes the decision (entering the name of the shape, or a number representing a shape, etc.) Once the user has made the decision, ask the user for the input variables required to calculate the chosen shape (e.g. if the user picks the square, only the side s will need to be asked for. If the user picks the trapezoid, the user should be asked to enter values for a, b, and h. Calculate the appropriate shape and output the area in the console You can decide whether to end the program after one shape calculation, or whether you want to ask the user if they want to calculate another shape. Square Trapezoid (t b Ellipse (a+b) Rectangle MacBook Air Square Trapezoid al bEllipse a+b Rectangle Triangle Circle 2 Parallelogram A=bh

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 Databases Questions!