subject
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();
}

}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
Project 15A - Math Application package: proj15A

Classes: Main, Circle, Rectangular
Questions
question
English, 07.10.2019 21:40
question
Social Studies, 07.10.2019 21:50
Questions on the website: 13722360