Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C#:I need some help with this problem: For today's lab you will be creating a store inventory management system. Your program will have to have

C#:I need some help with this problem:

For today's lab you will be creating a store inventory management system. Your program will have to have the following elements. It should allow any number of customers to shop at the store using names to identify each one. The user should be able to select which one is the current customer. Do not worry about making 50 items. If you can only make like 5-10 thats fine. I will finish the rest. The system must contain a list of at least 50 items (repeats are allowed) that can be purchased by the customers.

For a customer to make a purchase they must transfer the items they wish to buy to their own shopping cart. (A Shopping cart list should be maintained for each customer). The user should be able to switch between customers without losing the contents of each customer's cart. The user can select complete purchase and will be presented with a total for that users purchases. Customers should be able to remove items from their cart and return them to the stores inventory. . A customers cart should be removed after her/his purchase is complete.

Every time an item moves to or from a shopping cart the item name and new location should be logged. When a purchase is completed the customer name and total should be logged.

Use the following guidelines to complete this application:

Classes

Classes should be used to represent

Inventory Items

Customers

List(s)

Lists should be used to represent

The stores inventory

Customers shopping carts

Dictionary

A Dictionary should be used to

Track all of the customers - identified by their name

User Options

The user should have the following options

Select current shopper - list of all shoppers and option to create another shopper

View store inventory - list everything the store is selling

View cart - list of everything in the current Customers cart

Add item to cart - allow the user to select an item to add to the current Customers cart and remove it from the stores inventory. (Can be combined with the View store option if you wish)

Remove item from cart - allow the user to select an item to add to the stores inventory and remove it from the current Customers cart. (can be combined with the View cart option if you wish)

Complete purchase - Total up the cost of all of the items in the users cart and display that value. Remove the customer from the dictionary of customers

Exit - Exit the program

Input

All input should be validated and limited to the options presented to the user

The user should not be able to crash the program

Program should continue to run until the user chooses to exit

Extra Information

All variables and methods are named appropriately.

Any information being output to the user should be clear and concise.

The user should be clearly informed of what is occurring throughout the application. When values change or objects are instantiated information about this occurrence should be displayed.

Make sure nothing accesses an object that doesnt exist.

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_2

Step: 3

blur-text-image_3

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago