Question: Simple code as possible, please. No loops. Starting inventory M&Ms 5 Butterfingers 10 Skittles 2 Snickers 3 Code must reference above as a list. Now
Simple code as possible, please. No loops.
Starting inventory
M&Ms 5 Butterfingers 10 Skittles 2 Snickers 3 Code must reference above as a list.

Now it comes into play - when someone asks for a certain number of say M\&M's - you now need to consult with the list of inventory you have and ensure you can complete the order - if you can the quantity should be subtracted from the Inventory-if the user asks for more than you have, apologize and give them all that you have (and update your inventory) Sorry, we don't have that many... giving you 5 instead Starting with the how many butterfingers ? inventory of: how many skittles ?2 thanks for the order..... 5,10,2,3 your cost will be $18.48
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
