Question: import java.io.Buffered Writer; import java.io.FileNotFoundException; import java.io.FileWriter, import java.io.IOException; import java.util.Scanner; public class LoanClass{ static Scanner scan = new Scanner(System.in); static int Count=0; //declare instance

Loan Application Class You have been recruited by a local banking company

import java.io.Buffered Writer; import java.io.FileNotFoundException; import java.io.FileWriter, import java.io.IOException; import java.util.Scanner; public class LoanClass{ static Scanner scan = new Scanner(System.in); static int Count=0; //declare instance variables here double amtFin, intRate; int term; String name, zip; public LoanClass() (setLoan();} private void setLoan() {name = ""; zip = ""; System.out.println("New Loan Transaction"); while (name.length() =750) { System.out.println("Your credit is Excellent "); intRate = 0.025; } else if(xcreditScore >=700) { System.out.println("Your credit is Good"); intRate = 0.035; } else if(xcreditScore >= 650) { System.out.println("Your credit is Ok"); intRate = 0.05; { else { System.out.println("You have Bad credit%"); intRate=0.07; } intRate = intRate/12; } public int ShowCount() { return Count; } private void writeToFile() { String printString = toString(); try (BufferedWriter writer = new BufferedWriter(new FileWriter("Applicants.csv", true)}} { writer.write(printString); } catch(FileNotFoundException fnfe) { System.out.println("Unable to write to disk"); } catch (IOException ioe) { System.out.println("Unable to write to disk"); } } private double displayPayment() { double monthlyPayment= (amtFin*intRate)/ (1-Math.pow(1+intRate, -term)); return monthlyPayment; } @Override public String toString() {String printString name+","+zip" +amtFin+","+intRate; //write to disk, name, zip, amount financed, term, and interest rate printString + "\r\n"; return printString; }}


Loan Application Class You have been recruited by a local banking company to create a form that would let customers determine for themselves how much of a loan they can afford. Below is the UML that accompanies the original design of the program. You should refer to that diagram and develop code according to the schema. Loan Class UML Loan Application < < >int Count -double: amtFin -double: intRate -double: term -string: name -string: zip +LoanClass():Void Counter of records processed Amount to be financed Interest Rate assessed to borrower Instance Variables Time in months of loan An applicant's name An applicant' setLoan() prompt for credit score perform credit score analysis write data to Applicants.csv display the payment amount +setLoan() Prompt for applicant's information. Name, amount financed, credit score, term Increments count Constructor that will prompt for name, term, amount financed, zipcode and verify data entered is likely to be correct Setter -msgBox(double):void String: printString Displays payment amount -msgBox(String):void Prints out a line of string to monitor - displayPayment():double Will display the calculated amount - CalcintRate(int):void Determines what interest rate the applicant will be assessed. Methods

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!