Question: C++: You will create a class called Receipt that has the following attributes o Customer name o Customer purchase date o Array of Items (Items
C++:
- You will create a class called Receipt that has the following attributes o Customer name o Customer purchase date o Array of Items (Items have name and Price) o Total Quantity (money)
- Now create a main in which you ask the user to enter all the attributes of the class and create a receipt.
- Create a Menu in a Loop Form for your program (1-Enter new Order 2-Print Receipt 3-Exit)
- You should include the main.cpp, the receipt.cpp, the receipt.h and the item.cpp and item.h and examples of your files (.txt)
Instructions
- The Lab is worth 20 points
- Create the class of Items- 3points
- Create class of Receipt 3 points
- Correct use of iostream and ostream 3 points
- Visual presentation of receipt 3 points
- Creation of Menu 3 points
- Example of the files 3 point
- Correct use of arrays and variables 2 points
- Bonus: Add the path as an attribute of the receipt class and ask the user to input the path. This is worth 5 points
Basic Rules for the Lab
- The user will not enter the Total Quantity. Once the user has entered all the items he desired, the system will calculate the Total and save that to the array of Receipts
- Each receipt is a different file with the name of the Purchase Name (receipt attribute)
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
