Answer:
Here's a Python program that should do what you described:
# Get user input for month and number of checks written
month = input("Enter the month: ")
num_checks = int(input("Enter the number of checks written this month: "))
# Calculate the fees based on the number of checks written
if num_checks < 0:
print("Cannot enter a negative number")
elif num_checks < 20:
fees = 10 + (num_checks * 0.10)
else:
if num_checks < 40:
fees = 10 + (num_checks * 0.08)
else:
if num_checks < 60:
fees = 10 + (num_checks * 0.06)
else:
fees = 10 + (num_checks * 0.04)
# Print the fee summary
if num_checks >= 0:
print("\\Check Fees Summary:")
print("Month of statement:", month)
print("For writing", num_checks, "checks, the bank fee is $%.2f" % fees)
Step-by-step explanation: