Here is what I need to do to completion this assignment:
Write the program as an object-oriented C++ program that allows the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage payment or by input of the amount of a mortgage and then select from a menu of mortgage loans: 7 year at 5.35%, 15 year at 5.5%, and 30 year at 5.75% (use an array for the mortgage information and read the interest rates to fill the array from a sequential file). In either case, display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. On longer term loans, the list will scroll off the screen. Do not allow the list to scroll off the screen, but rather display a partial list and then allow the user to continue the list. Allow the user to loop back and enter a new amount and make a new selection, or quit. Insert comments in the program to document the program.
I'm just not sure how to set up the program to get the sequential file. I have included the program files as well as a text document for the file.
I have changed one of your files (morgatge_RyanSkeleton.cpp) to add seqential file reading. The file cr15.txt must be present in the same directory as the program. I am allowing to read up to 9 rates and based on the input the menu of choices is constructed (it is not hard coded any more). ...
C++ implementation of Mortgage Calculator. Rates are read from sequential file. The program is a console application.