Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started