Calculate the number of monthly payments

Assignment Help C/C++ Programming
Reference no: EM133234989

C/C++ Programming Assignment - Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Make files Gain more experience with Unix Learn to use some of the available math functions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price.

In this assignment, you are asked to do a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program. You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the number of monthly payments you'll make. Fourth, raise the result of 1 plus the monthly rate to the negative power of the number of monthly payments you'll make. Fifth, subtract that result from 1. Sixth, divide the monthly rate by the result.

Last, multiple the result by the amount you want to borrow. In addition, you will add on PMI of 1% of the amount borrowed/12 if the down payment is less than 20% of the price of the home. This will stay the same for the life of the loan. Options: -s is optional and means that the mortgage will be a 15 year mortgage instead of the standard 30 year mortgage you would use as a default. -r is required and the argument is the yearly interest rate for the loan. The interest rate should be between 3% and 10%. -d is optional and the argument is the downpayment that will be made on the loan. It cannot be larger than the price of the home. You will print out the resulting payment amount as follows. Use rounding to keep money to two decimals and percentages to three decimals. "The payment on a loan of $###,###.## with an interest rate of #.###% for a term of ## years will be $##,###.##".

Reference no: EM133234989

Questions Cloud

Modern system of sexuality : Is the idea of repressive part of the modern system of sexuality?
What the leadership work traits of health care leader : What are the leadership work traits of an effective health care leader? Name 3 leadership-related assessment instruments and their functions
Write poem for spoken word poetry : Write poem for Spoken Word Poetry
Community service : What are some helpful comments that a community service provider might make in responding to a person in a manner that reflects appreciation
Calculate the number of monthly payments : Third, multiply the number of years in the term of the mortgage by 12 to calculate the number of monthly payments you'll make
Hokusai tuning the Samisen : Compare and contrast the following drawings: Hokusai's Tuning the Samisen and Rembrandt van Rijn's Eliezer and Rebecca at the Wall.
Inviting speaker to have persuasive speech : Make an invitation letter for inviting a speaker to have a persuasive speech in a certain talks or program.
Definition of freedom of speech : What is your definition of freedom of speech? How do you agree or disagree with other countries like Germany on their definition of freedom of speech?
Individual behavior that causes environmental harm : Tell us what you learned about using EBSCO, what you did to find the article and one problem you encountered when using the EBSCO database.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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