Question: opic TT: Chsses and Objects Requirements for chapter 11 part B zyLab Full Program: Classes & Objects This program will extend the warm-up program to




opic TT: Chsses and Objects Requirements for chapter 11 part B zyLab Full Program: Classes & Objects This program will extend the warm-up program to use a second constructor to create a second loan object, to compute the monthly loan payments, and to compute and compare the total interest paid over the life of each loans Preparing your Project The program will be written in NetBeans Start with a copy of your warm-up project (so you won't lose your warm-up work) From file explorer, copy the project folder Topicl1partA Topic11partB to a new project folder named After copying the folder, you will need to open the project and rename the project and file Open the project in the Topic11partB folder in NetBeans Click on the Projects tab Right-click the project name (Topic11partA) at the top of the projects window. . Select "Rename", and type Topic11partB for the Project Name, and click the Rename button Click on the Files tab, and then click the +next to Topic11partB to open the folder Click the +next to src to open the folder Right-click the file name Loan.java, and select Refactor, then Rename Change Loan to ModLoan and then click the Refactor button Right-click the file name LoanManager.java, and select Refactor, then Rename Change LoanManager to CompareLoans and then click the Refactor button Note that all Loan objects in your code will now be ModLoan objects Program Requirements Within the ModLoan class (used to create ModLoan type objects) Include JavaDoc top of file comments with a class description and @author/version tags Add an overloaded second constructor that o Has parameters for each data field/member of the class (loan number, loan amount, interest rate, and number of months in term, in that order, in that order) o Uses the parameter values to initialize the data fields NOTE: Do not add any additional data fields to the ModLoan class Add the following additional methods to the ModLoan class after the setters and getters (must use these exact method names) o computeMonthlyPayment public method to compute monthly loan payment opic TT: Chsses and Objects Requirements for chapter 11 part B zyLab Full Program: Classes & Objects This program will extend the warm-up program to use a second constructor to create a second loan object, to compute the monthly loan payments, and to compute and compare the total interest paid over the life of each loans Preparing your Project The program will be written in NetBeans Start with a copy of your warm-up project (so you won't lose your warm-up work) From file explorer, copy the project folder Topicl1partA Topic11partB to a new project folder named After copying the folder, you will need to open the project and rename the project and file Open the project in the Topic11partB folder in NetBeans Click on the Projects tab Right-click the project name (Topic11partA) at the top of the projects window. . Select "Rename", and type Topic11partB for the Project Name, and click the Rename button Click on the Files tab, and then click the +next to Topic11partB to open the folder Click the +next to src to open the folder Right-click the file name Loan.java, and select Refactor, then Rename Change Loan to ModLoan and then click the Refactor button Right-click the file name LoanManager.java, and select Refactor, then Rename Change LoanManager to CompareLoans and then click the Refactor button Note that all Loan objects in your code will now be ModLoan objects Program Requirements Within the ModLoan class (used to create ModLoan type objects) Include JavaDoc top of file comments with a class description and @author/version tags Add an overloaded second constructor that o Has parameters for each data field/member of the class (loan number, loan amount, interest rate, and number of months in term, in that order, in that order) o Uses the parameter values to initialize the data fields NOTE: Do not add any additional data fields to the ModLoan class Add the following additional methods to the ModLoan class after the setters and getters (must use these exact method names) o computeMonthlyPayment public method to compute monthly loan payment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
