Question: I need help with this c + + program. please help thank you. Store Invoice Application Write a C - + program containing a class
I need help with this c program. please help thank you.
Store Invoice Application
Write a C program containing a class Invoice and a driver program called InvoiceDriver.cpp
The class Invoice is used in a hardware store to represent an invoice for an item sold at the store.
An invoice class should include the following:
A part number of type string
A part description of type string
A quantity of the item being purchased of type int
A price per item of type int
A class constructor that initializes the four data members
An accessor eg get member function for each of the data member
A mutator ie a set member function for each of the data member
A member function named getinvoiceAmount that calculates the invoice amount ie
multiplies the quantity' by the price per item, then it returns the amount as an int value
The constructor and the mutators functions should take into account the following
conditions:
i If the quantity is not positive, it should be set to
ii If the price per item is not positive, it should be set to
Separate the class definition Invoice cpp from the interface of the class Invoiceh
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
