Python Forum

Full Version: Coding problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Program:
a
A credit card company computes a customer's "minimum payment" according to the following rule. The minimum payment is equal to either $10 or 2.1% of the customer's balance, whichever is greater; but if this exceeds the balance, then the minimum payment is the balance. Write a program to print out the minimum payment using min and max. Assume that the variable balance contains the customer's balance.
pseudo code:
max = balance
min = balance * .021
min > $10 ?
No --> min = $10
min < max?
yes --> balance = balance - min
no --> balance = 0
Heart Thank you very much for such a prompt reply.
Hello, please don't use PM's since the forum is for all to learn from.
Thank you.
What I gave you is pseudo code.
it's up to you to write the Python code.
We will not do the work for you, you've got to put in some effort.