Question: Part A) JAVA Write a program that presents the user a menu of four choices, Circle, Square, Rectangle, and Exit to calculate the area of

Part A) JAVA

Write a program that presents the user a menu of four choices, Circle, Square, Rectangle, and Exit to calculate the area of one of these geometric objects. Once a choice is made, the program would ask the user for the data required to do the calculation. For example, if the user input were Circle, the program would prompt the user to enter the value of the radius of the circle. Implement a solution using only IF statements (IN JAVA)

Part B)

Rewrite your solution to Exercise A) using a SWITCH statement this time.

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!