Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 thresholdsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started