Question: Java programming Square . Trapezoid 4-s2 b Ellipse a+b Rectangle Triangle Circle Parallelogram 2 16 MacBook Air Exercise 1: Write a program that asks the

Java programming  Java programming Square . Trapezoid 4-s2 b Ellipse a+b Rectangle Triangle
Circle Parallelogram 2 16 MacBook Air Exercise 1: Write a program that

Square . Trapezoid 4-s2 b Ellipse a+b Rectangle Triangle Circle Parallelogram 2 16 MacBook Air Exercise 1: Write a program that asks the user which of the following 7 shapes they would like to calculate the 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 b Ellipse A=s. (atb) A ab Rectangle 16 MacBook Air

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!