3. The minimum payment on a credit card is based on the total amount owed. A credit card company uses the following rules: For a bill less than $20 the entire amount is due, for a bill of at least $20 but less than $500, the minimum due is $20. For a bill of at least $500 but less than $1000 the minimum due is $40 and for a bill of at least $1000 but less than $1500 the minimum due is $80 dollars. For a bill of $1500 or more the minimum due is 1/10th of the bill.
a. Write a function to describe the minimum payment due.
b. What is the minimum payment due if the bill is $345?
c. What is the minimum payment due if the bill is $1410?
d. What is the minimum payment due if the bill is $1700?