External Exam Download Resources Web Applications Games Recycle Bin

simple Interest



setup Form
Simple Interest jFrame Form
btnCalculate
int principal = 1000; //invest $1000
double rate = 0.05; //at 5% per annum
int time = 2; //for 2 years
        
double final_amount;
final_amount = principal + simpleInterest(principal, rate, time);
lblResult.setText(String.valueOf(final_amount));

create Sub-procedure

challenge