Question
Please type code in Java and run the code to make sure calculations are correct. Especially when using the number range and output. A bank
Please type code in Java and run the code to make sure calculations are correct. Especially when using the number range and output.
A bank charges a base fee of $10 per month, plus the following check fees for a commercial checking account: $.10 each for less than 20 checks $.08 each for 2039 checks $.06 each for 4059 checks $.04 each for 60 or more checks Write a program that asks for the number of checks written for the month. The program should then calculate and display the banks service fees for the month.
Test Case1:
Please enter the number of checks written this month: 20 This month's service fees are $ 11.6
Test Case2:
Please enter the number of checks written this month: 10 This month's service fees are $ 11.0
Test Case3:
Please enter the number of checks written this month: 50 This month's service fees are $ 13.0
Test Case4:
Please enter the number of checks written this month: 70 This month's service fees are $ 12.8
Expected sample
1. Please enter the number of checks written this month: 20 2. This month's service fees are $ 11.6
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