Vous êtes sur la page 1sur 30

mm 

 m 


 

 mm   
m  
m 

mm 
    
  


m  m m  

        
       
   m

    



m   

        


m
 mm 
V How can the program calculate, how many
months is needed to pay back all the loan from
different company and ** provided that the
information below is given:
Úo create a program to calculate how many months
needed to pay back all the loan from

JPA
PERBADANAN ÚABUNG PENDIDIKAN ÚINGGI
NASIANAL (PÚPÚN)
RHB Bank
KUOK Foundation
w 
V 1)The purpose of doing this programmed is to calculate out
the repayments of study loan taken by users.

V 2)This programmed is designed for user to choose which


loan to be applied.
V )The benefit of this programmed is to allow the users
know how the repayment be done .

V 4)It is also let the users clearly know the remaining of their
loan after sometime.
 w
w
 The programmed starts with 4 header files :
V R include <iostream>
V R include <iomanip>
V R include <conio>
V R include <math>
 In order to complete this programmed smoothly, some
formulae are used to calculate out the interest and monthly
payment.
 This programmed also using nested loop, while, if else if,
else, array and function.
m !
  
Vtart

Output : this program is for calculating the repayments of study loan taken by
the user

Output : state that whether the loan taken is government (0) or nonRgovernment
(1)

Input : choice 0 or 1

0 1

Input : choice JPA & Input : choice RHB Bank &


PTPTN KUOK FOUNDATION

± ± ±


± 
±  ± ± ±

JPA

Output : JPA(Jabatan Perkhidmatan Awam)


provides a maximum of RM200,000 loan for Output : how
course fee only. These loans open for Malaysian many month
students who willing to take private or public needed to pay
course except for medical , dental and back all the loan.
pharmacy. Vtudents who get this loan have to
pay back the total amount of loan without
interest. The repayment of loan a month is RM
400 for first 40 months, RM 600 for next 120 Input : enter the
months and RM 800 for last 140 months. The amount of loan
time to pay back all the loan is depend on the
amount of loan. Total month =
Total year =
month / 12
Output : total month and total
year End

± ±
±
± ± ±

Output : PERBADANAN TABUNG Output: amount


PENDIDIKAN TINGGI NAVIANAL(PTPTN) : of loan and how
The PTPTN Education Loan Vcheme was set up long you wish to
with the aim of providing education loans to pay it
students pursuing their studies in local
institutions of higher learning (IPT). This loan
will enable students to fully or partially pay
their fees and their subsistence for the duration
Input : enter the
of their study in the IPT. Thus, this scheme
provides greater opportunities to students to amount of loan
continue their tertiary education. and how long
you wish to repay
the loan (in
month)
Output : month, installment
payment, administrative cost, End
principal, remaining
installment payment, total ±
remaining ±
± ±

Output : For the nonRgovernment loan, the choose is


Output:
between RHB Bank loan and KUOK Foundation.
(RHB Bank)
amount of
period(month),
science
course(max
and min),
Input : loan
comass
course(max
and min)

Output : The minimum RM20000 and maximum


RM500000 can be loaned.

End

±
±

Output : For the nonRgovernment loan, the choose


is between RHB Bank loan and KUOK
Foundation.(KUOK foundation).
Output:
amount of
period(month),
science course,
Input : loan comass course

Output : KUOK Foundation offers RM9000 per


annum to science students and RM8000 per
annum to commass students. Vtudents only have
to repay half of the loan taken based on their
academics performances. No interest is taken on End
top of the loan.
w
w  w 

Vous aimerez peut-être aussi