Python Forum
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding problem
#1
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.
Reply
#2
pseudo code:
max = balance
min = balance * .021
min > $10 ?
No --> min = $10
min < max?
yes --> balance = balance - min
no --> balance = 0
Reply
#3
Heart Thank you very much for such a prompt reply.
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Armachat coding problem gad969 4 1,312 Mar-12-2023, 03:12 PM
Last Post: gad969
  Coding problem portfolio grade max70990 1 738 Dec-11-2022, 12:30 PM
Last Post: Larz60+
  coding problem from older book teddfirth 3 2,148 Mar-06-2021, 03:51 PM
Last Post: teddfirth
  Begginer coding problem wiktor 2 3,234 Jan-26-2018, 06:24 PM
Last Post: wiktor
  IR coding problem DPaul 3 2,778 Jan-09-2018, 08:02 AM
Last Post: DPaul
  new user coding problem mattkrebs 1 3,027 Mar-21-2017, 12:45 PM
Last Post: buran
  Incredibly basic coding problem AndyF 12 8,520 Feb-11-2017, 03:52 PM
Last Post: AndyF

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020