Question: y CPTS 1 1 1 : Introduction to Computer Programming home> b PA #1 : Shira's Handy Dandy Student Loan Repayment Calculator (A Cautionary Program)
y CPTS 1 1 1 : Introduction to Computer Programming home> b PA #1 : Shira's Handy Dandy Student Loan Repayment Calculator (A Cautionary Program) E zyBooks catalog Help/FAQ Amount of monthly payment . Total amount paid Total interest paid The formula for calculating monthly payments is given by: P(i/12) where p, P, i, n are the monthly payment amount, the principal loan amount, the annual interest rate as a fraction, and the number of monthly payments respectively. In your program, use appropriate names for your variables that are descriptive, and also be sure to comment your code. Because it will be some time before we learn how to format output, use the int0 function to get approximate values for your output and to make it look better (and also to make your answers correct for the auto-grader which is a bit picky) Here's an example you should use to test your program, i.e, you should get the same output values for the given input values: Enter the amount you owe no commas]: 30000 Enter the interest rate [%]: 6 Enter the number of years you want to spend to pay back your loan: 10 Your monthly payment is $333. The total amount you ended up payir 1s $39967. The total amount of interest you paid is $9967. ua m 3.4.1 : zyLab PA #1 Shira's Handy Dandy Student Loan Repayment Calculator A Cautionary Program 0/15 ACTIVITY
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
