Question: PLEASE WRITE THE CODE IN JAVA FOR BOTH PARTS THANK U Write a program that inputs the radius of a circle from the user. The

PLEASE WRITE THE CODE IN JAVA FOR BOTH PARTS THANK U

PLEASE WRITE THE CODE IN JAVA FOR BOTH PARTS THANK U Write

Write a program that inputs the radius of a circle from the user. The program should provide the user with the following choices. (1) Enter A or a to calculate area of circle Formula: Area =PI radius radius (2) Enter C or c to calculate circumference of circle Formula: Circumference =2PI radius (3) Enter D or d to calculate diameter of circle Formula: Diameter =2 radius The program should read the choice from the user, perform calculations and display the relevant result. If the user enters an invalid choice, display a relevant error message. Make use of switch statement

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!