Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must be done in C++. Text Version: Design a class that determines the monthly home mortgage payment. The monthly payment with interest compounded monthly is

Must be done in C++.

image text in transcribed

Text Version: Design a class that determines the monthly home mortgage payment. The monthly payment with interest compounded monthly is calculated as follows:payment = (loan * rate/12 * term) / term - 1 where term = (1 + rate/12)^12*years Note:payment= the monthly required paymentloan= the dollar amount of the loanrate= the interest rateyears= the number of years of the loanThe class should have member functions for setting the loan amount, interest rate, and number of years of the loan. It should also have member functions for returning the monthly payment amount and the total amount paid to the bank at the end of the loan period.It should have a function named calculate, that calculates the monthly payment and stores the result in a member variable. Declare all member variables privateand the constructor, getter and setter functions public.In the main, prompt for the required input values (do not accept negative values), create an object of the home mortgage class, set the values, and output the calculated monthly payment and total amount paid to the bank.Library: You may use the pow function from include for exponentials.

Problem 3 Home Mortgage Class 10 points Design a class that determines the monthly home mortgage payment. The monthly payment with interest compounded monthly is calculated as follows: rate loan -- term 12 rate)12 x years payment - where term - (1+ term -1 12 Note: payment-the monthly required payment loan - the dollar amount of the loan rate- the interest rate vears-the number of vears of the loan The class should have member functions for setting the loan amount, interest rate, and number of years of the loan. It should also have member functions for returning the monthly payment amount and the total amount paid to the bank at the end of the loan period. It should have a function named calculate, that calculates the monthly payment and stores the result in a member variable. Declare all member variables private and the constructor, getter and setter functions ublic. In the main, prompt for the required input values (do not accept negative values), create an object of the home mortgage class, set the values, and output the calculated monthly payment and total amount paid to the bank Library: You may use the pow function from include for exponentials

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

Ability to work comfortably in a team environment

Answered: 1 week ago

Question

Exposure to SQL desirable but not required

Answered: 1 week ago