Question: # Step 1 : Initialize variables accountBalance = float ( input ( Enter the account balance: ) ) overdrawnTimes = int ( input

# Step 1: Initialize variables accountBalance = float(input("Enter the account balance: ")) overdrawnTimes = int(input("Enter the number of times the account was overdrawn: ")) # Step 2: Calculate the overdraft fee overDrawnFee =(accountBalance *0.01)-(5* overdrawnTimes) # Step 3: Calculate the new account balance newAccountBalance = accountBalance - overDrawnFee # Step 4: Display the results print(f"The overdraft fee is: ${overDrawnFee:.2f}") print(f"The new account balance is: ${newAccountBalance:.2f}") print("Thanks for using this program")

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 Programming Questions!