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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!