Question
n C# (IN BASIC C#). *** PLEASE DONT COPY THE WRONG AWNSER FROM OTHER QUESTIONS ***** Dont Use NEWKeyword Instructions: Creating a store Product Management
n C# (IN BASIC C#). *** PLEASE DONT COPY THE WRONG AWNSER FROM OTHER QUESTIONS *****
Dont Use NEWKeyword
Instructions: Creating a store Product Management system.
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.
The system must contain a list of at least 10 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. A log class should be set up like Interfaces assignment except this version should write the messages to a file instead of the console window. Every time the current customer is changed the name of the new customer should be logged. 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.
NOTE: The code structure and guidelines are light because this exercise is designed to test your critical thinking skills and see how you apply the skills youve learned throughout the duration of this class.
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
1. Select current shopper - list of all shoppers and option to create another shopper a. Create a New Customer b. Select an Existing Customer 2. View store inventory - list everything the store is selling 3. View cart - list of everything in the current Customers cart 4. 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) 5. 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) 6.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 7. Exit - Exit the program
Logging
A logging class is used to log the required info to file log.txt It is your choice on which method to log with. (log, logW, logD) Required info
Current Customers name every time it changes Item name and location (cart/store inventory) every time it changes Customer name and purchase total when a purchase is completed
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.
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