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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!