Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use python and write code for problem. Please also put screenshot of code. 67. C

ID: 3843945 • Letter: U

Question

Use python and write code for problem. Please also put screenshot of code.

67. Credit Card Payment Write a program to calculate the balance and minimum pay ment for a credit card statement. See Fig. 4.29. The finance charge is 1.5% of the old balance. If the new balance is $20 or less, the minimum payment should be the entire new balance. Otherwise, the minimum payment should be $20 plus 10% of the amount of the new balance above $20. The main function should call three functions-one (multi-valued) for input, one (multi valued) to calculate the new balance and minimum payment, and one for output.

Explanation / Answer

Answer for Question:

This below code is written in Python pesdo code format it will helps to calls
three multivalued functions with definations and main method will call all these functions

def read_input():

Old_Bal = raw_input("Enter Old Balanace: ")
Mon_Char = raw_input("Enter Charges for Month Balanace: ")
Credits = raw_input("Enter Credits: ")
Old_Bal = int(Old_Bal)
Mon_Char = int(Mon_Char)
Credits = int(Credits)


def cal_min(Old_Bal, Mon_Char,Credits):

Fin_Charge = Old_Bal * 1.5
New_Bal = Old_Bal + Mon_Char + Fin_Charge
if New_Bal < 20
Min_Pay = 20
else
Min_Pay = 20 + 10 *New_Bal /100

def displayP_details(New_Bal,Min_Pay):
print "New_Bal"
print "Min_Pay"

def main():
read_input();
cal_min();
displayP_details();