Checkpoints

Checkpoints

Checkpoints
1) Include name, e-mail, and lab# and comments in the code and also include code to output this information to the output.2) Minimum of three (3) comments (including Pre/Post) in each function. Note that if the parameter is a reference to (i.e. address of) a value, then the Pre comment must so state.3) user defined constants for property tax rate, cost of utilities, and cost of insurance. use non-global memory constant for percent of down payment.4) use exactly one function separate from main for input.5) Call a calculation function from main which handles all calculations. This function needs to call a sub-function (another function) to calculate exactly the following and no more: amount of down payment, amount of the loan, amount of monthly mortgage payment.6) Use exactly one function separate from main for output.7) Output must be formatted exactly as shown on lab write-up with decimal points lined up. Output must be copied to a separate file.8) All functions (other than main() & your signature function) must use prototype style.9) use reference variables when necessary and ONLY WHEN NECESSARY.Test data (see bankrate.com or use Excel & pmt()to check your answers)
Set 1 – $600,000, 5%, 20Set 2 – $400,000, 4.2%, 30

 

Minimum of three (3) comments (including Pre/Post) in each function. Note that if the parameter is a reference to (i.e. address of) a value, then the Pre comment must so state.5) Call a calculation function from main which handles all calculations. This function needs to call a sub-function (another function) to calculate exactly the following and no more: amount of down payment, amount of the loan, amount of monthly mortgage payment.9) use reference variables when necessary and ONLY WHEN NECESSARY.Model for Lab 5 - Webinar: Pizza Problem CompleteSee the words "reference to" in the Pre below:
double calcBill(int nDrinks, int nPiz, double& sub, double& tax)
{
/* Pre: nDrinks - number of drinks
nPiz - number of pizzas
sub - reference to subtotal
tax - reference to tax
Post: total of the bill
Purpose: Calculate subtotal, tax, total
*/Also, please note that many of these "musts" are because I am endeavoring to make sure that you understand the underlying concepts and are not just blindly coding.

 
Powered by