|
-
December 8th, 2009, 01:37 PM
#1
Can someone plz help a noob code this program..
These are the instructions for the program that I must follow. I've never done a program where I had to give the user options to choose from. When I say I am a noob, I really mean it. I figured you guys could probably write this kind of program in your sleep. Thanks very much in advance.
Write a Java Program that will allow the user to select the option to calculate data for a circle, a rectangle or triangle. The selected output wil be displayed with explanation in the Java output terminal window.
Create new classes:
Circle
Rectangle
Triangle
CalculateData (program)
Accept input from the keyboard using the Scanner class
User select which geometric shape data will be calculated
All inputs for calculations must be input by the user
Use Math.PI in all circle calculations
Display output using standare output terminal for Java:
Circle selected:
Calculate Area
Calculate Circumference
Output both radius and diameter
Rectangle selected:
Calculate Area
Calculate parameter
Output both length and width
Triangle selected:
Calculate Area
Output both base and Altitude
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|