Answered step by step
Verified Expert Solution
Question
1 Approved Answer
verify this code and print bottom border saying, Thank you for using our change counter app. Have a nice day! surrounded by dollar signs. ###
verify this code and print bottom border saying, "Thank you for using our change counter app." Have a nice day! surrounded by dollar signs. ### INITIALIZING VARIABLES ### quarters = 0.0 dimes = 0.0 nickels = 0.0 pennies = 0.0 yourMoney = 0.0 fee = 0.0 percentage = 0.0 topBorder = '' bottomBorder = '' for i in range(60): topBorder += '$' bottomBorder = topBorder ### DISPLAYING WELCOME BANNER ### print(topBorder) print("@" + F"{'Welcome to the change counter App v. 1.0':^58}" + "@") # ... (other print statements) print(bottomBorder) ### COLLECTING USER DATA VIA INPUT ### quarters = int(input("How many quarters do you have? ")) dimes = int(input("How many dimes do you have? ")) nickels = int(input("How many nickels do you have? ")) pennies = int(input("How many pennies do you have? ")) ### Calculating the Total Money deposited into the machine ### yourMoney = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01 ### Determining Multi-Tiered Fee status ### if yourMoney >= 100.0: percentage = 0.15 elif yourMoney >= 50.0: percentage = 0.10 elif yourMoney >= 25.0: percentage = 0.05 else: percentage = 0.01 ### calculating the fee ### fee = round(yourMoney * percentage, 2) ### Pausing the program ### print() input("Enter Any Key to continue ==>") print() ### Displaying all the results ### print("You deposited: $", round(yourMoney, 2)) print("Service fee: $", fee) print("You get: $", round(yourMoney - fee, 2)) print(bottomBorder)
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