Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Statement: In this lab, you will be building a loan calculator that can perform simple mathematical calculation using the topics that we have covered

image text in transcribed
Problem Statement: In this lab, you will be building a loan calculator that can perform simple mathematical calculation using the topics that we have covered in the lecture classes. The calculator needs to calculate simple/compound interest based on the loan amount. Lab Scenario: First. you will display an option for the user to choose from simple interest or compound interest. The user will then select what kind of interest rate he/she wants to apply. Next, Prompt the user to enter the values for the amount borrowed, the loan in years and the interest rate (say 3%). Once the user has entered all the values, write the formulae to calculate the total loan cost, which is as follows, considering the amount borrowed is P, length of the loan is T and interest rate is R. For Simple Interest, A = (P*T* R)/ 100 Total loan cost, TA = A + P To calculate the monthly repayment, M = TA/(T*12) (Since T is in years convert to months) For Compound Interest, The formula to calculate the total loan cost is as follows, considering the amount borrowed is P, length of the loan is T, interest rate is R and number of times the interest is compounded per year is n(n should be through user input). A = P*(( l+(R/(100m))) **(n*T)) Total loan cost, TA- A+P To calculate the monthly repayment, M TA/(T 12) (Since T is in years convert to months)

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

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions