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 02:10
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
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, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
History, 10.09.2020 05:01
question
English, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01
question
Physics, 10.09.2020 05:01
question
Mathematics, 10.09.2020 05:01