Member functions for returning the monthly payment

Assignment Help Basic Computer Science
Reference no: EM13167795

Design a class that will determine the monthly payment on a home mortgage. The monthly payment with interest compounded monthly is calculated as

Payment=(loan?(rate/12)?term)(term?1)

where term=(1+rate/12)12?years
Payment is monthly payment
Loan is dollar amount of loan
Rate is annual interest rate
Years is number of years of loan.

Your loan 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. In addition your loan class should have a print member function that outputs to standard out all relevant facts of the loan: loan amount, years, rate, payment, and total payments. Input validation: do not accept negative values for loan values or loans over 2,000,000.00. Use double precision numbers and be sure to sanity check payment calculation results. Incorrect numerical answers will lose at least half credit. You are not explected to be able to derive the loan payment formula only implement it in C++.

Create two loans: The first for $200,000.00, 15 years, with a 8% rate and the second for $600,000.00, 30 years, with a 9% rate and find the monthly payments for each

Reference no: EM13167795

Questions Cloud

What is the acid dissociation constant for this acid : A 0.1000M solution of ethanoic acid (HC2H3O2) is only partially ionized so that [H+]=2.25X10^-3M. What is the acid dissociation constant for this acid?
How long would it take to fill the cylinder : water flows from a container at the rate of 2.5 litres per minute. The water flows into a tank that already holds 50 litres. How long in seconds is it before there are 765 litres of water to be in the tank?
Calculate the theoretical yield and the percent yield : a student prepared aspirin in a laboratory experiment using the reaction. the student reacted 1.50g salicylic acid with 2.00g acetic anhydride. the yield was 1.50g aspirin. calculate the theoretical yield and the percent yield for this experiment.
Use the definition of big-o to prove that 3n+2logn = o(n) : Use the definition of big-O to prove that 3n+2logn = O(n) . Provide the appropriate C & K Contants.
Member functions for returning the monthly payment : Your loan 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 en..
Find the equilibria of the system of the first two equations : verify that E is a constant of motion for the system of the first two equations and find the equilibria of the system of the first two equations
Define what a hydrogen bond is and describe : Explain what a hydrogen bond is and describe, on the molecular level, how a water and an alcohol molecule can hydrogen bond
Four consecutive clock pulses : A given FSM has an input w, and an output,z. During four consecutive clock pulses, a sequence of four values of the w is applied. Derive a state table for the FSM that produces z = 1 when it detects that either the sequence w: 0101 or w: 0111 has bee..
Write the empirical formula of x : An elemental analysis of X shows that the mass percentage composition of the compound is 26.86% C and 2.239% H, with the remainder being oxygen. A mass spectrum of X yields a molar mass of 90.0 g/mol. Write the empirical formula of X.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd