CSIS
1560: BASIC Programming
Assignment 4: Loops
Due Nov. 20
·
Note
that all numbers in your table must be whole numbers. This means
that will probably need to use integer division, and that you will need some
way to make sure that the numbers all balance in the last year. There are at
least two different solutions for doing this, and is the main design
problem of this assignment.
·
You
are not required to align your output perfectly, as in the
example in the textbook – just make sure that there are enough spaces to make
your output readable. You can get extra credit, however, if you do implement
proper alignment.
·
Make
sure that your code validates all input, displaying an informative
message box for inappropriate input – That is, make sure that the price and
years entered by the user are legal numbers.
·
As
before, you are to break your code down into smaller functions and subroutines
where appropriate.
·
Make
sure that your code is well documented. In particular, make sure
that it describes:
o the purpose of your loop.
o what the loop condition is
based on
o what initialization you are
doing
·
Save
this project as Credit.frm and Credit.vbp. Make sure that your name
is on the diskette!