Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Collect a small sample of about

Answered: 1 week ago