Question: Requirements chapter 14 zyLab: File I/O NOTE: zyBooks does not cover everything you will need to complete this program. Be sure to also read the





Requirements chapter 14 zyLab: File I/O NOTE: zyBooks does not cover everything you will need to complete this program. Be sure to also read the online content for Topic 14 before starting this program Problem Summary The home mortgage loan company that you wrote the Topic 11 program for would like you to expand the program to process a data file. They would like to have a program that will help them determine how much money they will eam in interest from a set of loans they have issued Each line of the data file will contain a loan number, a loan amount, an annual interest rate, and a loan term Test Data Files (included in the zyLab) loanDatal.txt 112233 200000 6.5 360 445566 155555 5.25 240 loanData2.txt 222222 222222 2.22 240 333333 300000 3.3 360 444444 340000 4.44 180 555555 350000 5 300 You will write a program to Read data from a file and determine the total interest paid on each loan NOTE: You may assume all file data will be valid (no error checking necessary) Provide a report on the loan company profits. . Each step of the instructions is associated with specific zyLab tests, so you can test your program as you develop it. The incremental steps will do the following Read data from one line of a data file, instantiate a Loan object, and display the data in the object Read data from all lines of a data file and display the data for each Loan object Display a message with the number of lines read Compute monthly payments and interest paid for each loan object Total the interest paid on all loan objects Implement exception handling if the input file cannot be opened Create an output file, logging the interest paid on each loan *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
