Question: Create program in linux with nano 1. Input how much money they entered 2. Input their selection 3. Output the item they bought to the
Create program in linux with nano
1. Input how much money they entered
2. Input their selection
3. Output the item they bought to the screen. You must use a table.
4. Output their change to the screen. You must use a table to look up the cost.
Create strings for each item in your vending machine.
Create a table of those addresses (to lookup the purchased item).
Create a table of costs
Program should look like this
The user's input is printed in blue. The data outputted from your calculations is printed in red. You dont have to make the text that color in your program. You don't have to worry about input validation. If they enter a wrong amount, don't worry about what will happen.


Fluff-a-matic Vending machine 1. Cat Nip (85 cents) 2. string (25 cents) 3. Bouncy Ball (60 cents) 4. Cat Snacks (42 cents) Enter money: 100 Your selection: 3 3. Bouncy Ball (60 cents) Your change is 40 Fluff-a-matic Vending machine 1. Cat Nip (85 cents) 2. string (25 cents) 3. Bouncy Ball (60 cents) 4. Cat Snacks (42 cents) Enter money: 100 Your selection: 3 3. Bouncy Ball (60 cents) Your change is 40
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
