subject

I nee help finishing the code that I have started below Project 15A - Math Application
package: proj15A

Classes: Main, Circle, Rectangular

Using your new knowledge of methods and classes create a program with an interface. The program must allow a user to enter values and calculate: Areas, Perimeters, Surface Area, and Volumes for circular and rectangular shapes.

The program must have three classes. A main class, circle class and a rectangular class.

Submit all code one after the other as text into Canvas in the following order.

• main. class
• circle. class
• rect. class

I have it all done just need to finish this code

package math;

import java. util. Scanner;

public class Main
{

public static void main(String[] args)// main method
{
Scanner nScan = new Scanner(System. in);
DecimalFormat mf = new DeciamlFormat("0.0");
Circle cir1 = new Circle(0,0);
Rectangle rec1 = new Rectangle (0,0,0);

//variables
boolean runProg = true;
int choice =0;

while(runProg)
{
System. out. print("Math calculator 3000 ver1");
System. out. print("choose a mode. \n"
+ "1 circle mode \n"
+ "2 Rectangle mode \n"
+ "3 End program");
choice = nScan. nextInt();

if(choice==1) //circle mode
{

}

else if(choice == 2) //Rectangle Mode
{

}

else if(choice == 3) //Program Shutdown
{

}

else
{
System. out. println("You may only choose 1-3. Try again.");
}

}

nScan. close();
}

}

1

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
You know the right answer?
I nee help finishing the code that I have started below Project 15A - Math Application
packag...
Questions
question
Social Studies, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Biology, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
Questions on the website: 13722359