Find Jobs
Hire Freelancers

C++ Classes and Objects - Proagramming assigment

$10 USD

Completed
Posted over 6 years ago

$10 USD

Paid on delivery
Looking to find someone who can write this program. Must have 3 files in the project, the one .cpp file that is attached in this assignment. One .cpp file code written by you, and one inventory.h header file. Code must be written in simple starers c++ language and must not use advance procedure, must be very simple to understand please dont use variables such as "this" , "array". ---------------------------------------------------------------------------------------------------------------------------------------- Design an Inventory class that can hold information and calculate data for items in a retail store’s inventory. The class should have the following private member variables: Variable Name Description itemNumber An integer that holds the item’s item number. quantity An integer for holding the quantity of the items on hand. cost A double for holding the wholesale per-unit cost of the item totalCost A double for holding the total inventory cost of the item (calculated as quantity times cost). The class should have the following public member functions: Member Function Description Default Constructor Sets all the member variables to 0. Constructor #2 Accepts an item’s number, cost, and quantity as arguments. The function should copy these values to the appropriate member variables and then call the setTotalCost function. setItemNumber Accepts an integer argument that is copied to the itemNumber member variable. setQuantity Accepts an integer argument that is copied to the quantity member variable. setCost Accepts a double argument that is copied to the cost member variable. setTotalCost Calculates the total inventory cost for the item (quantity times cost) and stores the result in totalCost. getItemNumber Returns the value in itemNumber. getQuantity Returns the value in quantity. getCost Returns the value in cost. getTotalCost Returns the value in totalCost. Test the class with the main program, [login to view URL], provided. Please do modify Program6.cpp. If you do, you will not receive credit for this lab assignment. Input Validation: Do not accept negative values for item number, quantity, or cost.
Project ID: 15508965

About the project

7 proposals
Remote project
Active 6 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
depends Relevant Skills and Experience i am a pro in c++ and oop i can do it asap Proposed Milestones $25 USD - 1
$15 USD in 10 days
5.0 (9 reviews)
3.4
3.4
7 freelancers are bidding on average $21 USD for this job
User Avatar
A proposal has not yet been provided
$35 USD in 30 days
5.0 (102 reviews)
6.2
6.2
User Avatar
A proposal has not yet been provided
$20 USD in 1 day
4.9 (37 reviews)
4.8
4.8
User Avatar
Hi there, We have read your project description, your requirements are fairly simple. We can create this program for you within one day. Relevant Skills and Experience -C++ Programming -OOP Proposed Milestones $30 USD - After Completion of Project
$30 USD in 1 day
5.0 (10 reviews)
3.9
3.9

About the client

Flag of UNITED STATES
Round Rock, United States
5.0
3
Payment method verified
Member since Feb 1, 2017

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.