Application – Financial Mortgage Calculator
Join now to read essay Application – Financial Mortgage Calculator
Application
Financial Mortgage Calculator
Filename
Mortgage_app.java
Created by
Revision
import java.io.*;
import java.text.DecimalFormat;
//Setup new class
class Mortgage_app
public static void main(String[] args)
{
//declarations (array format)
//setup data pass to class Mortgage_calc_app
Mortgage_calc_app calc1 = new Mortgage_calc_app();
Mortgage_calc_app calc2 = new Mortgage_calc_app();
Mortgage_calc_app calc3 = new Mortgage_calc_app();
calc1.setd_Rate(d_Input[0][0]);
calc1.seti_Term(d_Input[1][0]);
calc1.printStates();
calc2.setd_Rate(d_Input[0][1]);
calc2.seti_Term(d_Input[1][1]);
calc2.printStates();
calc3.setd_Rate(d_Input[0][2]);
calc3.seti_Term(d_Input[1][2]);
calc3.printStates();
}
//reuse initial class
class Mortgage_calc_app
//decimal format
DecimalFormat Currency = new DecimalFormat(“$0.00”);
DecimalFormat Count = new DecimalFormat(“0”);
//declarations
double d_Rate,d_Loan,d_Amount,d_intPay,d_Principal;
double i_Term,i_Count,i_Count2,i_Line;
//pull data from class Mortgage_app
void setd_Rate(double newValue)
d_Rate = newValue;
void seti_Term(double newValue)
i_Term = newValue;
void printStates()
//initialize declarations
d_Loan = 200000;
i_Count = 0;
i_Line = 0;
//calculation for the monthly payment
//output to standard IO
System.out.println(“nttttAMORTIZATION TABLEnn”);
System.out.println(“n#tPaymentttBalancettPaid
Essay About Public Static Void And Double D
Essay, Pages 1 (205 words)
Latest Update: June 30, 2021
//= get_the_date(); ?>
Views: 116
//= gt_get_post_view(); ?>
Public Static Void And Double D. (June 30, 2021). Retrieved from https://www.freeessays.education/public-static-void-and-double-d-essay/