DFC10212 : PROBLEM SOLVING & PROGRAM DESIGN

1 of
Published on Video
Go to video
Download PDF version
Download PDF version
Embed video
Share video
Ask about this video

Page 1 (0s)

D F C 1 0 2 1 2 : P R O B L E M S O L V I N G & P R O G R A M D E S I G N.

Page 2 (20s)

PROBLEM STATEMENT. Darren applied a housing loan RM 165,00O for 25 years with interest rate, 5% per month. C a l c u l a t e h i s m on t h l y c o mm i t m e n t u s i n g t h e s e f o r m u l a s : 1 . t o t a l _ i n t e r e s t = t o t a l _ l o a n x r a t e x y e a r s 2. monthly_commitment = (total_loan + total_interest) / year / month.

Page 3 (1m 3s)

IPO CHART.

Page 4 (1m 43s)

ALGORITHM. INPUT : RM 165000, 5% OF RATE OF INTEREST, 25 YEARS AND 12 MONTHS T O T A L I N T E R E S T : R M 1 6 5 , 00 0 X 5 % X 2 5 Y E A R S T O T A L I N T E R E S T : R M 2 0 6 , 2 5 0 MONTHLY COMMITMENT : (RM165000 + RM206250 ) ÷ YEARS AND MONTH T O T A L : R M 1 2 3 7 . 5.

Page 5 (2m 27s)

FLOWCHART.

Page 6 (3m 12s)

PSEUDO CODE. START SET INPUT : RM 165000, 5% OF RATE OF INTEREST, 25 YEARS AND 12 MONTHS T O T A L I N P U T : R M 1 6 5 00 0 X 5 % X 2 5 Y E A R S T O T A L O F I N P U T : R M 2 0 6 2 5 0 MONTHLY COMMITMENT : (RM165000 + RM206250 ) ÷ YEARS AND MONTH T O T A L : R M 1 2 3 7 . 5 END.

Page 7 (3m 55s)

THE END.