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!
Lab3: Interest calculator - CNET-142
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 0(zero) in principle. Once the user enters any number less
or equal to 0 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:
p holds the initial principle balance
r holds the annual interest rate
n holds how many times the interest compound in a year
t holds how many years will the account earn interest
To calculate ending total balance:
total =p**(1+ float r100n)****(n**t)
interest = total -p
Make sure your number output only has 2 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 2 decimal points format. For example, if the
number is 477.232885, it must be displayed as 477.23 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 1).
YOU MUST USE the test cases below as your input:CNET-142- Introduction to Python
CNET-142: Ron Sha - Lab 3: Interest Rate
2020-05-2519:38:24
Enter the starting principal, 0 to quit: 12000
Enter the annual interest rate : 1.95
How many times per year is the interest compounded? 365
For how many years will the account earn interest? 2
At the end of 2.0 years you will have $12,477.23 with interest earned $477.23
Enter the starting principal, 0 to quit: 3000
Enter the annual interest rate : 1.89
How many times per year is the interest compounded? 1
For how many years will the account earn interest? 1
At the end of 1.0 years you will have $3,056.70 with interest earned $56.70
Enter the starting principal, 0 to quit: 0
Program existing ....
>|
Hello can you help me this python program. In the

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 Programming Questions!