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

  Design of e-business applications

With that in mind, how do you think the Americans with Disabilities Act affects website design and design of E-business applications?

  Explain ethics of developing of system

To help counter terrorism, many countries are planning and development of computer systems that track large number of citizens and their actions. Clearly this has privacy, implications. Discuss the ethics of developing this type of system.

  Explaining the available bandwidth as function of n

Assuming average packet size is 5 slot times, expreess the available bandwidth as a function of N?

  Describing fields and options with user account set-up

Describe the fields and options associated with user account set-up.

  Explaining major provisions of telecommunications act

Write down some of the major provisions of the Telecommunications Act of 1996?

  Synthesizing a picture of an area

Synthesizing a picture of an area, its relevance, structure and core ideas; and identifying what problems they are trying to solve and issues that need further exploration.

  Follow-up actions for making decisions

What are the things you should consider in making this decision, and based on your choice, what would be your follow-up actions?

  Design the logic for a program

Using Visual Logic: Design the logic for a program that allows a user to entry 15 numbers, then displays each number and its difference from the numeric average of the numbers entered.

  Circumstances would you not want to create

Under what circumstances would you not want to create one physical table for every relation in your logical data model? Give a concrete example.

  Write program to make change for cost of item

Write down a C# program to make change. Enter cost of item which is less than one dollar. Output coins given as change, by using quarters, dimes, nickels, and pennies.

  Discuss whether you accept demand from manager

Discuss whether you should accept this demand from your manager or whether you should persuade your team to give their time to the organization rather than to their families. What factors might be significant in your decision?

  Cryptography for standardized regulated and mandated

Whose interests are most significant when finding extent to which cryptography must be standardized, regulated, and mandated?

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