Home | How it works | Projects archive | Contact Us
Air Compressor Bot
 
The Career Path of Freelance Programming Jobs 

   Basic Java Program

Bidding Time:
07/10/2004 16:55 - 08/10/2004 16:55
Budget:
$50-50
Status:
Closed

Job Type:
Java
Description:



I need a program that will ask the user for an object (circle or rectangle) and
calculate its circumference or perimeter and its area. I will need you to use a
driver class, a class called Circle and one called Rectangle. The program will
ask the user for an object and expect the user to type in "Rectangle" or
"Circle" and then make a decision based on the input. I will require the
program to use an "if" statement to make the decision about which shape was
entered. Depending on the shape entered, the program should ask for the
following input and then call on the appropriate methods for the object that was
selected.

1 Circle - radius
2 Rectangle - width and height

Notice that this information is not sufficient to tell where the object is
located if we were in an environment where it was necessary to know the actual
points for the center or the corners of the rectangle.

In the output the program should display

1 The shape that was selected
2 The original input values for the shape
3 The calculated values for perimeter (circumference) and area

Example:

The shape you entered was a circle.
The area of a circle with radius 5 is 78.5
The circumference of a circle with radius 5 is 31.4

REQUIREMENTS

1. I need three separate files for this program (1) a main driver class called
ShapeCalculator, (2) a Circle class and (3) a rectangle class

2. I also need UML diagrams and their relationship for all objects and
Pseudocode for the driver (main class) and for one method from each shape class

STOPzilla! Anti-Spyware Software

Related Projects:
Small Assembly Coding Project
Re: Signup Script Modz.
Re:
Alexa Ranking Script
Flash In Director!

This project is the proprietary information of . Click here to remove this project from OUR database.
Operating System:
(I don't know)
Database System:
(None)
<<< back

Recent Projects Archive:

Wednesday - Tuesday - Monday - Sunday - Saturday - Friday - Thursday

View all freelance web projects

 
Home | Projects archive | RSS | Resources | Links | Contact Us © 2004-2009 ProjectsList.biz /0.074