Find Jobs
Hire Freelancers

Shapes

$20-100 USD

Closed
Posted over 19 years ago

$20-100 USD

Paid on delivery
Develop a program to compute the area and perimeter(circumference) of different types of shapes. Your program should contain at least the following classes: Shape, Circle, and Rectangle. Each type of shape should contain methods to compute the area and perimeter. Your program should use an array of Shapes to store at least five different shapes. For example, a circle of radius 2.0, a rectangle with length = 2 and width = 3, another circle with radius = 3.14, another circle with radius = 1.0, and a rectangle with length = 10 and width = 20.5. Your program should then iterate over the array printing the area and perimeter of each shape. You must use a base class for Shape and derive Circle and Rectangle from Shape. Use appropriate inheritance relationships to complete the assignment The program should ask the user for the details of each shape. Below is a sample run of your program. What shape do you want (r or c): r What is the length and width: 10 20 What shape do you want (r or c): c What is the radius: 1.0 What shape do you want (r or c): c What is the radius: 0.5 What shape do you want (r or c): r What is the length and width: 5 5 What shape do you want (r or c): c What is the radius: 10.0 The perimeter of shape 1 is 60. The area of shape 1 is 200. The perimeter of shape 2 is 6.28. The area of shape 2 is 3.14 The perimeter of shape 3... ... WILLING TO PAY $20!!! PLEASE WALK ME THROUGH IT VIA MSN MESSENGER.
Project ID: 11960

About the project

4 proposals
Remote project
Active 18 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
4 freelancers are bidding on average $21 USD for this job
User Avatar
Piece of cake
$20 USD in 1 day
4.9 (21 reviews)
4.9
4.9
User Avatar
Consider ME IN! Consider IT Done! ready to start now select me
$20 USD in 0 day
5.0 (5 reviews)
4.8
4.8
User Avatar
You will get exactly what you want!
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I can give you a walk through and make you understand the same as per your requirement. regards john felix
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Memphis, United States
0.0
2
Member since Oct 22, 2004

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.