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

  Using wireshark note the ip address and tcp port number

Using wireshark note the IP address and TCP port number used by your client computer (source) to transfer the file to any FTP server?

  Allows the user to choose insurance options

Write an application that allows the user to choose insurance options in JcheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance types

  Write a program that will continuously prompt the user grade

Write a program that will continuously prompt the user for a grade (in the range of 0 to 100) until a sentinel value of 999 is entered. The program will then display the average of all grades entered, formatted to 1 decimal place. Assume the grades a..

  Circuit diagram of an adder that adds two 8-bit numbers

Draw the circuit diagram of an adder that adds two 8-bit numbers by cascading Adder modules that add two 2-bit numbers.

  Find speedup gain of using simd computer over sisd computer

If both SISD and SIMD machines run at same clock speed, determine the speedup gain of using the SIMD computer over the SISD computer?

  Describe the concept of form follows function

Describe the concept of "Form Follows Function" as it pertains to the three main areas of design (FAB). Recognize ways in which portfolio designer works within limitations of media technology (Functionality).

  Explaining os not designed for smartphones and pdas

which OS is not designed for smartphones and PDAs?1. Which OS is not designed for smartphones and PDAs?

  What are the advantages of that method and disadvantages

a company has two building that are 50 meters (roughly 50 yards) apart. Between the building is private land owned by the company. A large walk-through tunnel connects the two buildings.

  Design the static method below to count

Design the static method below to count and return the frequency of each digit in the array of strings.

  How to use dss tool to support business

This is an interesting DSS tool where you can view yourself walking or driving down a street in San Francisco or Seattle. If you operated a business in this city how could you use this tool to support your business.

  Design a 4-bit register based on four d flip-flops

Design a 4-bit register based on four D flip-flops with three inputs I (4-bit), c (2-bit), and clk, and one output A (4-bit). The register can do four different operations depending on the value

  Matrix that compares properties of four signal types

Discuss four different types of wireless technologies. Describe the characteristics and properties of each signal type, and how each can be used.

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