Question: This is a menu driven program that should support the following menu op ons: 1 . Increase Inventory 2 . Decrease Inventory 3 . View
This is a menu driven program that should support the following menu opons:
Increase Inventory Decrease Inventory View Inventory
Quit
When the user selects option ask them for two pieces of information: which game they are buying and how many they are purchasing. If you already have some stock of this game, increase its amount. If not, add this game to your inventory.
When the user selects option ask them for two pieces of information: which game they are buying and how many they are selling. Verify that they can sell this number of games and update the stock. If you do not have that many games in stock, tell the user how many than can sell and remove the game from your inventory.
When the user selects option show them each game in stock along with its stock amount. If the stock is less than include a low stock alert. If the stock is higher than include a prompt to put the game on sale.
When the user selects opon you may terminate the program. There should be no further ouputs.
If the user enters an invalid input at any time, you should reprompt the user for the correct input.
Your program must implement at least functions not including main
Your program must implement a main function that is the starting point of the program and
calls other functions.
Your program must implement at least dictionary. Your program may not include global variables.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
