Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Write a program that keeps track of a simple inventory for a store. While there are still items left in the inventory, ask the user how many items they would like to buy. Then print out how many are left in inventory after the purchase. You should use a while loop for this problem.
We have 20 items in inventory. How many would you like to buy? 4 Now we have 16 left. We have 16 items in inventory. How many would you 11 like to buy? 2 Now we have 14 left. We have 14 items in inventory. How many would you like to buy? 8 Now we have 6 left. We have 6 items in inventory. How many would you like to buy? 5 Now we have 1 left. We have 1 items in inventory. How many would you like to buy? 1 A]l out!


Write A Program That Keeps Track Of A Simple Inventory For A Store While There Are Still Items Left In The Inventory Ask The User How Many Items They Would Like class=