Classes: Main, Circle, Rectangular
Computers and Technology, 20.11.2020 20:50, nmg9
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();
}
}
Answers: 2
Computers and Technology, 23.06.2019 04:20, milkshakegrande101
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy. a. a fire occurs on the premises, and the building isbadly damaged. b. a burglar steals some money and securities from anunlocked safe. c. a business computer is damaged by vandals whobreak into the shop after business hours. d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm. til
Answers: 2
Computers and Technology, 23.06.2019 15:00, abelxoconda
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
Computers and Technology, 24.06.2019 05:00, alfarodougoy8lvt
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
Project 15A - Math Application
package: proj15A
Classes: Main, Circle, Rectangular
Classes: Main, Circle, Rectangular
History, 05.05.2020 03:32
Mathematics, 05.05.2020 03:32
History, 05.05.2020 03:32
History, 05.05.2020 03:32
Mathematics, 05.05.2020 03:32
History, 05.05.2020 03:32
Biology, 05.05.2020 03:32
Mathematics, 05.05.2020 03:32