Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are to develop software for a simple online shopping situation. The entities

ID: 3641822 • Letter: Y

Question

You are to develop software for a simple online shopping situation. The entities in
this scenario include the web shop, customers, products, orders and invoices. The
shop has a list of products available. A customer logs in, selects products and adds
them to his/her order. When the shopping is complete an invoice with unique invoice
number is generated for the order. There are 10 products in this simple example and
they should be stored in an array. Products can be added and deleted from an order.
Only one customer at a time need be considered. ONLY C++ CODE PLEASE.


Chainsaw CS001 59.95
Bowie_knife BK001 39.95
Samurai_sword SS001 159.95
Axe AX001 29.95
Colt_45 CO001 299.95
Magnum_357 MG001 359.95
Shotgun SG001 158.00
UZZI UZ001 550.95
Machete MT001 49.95
Sniper_rifle SR001 290.95

Explanation / Answer

#include #include #include using namespace std; class Order { private: string customer; string country ; string productList[]; int numProducts ; public: void createOrder(Customer); void add(product); void search(string); void delete(string); void display(); }; class Customer { private: string name; string address; public: void createCust(string, string); void customer(string, string); void getName(); }; class Product { private: string name; string model; float price; public: void readRecord(ifstream&); void createProduct(string, string, float); void getPrice(); void displayDetails(); void getName(); }; void displayDetails(product p) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote