Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question please, use jave for this coading and use (main ) and ( classes) show a

ID: 3664343 • Letter: Q

Question

Question

please, use jave for this coading

and use (main ) and ( classes)

show all step in question and explian the step

PLEASE ,can you same all varible

should be the main faction in one file

and other calculation in other file and main call

PARTA: LoanCalculator Requirements Step 1: Create a LoanCalculator class with the following structure /*This class provides the service of calculating the payment necessary to pay off a loan/ public class LoanCalculator [ public double monthlyPayment double principle, double interestRate, int term) //missing code.... public void displaySchedule ( double principle, double interestRate, int term) //missing code... //end of class LoanCalculator Step 2: The interestR between 0.0 and 100.0 (e.g. 5.0 for 5%). Step 3: Provide the public double monthlyPayment (double principle, double interestRate, int term) method that returns the dollar amount that would be required to pay off the principle at the given in the monthly interest rate as a fraction (i.e. interestRate/100/12) and t the term in months then the monthly payment is given by the formula: monthlyPayment = A * r * (r + 1)' / ((r + 1)-1 ) Step 4: The pri number of months over which the loan is to be paid off. Step 5: Provide the public void dis laySchedule (···) method which will display on System.out the repayment schedule of the loan. See the sample output for the program shown below ate parameter should be the annual interest rate expressed as a double terest rate over the term. If A is the principle, r ciple should be the amount of money borrowed and the term should be the Step 6: The displaySchedule ) method should show the total amount of money paid (see sample output below). Step 7: All money values should be shown with two decimal places (e.g. $100.00) and a S sign.

Explanation / Answer

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Calendar;
import java.util.Locale;
import java.util.Scanner;


public class LoanApplication {

   
    public static void main(String[] args)
    {
       
           Scanner scanner = new Scanner(System.in);
    double principle;
    int term;
    double annualInterestRate;

    Date now1=new Date();
System.out.println("Welcome to the pardue university Calumet Loan calculator");
Date now = new Date();
// Use Date.toString()
System.out.println(now);

System.out.println("Enter the amount of the loan(e.g. 5000.0)");
principle=scanner.nextLong();

System.out.println("Enter the annual interest rate(e.g. 7.0)");
annualInterestRate=scanner.nextDouble();

System.out.println("Enter the term in the months (e.g. 60):");
term=scanner.nextInt();
float inter=(float) ((principle*(term/12)*annualInterestRate)/100);
float amnt=(float) ((principle/term)+(inter)/term);
System.out.println(inter+" "+amnt);
System.out.println("Month                     Payment             Amount Remaining..");
int sum=0;
for (int i = 0; i < term; i++) {
System.out.println(i+"     "+amnt+"    "+principle);
sum=(int) (sum+amnt);
principle=principle-amnt;
}
System.out.println("The total amount pais was "+sum);
    }
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote