Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A credit company XYZ Sdn Bhd has asked you to develop a loan calculator using C++ programming language. The calculator will be used by a

image text in transcribed

A credit company XYZ Sdn Bhd has asked you to develop a loan calculator using C++ programming language. The calculator will be used by a customer to calculate his/her loan instalment amount. The customer needs to input his/her name, address, loan amount, number of years for loan and yearly interest rate. Based on the input the calculator will calculate the loan instalment amount based on the formula given below: Total interest amount = loan amount + (loan amount * interest rate * number of years) Loan instalment = Total interest amount Number of years (in months) 1. Write a function definition named calcTotInterest ( that receives loan amount interest rate and number of years. The function will calculate and return the total interest amount, based on the formula given above

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions