subject

C#:
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. 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 user’s purchases. customers should be able to remove items from their cart and return them to the stores inventory. a customer’s 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 customer’s cart and remove it from the store’s 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 customer’s 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 user’s cart and display that value. remove the customer from the dictionary of customers
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 customer’s 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
extra information
go back through your code and check for the following:
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 doesn’t exist.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The great length of north america causes the climate to be varied. true false
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
You know the right answer?
C#:
for today's lab you will be creating a store inventory management system. your program w...
Questions
question
Mathematics, 12.02.2020 20:32
Questions on the website: 13722359