Checkpoints 1) Include name, e-mail, and lab# as 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 called 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%, 20 Set 2 – $400,000, 4.2%, 30
- Checkpoints
1) Include name, e-mail, and lab# as 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 called 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%, 20
Set 2 – $400,000, 4.2%, 30
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images