Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON 3 HELP A friend of yours has gotten the new Rocket credit card. Every dollar purchased gets you 1000 meters towards a free one-way
PYTHON 3 HELP
A friend of yours has gotten the new "Rocket" credit card. Every dollar purchased gets you 1000 meters towards a free one-way trip to the planet Venus! To attract customers the card offers a novel interest rate. For each month in debt, the percentage owed in interest increases by a power of 2. For example, after 1 month, the interest owed is equal to 2% (2^1) of the original debt. After 2 months, the interest is 4% (2^2) of the original debt and so on. In general: interest (m) = d times (2^m/100) Write a program which does the following: Prompt the user to enter an initial amount of Rocket credit card debt. You must make sure that the user enters a positive number. If they do not enter a positive number, print a message informing them so, and prompt them to enter the initial amount of debt again. Keep doing this until they enter a positive number. Starting from month 1, print to the console the total payment owed at 1-month intervals. Thus, for month 1, month 2, etc., you should print out the total payment owing, which consists of the interest plus the original debt. Your program should stop after the first month where the total payment owing is greater than 100 times the original debt (that's the point at which the credit company calls in its debts, whether you like it or not!}. Don't forget to import the math module if you need math functions. Sample input and output (input typed by the user is shown in green text)Step 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