Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Learning Outcomes Upon completion of this lab session, learners will be able to: 1. compile and run a basic Python program, and 2. apply the
Learning Outcomes Upon completion of this lab session, learners will be able to: 1. compile and run a basic Python program, and 2. apply the initial steps in Software Development Life Cycle Assessment #1 Loan payment calculations, or monthly payment formulas, provide the answers you need when deciding whether or not you can afford to borrow money. Typically, these calculations show you how much you need to pay each month on the loanand whether it'll be affordable for you based on your income and other monthly expenses. Calculate your monthly payment (M) using your principal balance or total loan amount (P), monthly interest rate (I), which is your annual rate divided by the number of payment periods, and your total number of payment periods (N) I(1+1)N M=P (1 + 1)^ - 1) Where:M=Monthly Payment P= Mortgage Principal I = Monthly Interest N= Number of Months Assume you borrow RM100,000 at 6% for 30 years to be repaid monthly. To calculate the monthly payment, convert percentages to decimal format, then follow the formula: P: 100,000, the amount of the loan 1: 0.005 (6% annual rate-expressed as 0.06divided by 12 monthly payments per year) N:360 (12 monthly payments per year times 30 years) Calculation: 100,000/{[(1+0.005)^360)-1}/(0.005(1+0.005)^360] = 599.55, or 100,000/166.7916 = 599.55 The monthly payment is RM 599.55. Sample of output: C:\Program Files (x86)\Microsoft Visual Studio SharedPython3_Apython.exe WELCOME TO LOAN PAYMENT CALCULATOR Enter the principal value (RM) Enter the interest rate in % Enter the period of loan in year: : : 10000e 6 30 You want to borrow RM 100000.0 over 30.0 years, with an interest rate of 6.0 % ! The monthly payment is RM 599.55 Press any key to continue Deliverable items to be submitted to your lab tutor. 1. PDF file consists of Pseudocode OR Flowchart in word document/pdf format Code of Python program (include comments on input, process, output) Screenshot of three sets of output from the program runs (to be included with sample of output 1)
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