Sanchez Construction Loan Co. makes loans of up to R100,000 for construction projects. There are two categories of Loans—those to businesses and those to individual applicants. Write an application that tracks all new construction loans. The application also must calculate the total amount owed at the due date (original loan amount + loan fee). The application should include the following classes:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Number of loans:");
double[] loans = new double[in.nextInt()];
for (int i = 0; i < loans.length; i++) {
loans[i] = in.nextDouble();
}
System.out.println("Totals:");
for (int i = 0; i < loans.length; i++) {
System.out.println(loans[i] * 1.07);
}
}
}
Comments
Leave a comment