Find Jobs
Hire Freelancers

64622 Basic Java program

N/A

Completed
Posted over 19 years ago

N/A

Paid on delivery
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
Project ID: 1813004

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I can create simple, concise, and clear Java code to calculate areas and perimeters of rectangles for you. I will also supply the pseudocode and UML diagrams you need. Everything will be done to your complete satisfaction.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Los Angeles, United States
5.0
1
Member since Jun 27, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.