The bank will charge you for every check you write, but this amount
that is charged is based on your balance. If your balance is less than
$100, each check you write will cost 50 cents. If your balance
is between $101 and $200, the bank will charge you 40 cents per check.
If your balance is between $201 and $500, the check charge is only
30 cents. If you keep a $500 balance, then there is no charge for
writing checks.
Write a function which takes a balance (in dollars) and
returns the per-check charge.
My solution.