You own a Vending Machine Company and you need some software to track the inventory in your one Vending Machine. You hope to grow your business from here, so it is important to get your software running for the one Vending Machine, so that you can add Vending Machines to your business.
1.) Create a folder called Vending.
2.) Create a class called VMachine and save it as VMachine.java.
a. VMachine should list each item (sorted by name, your choice on the sort), cost for each item, and how many of each item in the Vending Machine.
1.) Orange juice - $1.00 (currently 3 left in the vending machine)
2.) Cola - $1.25 (currently 12 left in the vending machine)
3.) Water - $1.00 (currently 15 left in the vending machine)
4.) Cranberry Juice - $1.50 (currently 2 left in the vending machine)
5.) Sports Drink - $1.50 (currently 5 left in the vending machine)
For Day 1 of sales, you sell 3 Waters, 5 Sports Drinks, 2 Cola's, and 1 Orange Juice.
a. How much money did you make today? Be sure to ask as input how many of each item sold today.
b. Print a new list of what is left in your vending machine (sorted by lowest inventory item to highest). This will help you to restock.
c. When you see that your inventory for an item drops below 5, then add 5 back to that item in inventory. (Use if statements for each item and then use search and update). Reprint your inventory to guarantee all items have been adequately stocked for the next day.
4. For Day 2 of sales, you sell 8 Waters, 2 Sports Drinks, 2 Cranberry Juice, and 4 Orange Juice.
a. How much money did you make today? Be sure to ask as input how many of each item sold today.
b. Print a new list of what is left in your vending machine (sorted by lowest inventory item to highest). This will help you to restock.
c. When you see that your inventory for an item drops below 5, then add 5 back to that item in inventory. (Use if statements for each item and then use search and update). Reprint your inventory to guarantee all items have been adequately stocked for the next day.
Note: All output should be nicely columned with appropriate headers in an easy to read format so that you can track your inventory and data easily.... and now you have software that will help you to track and grow your business...:)