Question: Hello can you help me this python program. In the program could you add the test cases ive attached below. Thank you! Lab 3 :
Hello can you help me this python program. In the program could you add the test cases ive attached below. Thank you!
Lab: Interest calculator CNET
For this lab, write a python program so it will continuously be asking user for inputs to calculate the
interest earned until the user enters number zero in principle. Once the user enters any number less
or equal to in principle, the program will exist. Submit your python program and screenshot of your
program output.
HINT: Use while loop to ask user for inputs.
Assuming the following variables:
holds the initial principle balance
holds the annual interest rate
holds how many times the interest compound in a year
holds how many years will the account earn interest
To calculate ending total balance:
total float
interest total
Make sure your number output only has decimal points.
Your program should have work similar to the one below. For inputs, use the highlighted in yellow as
the test case input. For number outputs, it must be decimal points format. For example, if the
number is it must be displayed as with two decimal points.
For every lab, you must print out your name and time when you run your program at the beginning of
your program your lab
YOU MUST USE the test cases below as your input:CNET Introduction to Python
CNET: Ron Sha Lab : Interest Rate
::
Enter the starting principal, to quit:
Enter the annual interest rate :
How many times per year is the interest compounded?
For how many years will the account earn interest?
At the end of years you will have $ with interest earned $
Enter the starting principal, to quit:
Enter the annual interest rate :
How many times per year is the interest compounded?
For how many years will the account earn interest?
At the end of years you will have $ with interest earned $
Enter the starting principal, to quit:
Program existing
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
