Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Now that you are totally freaked out (do not worry, like last time, it is not difficult... for this homework assignment, I want you to

image text in transcribedimage text in transcribed

Now that you are totally freaked out (do not worry, like last time, it is not difficult... for this homework assignment, I want you to write a C++ program that accomplishes the following 1. Create a menu system that provides the user with three (3) calculdtor options: an investment calculator (e.g. you can reuse your compound interest code from Homework #1), a fixed-rate mortgage loan calculator, and an auto loan calculator. Note: Your program should remain running until an exit option is selected from the menu. 2. All three (3) calculators should request the user's full name. 3. The Investment Calculator should request from the user an amount to invest/save (e.g. the principle), the average annual rate of return they expect to receive (as a decimal value), and the time period (in years) they expect to have the amount invested. You will then return the total value of the investment and ask the user if he or she wants to seea table of the growth of the investment where each row is a year and the headings include the year number, the beginning investment value for that year, new investment value at the end of that year, the amount earned for that year, and a running total of earnings 4. The Fixed-rate Mortgage Calculator should request from the user a loan amount (e.g., the principle), the annual interest rate, and the term in years (e.g., you can calculate the months). You will then return the monthly payment amount and ask the user if he or she wants to see an amortization table where each row is a month and the headings include the payment number, the loan balance for that month, the monthly payment (yes this should be the same for each month), the amount of interest for that month, a running total of interest paid to date, the amount of principle paid for that month, a running total of principle paid to date, and the new loan balance after that month's payment 5. The Auto Loan Calculator should do exactly the same thing as the Fixed-rate Mortgage Calculator should do, except maybe the headings will be different 6. After displaying the table (e.g., the investment table or the amortization table) and before exiting the specific calculator to return to the main menu, your program should ask the user if he or she wishes to save the output to a file. If the user responds affirmatively you need to output the schedule to a text file using the user's first and last name as the filename Note: For the purposes of this assignment, you can assume the user will not make a mistake in the filename, and that the path is valid. As such, do not waste time or effort trying to trap error conditions in path or filename conventions. You also do not need to check if the file exists because if it does, you can simply overwrite it. This should help during your testing For this assignment, you may work with one partner (who must be different from Homework #1 if you had a partner). If you choose to do so, please be sure to include both of your names and the last four digits of your respective CWID numbers in the comments of your code at the top and on the title page of your report. Be sure to use self-defining variables, comments, and structure (e.g., indent) your code effectively and efficiently. Also, be sure your dollar amounts have commas and periods in the correct places Page 6 of 7 Now that you are totally freaked out (do not worry, like last time, it is not difficult... for this homework assignment, I want you to write a C++ program that accomplishes the following 1. Create a menu system that provides the user with three (3) calculdtor options: an investment calculator (e.g. you can reuse your compound interest code from Homework #1), a fixed-rate mortgage loan calculator, and an auto loan calculator. Note: Your program should remain running until an exit option is selected from the menu. 2. All three (3) calculators should request the user's full name. 3. The Investment Calculator should request from the user an amount to invest/save (e.g. the principle), the average annual rate of return they expect to receive (as a decimal value), and the time period (in years) they expect to have the amount invested. You will then return the total value of the investment and ask the user if he or she wants to seea table of the growth of the investment where each row is a year and the headings include the year number, the beginning investment value for that year, new investment value at the end of that year, the amount earned for that year, and a running total of earnings 4. The Fixed-rate Mortgage Calculator should request from the user a loan amount (e.g., the principle), the annual interest rate, and the term in years (e.g., you can calculate the months). You will then return the monthly payment amount and ask the user if he or she wants to see an amortization table where each row is a month and the headings include the payment number, the loan balance for that month, the monthly payment (yes this should be the same for each month), the amount of interest for that month, a running total of interest paid to date, the amount of principle paid for that month, a running total of principle paid to date, and the new loan balance after that month's payment 5. The Auto Loan Calculator should do exactly the same thing as the Fixed-rate Mortgage Calculator should do, except maybe the headings will be different 6. After displaying the table (e.g., the investment table or the amortization table) and before exiting the specific calculator to return to the main menu, your program should ask the user if he or she wishes to save the output to a file. If the user responds affirmatively you need to output the schedule to a text file using the user's first and last name as the filename Note: For the purposes of this assignment, you can assume the user will not make a mistake in the filename, and that the path is valid. As such, do not waste time or effort trying to trap error conditions in path or filename conventions. You also do not need to check if the file exists because if it does, you can simply overwrite it. This should help during your testing For this assignment, you may work with one partner (who must be different from Homework #1 if you had a partner). If you choose to do so, please be sure to include both of your names and the last four digits of your respective CWID numbers in the comments of your code at the top and on the title page of your report. Be sure to use self-defining variables, comments, and structure (e.g., indent) your code effectively and efficiently. Also, be sure your dollar amounts have commas and periods in the correct places Page 6 of 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions