Question: In BASH You are making a script to purchase a soda. Your user can enter 5 for a nickel, 10 for a dime, and 25
In BASH You are making a script to purchase a soda. Your user can enter 5 for a nickel, 10 for a dime, and 25 for a quarter (Explain these choices to them). Ensure that they can only enter these amounts using if/elif/elif/else The base price of a soda is $1.00, but we'll set a random price prior to each soda purchase. We will vary the price by 0, 5, 10 or 15 cents in either direction from $1.00.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
