Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 Shared Python37_4.python.exe X WELCOME TO LOAN PAYMENT CALCULATOR Enter the principal value (RM) : Enter the interest rate in % : Enter the period of loan in year: 100000 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: 2. Python Program in .py format

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

which pane configures the drilthrough fiters in power bi

Answered: 1 week ago