Question: I'm having trouble coding this into BASH plz help import random Base_Price =100 Sum_Price =0 var = random. randint (3,3)5 Total_Price = Base_price + var

I'm having trouble coding this into BASH plz help

I'm having trouble coding this into BASH plz help import random Base_Price

=100 Sum_Price =0 var = random. randint (3,3)5 Total_Price = Base_price +

import random Base_Price =100 Sum_Price =0 var = random. randint (3,3)5 Total_Price = Base_price + var print('Welcome to the soda machine. You can enter values of 5, 10 or 25 in payment ) Soda_Type = input ( What type of soda would you like? ') print ("InThe current price of" +Soda_Type+ "is" +str(total_price)+ 'cents') while(True): priceInput = input ('Insert a coin: ') Sum_Price = Sum_Price + priceInput balance = Total_Price Sum_Price if balance >0 : strBalance =str (balance) print( "You still owe "+strBalancet" cents') elif balance

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!