Question
I am asking for help on my C++ program called Shopping application,that tracks a store's inventory of items and a customer list that allows them
I am asking for help on my C++ program called 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started