Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

\f

Answered: 1 week ago