Find Jobs
Hire Freelancers

C++ Classes and Objects - Proagramming assigment

$10 USD

Selesai
Disiarkan lebih dari 6 tahun yang lalu

$10 USD

Dibayar semasa penghantaran
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.
ID Projek: 15508965

Tentang projek

7 cadangan
Projek jarak jauh
Aktif 6 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
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 dalam 10 hari
5.0 (9 ulasan)
3.4
3.4
7 pekerja bebas membida secara purata $21 USD untuk pekerjaan ini
Avatar Pengguna
A proposal has not yet been provided
$35 USD dalam 30 hari
5.0 (102 ulasan)
6.2
6.2
Avatar Pengguna
A proposal has not yet been provided
$20 USD dalam 1 hari
4.9 (37 ulasan)
4.8
4.8
Avatar Pengguna
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 dalam 1 hari
5.0 (10 ulasan)
3.9
3.9

Tentang klien

Bendera UNITED STATES
Round Rock, United States
5.0
3
Kaedah pembayaran disahkan
Ahli sejak Feb 1, 2017

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.