Question: Using Java + NetBeans Bank Charges A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for
Using Java + NetBeans
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 2039 checks
- $.06 each for 4059 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 banks service fees for the month as shown below with the input dialog:
Input dialog:
Enter the number of Checks 25
Enter the beginning Balance 500
Output:
Your Beginning Balance $500.00
Total Checks processed 25 Per check processing charge $0.08
Check processing charges $ 2.00
Monthly Charges $10.00 Extra Charges $0.00
Total Bank Charges for this month $12.00
Note: You can display output in fewer lines. Add suitable comments in the beginning and in the program. Import formatting library and display $ with 2 decimal as shown.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
