Vous êtes sur la page 1sur 4

F60C06 FUNDAMENTALS OF PROGRAMMING

Individual Assignment 1 (20%)

Release Date: 7th November 2016, Week 9, Monday

Due Date: 21st November 2016, Week 11, Monday

Question

1. Develop an interactive program that accepts values for loan


amount, yearly interest rate, and monthly payment amount from the
terminal, and computes and displays on the terminal screen a loan
repayment table. Your program execution session should have the
same layout as the following sample terminal run:

Sample run:-

Enter loan amount: 10000.00


Enter yearly interest rate: 0.1790
Enter monthly payment: 50.00
***> Monthly payment too small.
Enter monthly payment: 1000.00

Beginning Payment Interest Principal


Ending

Balance
Balance

---------------- ----------- --------- ------------


----------

10000.00 1000.00 149.17 850.83


9149.16

9149.16 1000.00 136.47 863.52


8285.64

8285.64 1000.00 123.59 876.41


7409.23

7409.23 1000.00 110.52 889.48


6519.75

.
Take note the following while constructing the program.

a. Monthly interest is computed on the beginning balance as


(beginning balance) * (interest rate) / 12
b. Principal is obtained by subtracting monthly interest from
monthly payment.
c. Ending balance is beginning balance minus principal paid.
d. The beginning balance for a month is the same as the ending
balance for the previous month.
e. When the beginning balance for a month becomes less than or
equal to the monthly payment amount, no interest is charged
and the monthly payment is considered as the principal
amount. In this case the monthly payment will be the final
payment on the loan.

2. Write a complete pseudocode for Question 1.


3. Draw a complete flowchart representing the pseudocode for
Question 1.
4. Provide the details of test data and output screen for your program.
5.
Marking Rubric

CRITERIA EXCELLE GOOD SATISFACTOR UNSATISFACT TOT


NT Y ORY AL
10 8-9 6-7 5
Pseudoco Start/stop of Complete No start/stop
de the program with of program
start/ and no
stop of capital letter
the (keywords)
program and no
me indentation.
Appropriate Complete Use of Use of few Not using
capital letter use of appropria capital letter( capital letter(
(keywords) appropria te capital keywords) keywords) in
te capital letter( ke within the a program
letter( ke ywords) programme
ywords) in
througho majority
ut the part of
program the
me program
me
Appropriate Appropria Appropria Few No
indentation te te appropriate indentation in
indentati Indentati Indentation in the
on on in the programme
througho majority programme
ut part of
program the
me program
me
Flowchar Symbol Correct Less than More than 2 Inappropriate
t symbols 2 mistakes of symbol
througho mistakes symbols
ut the of
chart symbols
Logic on Correct Less than More than 2 Inappropriate
control logic 2 mistakes of logic
structure in presente mistakes logic in the presented in
the chart d in the of chart the chart
chart Logic in
the chart
Range Covering Covering Covering Covering any
Test data all the majority average random
possible of number of pathway only
pathway pathway pathway
based on
your program

Output Accuracy of Accurate Accurate Accurate and Acceptable


output based and and covering output and
on range of Covering covering average covering any
test data all the majority number of random
possible of pathway pathway only
pathway pathway based on
your program
Feedback /70
TOTAL

Vous aimerez peut-être aussi