October 2018 1 28 Report
Please help me!!!!

program pegadaian;
uses wincrt;
var annualrate,balance,interest,payment,monthlyrate:real;
j,month:integer;

begin
writeln('what is the current mortgage balance?');
writeln('omit $.');
readln(balance);
writeln('what is the annual interest rate?');
writeln('omit %.');
readln(annualrate);
writeln('what is the monthly payment?');
writeln('omit $.');
readln(payment);
monthlyrate:=annualrate/12;
monthlyrate:=0.01*monthlyrate;{express as decimal}
writeln('the next 12 months;');
writeln;{blank line before table}
writeln('Month':10,'interest':10,'balance':10);
for j:=1 to 30 do{draw a line under the heading}
write('_');
writeln;{move to beginning of next line}
writeln;{leave a blank}
for month:=1 to 12 do
begin
interest:=monthlyrate*balance;
balance:=balance+interest-payment;
write(month:10);
write(interest:10:2);
write(balance:10:2);
end;
end.

1. LACAK PERUBAHAN NILAI VARIABELNYA
2. DESKRIPSIKAN ALGORITMA PROGRAM DENGAN PSEUDOCODE
3. PECAHKAN PROGRAM DALAM MODUL-MODUL MENGGUNAKAN PROCEDURE


Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.