Create a Shopping application that tracks a store's inventory of items and a customer list that allows them to have a shopping cart of items and purchase the items. Allow a user to: -login - either as...


Create a Shopping application that tracks a store's inventory of items and a customer list that allows them to have a shopping cart of items and purchase the items.


Allow a user to:


-login - either as a customer or a manager ( for the manager, have a hard coded password ).
-- list of customers should be stored as a binary file


-create new customer account ( ID and password is all that's needed )


customer 'login' using an ID and password use the hash function to convert the password string before storing the value - https://www.cplusplus.com/reference/functional/hash/ ( still not a great security practice, but better than clear text )


as a manager, manage the store inventory using a menu for:
-add item
-update quantity
-change price
-list all items


-- The inventory should be stored as a binary file on disk


as a customer:


-change password ( use the hash function to convert the password string before storing the value - https://www.cplusplus.com/reference/functional/hash/ )
-clear shopping cart
-buy items in cart
-- this should update the quantity in stock or throw an exception if the quantity in the cart is larger than the quantity in stock
-- display the order total and ask for pretend credit card payment info
-- clears the cart after a successful purchase
-manage shopping cart ( add, update quantity, delete items from cart )
-- each shopping cart should be stored as a binary file so the customer can come back to the cart anytime.

Dec 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here