Question: Need help with writing it in c++. So far I have part 1 done, so I only need 2 to 5. --- This program simulates
Need help with writing it in c++. So far I have part 1 done, so I only need 2 to 5.
---
This program simulates a simple product ordering system. Provide the functionality to allow your user to create new customers, new products, and new orders. Customers will have orders. Orders will have products. For the three classes below, construct class declarations (.h) and class implementations (.cpp) as separate files. Supply appropriate interaction (input/output) with your user. Again, provide appropriate interaction (input/output) with your user.
1. Class Customer - contains the following:
-Member data: custID, name, address, orderNums (Class Template vector), customerCreationTime, customerCount - static
-Member functions: setters and getters for all member data
2. Class Order - contains the following:
-Member data: orderNum, custID, productNums (Class Template vector), orderCreationTime, orderCount - static
-Member functions: setters and getters for all member data
3. Class Product - contains the following:
-Member data: productNum, productName, productDescription, productCreationTime, productCount - static
-Member functions: setters and getters for all member data
4. Function - void getTime(). When called, provides the date and time via reference parameters. See here for general time example.
5. Function - void outputReport(). Output a report which lists:
-All customers with all member data
-All orders with all member data
-All products with all member data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
