PROJECT DETAILS
Create a c++ Program for an online shop, this shop will include
*Online shop
*Products
*Orders
*Invoices
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.
Below are suggested UML type diagrams representing the object types (classes):
Order
-customer
-country string
-productList[]
-numProducts int
+createOrder(Customer)
+add(product)
+search(string)
+delete(string)
+display()
Customer
-name string
-address string
+createCust(string, string)
+Customer(string, string)
+getName()
Product
-name string
-model string
-price float
+readRecord(ifstream&)
+createProduct(string, string, float)
+getPrice()
+displayDetails()
+getName()
Web_shop
-customer
-products[]
-invoiceNumber int
-order
+Web_shop()
+readProducts()
+login()
+runShop()
+generateInvoice()
The file needs to be called [login to view URL]
this is the information that must be contained in the file:
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