Write a program that allows the user to enter a letter as a


Write a program that allows the user to enter a letter (as a code) and a real number (as the radius of a circle). If the letter is 'A' your program must calculate the area of the circle. If the letter is 'C' your program must calculate the circumference of the radius. In each case you must print the output using the appropriate message.

You have to use the following two methods for this program:

1) A method that accepts the radius and returns the area. The header of the method could be like public static double Area (double radius )

2) A method that accepts the radius and returns the circumference. The header of the method could be like public static double Circumference(double radius )

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a program that allows the user to enter a letter as a
Reference No:- TGS0595475

Expected delivery within 24 Hours