Find Jobs
Hire Freelancers

Creating a class rectangle using a header file!

$30-5000 USD

Completed
Posted about 21 years ago

$30-5000 USD

Paid on delivery
Task: Create a class Rectangle. Place the class in a .h file. This class should have the private member attributes: · Length · Width The class should have multiple constructors to handle the following: · Default constructor, defaults length and width to 1 · Constructor to set the length and width upon the instantiation of the class The class should also have the following methods (functions): · Display Area · Display Perimeter · Set Length · Set Width · Get Length · Get Width Implement the class in a .cpp file and write a simple driver file (.cpp) that demonstrates that all of the above is working correctly (i.e. make objects with and without data in the constructor, and call each method of the class). Instantiate an object with 4.5 and 8.9 as the length and width. Instantiate a object and allow the length and width to be set by user input. Allow the user to enter a new length and width until the user enters a 0 for length. For each object show the length, width, area and perimeter of the rectangle. The set functions should verify that the length or width are each larger than 0 and less than 20.0. If the width is not in that range, then it should default to 1. If the is not in that range, then it should default to 1. Below is an exact sample on how the program should work! ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform Windows Me Microsoft Office 2000 C++ Visual Studio
Project ID: 2922026

About the project

55 proposals
Remote project
Active 21 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
See private message.
$12 USD in 14 days
5.0 (55 reviews)
4.4
4.4
55 freelancers are bidding on average $10 USD for this job
User Avatar
See private message.
$3.40 USD in 14 days
4.8 (123 reviews)
6.7
6.7
User Avatar
See private message.
$17 USD in 14 days
5.0 (25 reviews)
6.2
6.2
User Avatar
See private message.
$8.50 USD in 14 days
4.6 (148 reviews)
6.1
6.1
User Avatar
See private message.
$8.50 USD in 14 days
4.9 (175 reviews)
5.9
5.9
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (212 reviews)
5.8
5.8
User Avatar
See private message.
$8.50 USD in 14 days
4.9 (48 reviews)
5.4
5.4
User Avatar
See private message.
$8.50 USD in 14 days
4.4 (72 reviews)
5.5
5.5
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (78 reviews)
5.2
5.2
User Avatar
See private message.
$4.25 USD in 14 days
4.9 (26 reviews)
5.1
5.1
User Avatar
See private message.
$17 USD in 14 days
5.0 (53 reviews)
5.1
5.1
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (35 reviews)
5.0
5.0
User Avatar
See private message.
$8.50 USD in 14 days
4.9 (54 reviews)
4.7
4.7
User Avatar
See private message.
$17 USD in 14 days
5.0 (24 reviews)
4.6
4.6
User Avatar
See private message.
$6.80 USD in 14 days
5.0 (6 reviews)
4.5
4.5
User Avatar
See private message.
$14.45 USD in 14 days
5.0 (16 reviews)
4.3
4.3
User Avatar
See private message.
$4.25 USD in 14 days
4.8 (18 reviews)
4.4
4.4
User Avatar
See private message.
$6.80 USD in 14 days
4.2 (111 reviews)
4.4
4.4
User Avatar
See private message.
$25.50 USD in 14 days
4.9 (10 reviews)
3.6
3.6
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (18 reviews)
3.5
3.5
User Avatar
See private message.
$4.25 USD in 14 days
4.9 (19 reviews)
3.5
3.5

About the client

Flag of UNITED STATES
United States
5.0
7
Member since Mar 3, 2003

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.