Question: PLEASE WRITE CODE IN PYTHON!! PROBLEM: Bank Charges A bank charges $10 per month plus the following check fees for a commercial checking account: $.10

PLEASE WRITE CODE IN PYTHON!!

PROBLEM:

Bank Charges A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for fewer than 20 checks $.08 each for 20-39 checks $.06 each for 40-59 checks $.04 each for 60 or more checks

The bank also charges an extra $15 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning balance and the number of checks written. Compute and display the bank's service fees for the month. Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display a ll urgent message indicating the account is overdrawn.

SAMPLE OUTPUT:

Enter the following information about your checking account. Beginning balance: $1000 Number of checks written: 50 The bank fee this month is $13.00 ----- Running the program a another time ------ Enter the following information about your checking account. Beginning balance: $405.25 Number of checks written: 5 The bank fee this month is $10.50 ----- Running the program a another time ------ 
Enter the following information about your checking account. Beginning balance: $100.05 Number of checks written: 100 The bank fee this month is $29.00 
----- Running the program a another time ------ 
Enter the following information about your checking account. Beginning balance: $-5 Number of checks written: 10 Your account is overdrawn! The bank fee this month is $26.00 
----- Running the program a another time ------  Enter the following information about your checking account. Beginning balance: $5 Number of checks written: -10 Number of checks must be zero or more. 
----- Running the program a another time ------ 
Enter the following information about your checking account. Beginning balance: $-5 Number of checks written: -10 Your account is overdrawn! Number of checks must be zero or more. 

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!