A bank charges $10 per month plus the following check fees for a commercial checking account:
$.10 each for less than 20 checks
$.08 each for 20-39 checks
$.06 each for 40-59 checks
$.04each 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). Design a class BankCharges that stores the beginning balance of an account and the number of checks written. Create a constructor that allows a user of the class to initialize both values. The class should use a constant to represent the base fee, low balance threshold, and low balance fee. It should also have appropriate setters, getters, and a method that returns the bank?s service fees for the month. Use either DecimalFormat class or format specifiers to display service fees with exactly two digits after decimal point.
Write a driver program BankChargesTest.java to test your class.
It says in my book there should be 2 setters and 2 getters for the class program