CSIS 1560: BASIC Programming

Assignment 3: Subroutines and Functions

 

Due Oct. 23

 

 

Programming Exercise 4, page 224

 

·        The computation of the Monthly Payment must be done with a function. Before you start writing code, first determine what input parameters your function will need, as well as the types of those parameters (as well as the type of the return value).

·        You are also to create other functions and/or subroutines wherever necessary to avoid unnecessary duplication of code.

·        As the problem states, you are to erase the labels whenever any of the input textboxes have changed.  In order to execute code when a textbox is changed, double click on it (the same way you do for buttons). This will bring up a code window for txtWhatever_Changed(), where txtWhatever is the name of your textbox.

·        Make sure that your code is well documented. In particular, make sure that each of your functions and subroutines has a header which explains what it does, what its input parameters (if any) represent, and what (if anything) it returns.

·        Save this project as Sales.frm and Sales.vbp. Make sure that your name is on the diskette!