Question: In python please Functionality Compute the recommended minimum payment using the get_min_payment() function Display the recommended minimum payment to the user Declare a variable named

 In python please Functionality Compute the recommended minimum payment using the

In python please

Functionality Compute the recommended minimum payment using the get_min_payment() function Display the recommended minimum payment to the user Declare a variable named pays_minimum to False. This variable represents whether a user has chosen to pay the minimum payment each month or not. If the user's target payment is None, set the pays_minimum to True. Otherwise, if the user's target payment is less than the minimum payment, print a message to the user (e.g., "Your target payment is less than the minimum payment for this credit card") and quit the program; otherwise: Use remaining_payments() to figure out the total number of payments required (hint: we will assume that the beginning balance is the balance amount that was passed in). If the user pays the minimum payment each time, display the number that represents the number of payments that need to be made to the user (e.g., "If you pay the minimum payments each month, you will pay off the balance in payments."; replace the angle brackets with the appropriate values) If the user does not pay the minimum payments, display the number that represents the number of payments that need to be made to the user along with what the desired payment amount is (e.g., "If you make payments of $, you will pay off the balance in payments."; replace the angle brackets with the appropriate values) Return a string that is a message that will tell the user how many payments they will be above 25, 50 and 75 percent thresholds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!