I nee help finishing the code that I have started below
Project 15A - Math Application
packag...
Computers and Technology, 22.11.2020 01:00 ggbvalde
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
Answers: 2
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
Answers: 3
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
History, 28.01.2020 00:31
Mathematics, 28.01.2020 00:31
Mathematics, 28.01.2020 00:31
Chemistry, 28.01.2020 00:31
Mathematics, 28.01.2020 00:31
Biology, 28.01.2020 00:31
Biology, 28.01.2020 00:31
Biology, 28.01.2020 00:31
History, 28.01.2020 00:31
Health, 28.01.2020 00:31