Question: java public static void main(String[] args) { // Create a 'switch' structure for menu // option 1 -- call calcRadius method // option 2 --
java
public static void main(String[] args)
{
// Create a 'switch' structure for menu
// option 1 -- call calcRadius method
// option 2 -- call calcArea method
// option 3 -- call calcCircumference method
// (all methods accept a Scanner and return a double
// display the double after it's returned)
int option;
Scanner kb = new Scanner(System.in);
option = displayMenu(kb);
while (option != 4)
{
// Your code goes here:
option = displayMenu(kb);
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
