CSCI 2000B

Spring 1999

Lab 5



This in-lab assignment includes running and/or changing three QBASIC programs to prepare you for the out-of-class assignment for the week.



Program 1:

a) Load in the first program LAB5PT1.BAS

b) Read over the program and study what it does.

c) Run the program a few times to get a better understanding of the program..

d) Run the program and enter 0 as the first item number.

e) Modify the program to calculate and output the sales tax (at 7%) and the grand total due. Change the name in the REM statements to yours.

f) Run and test the revised program.

g) Print the program to turn in.



Program 2:

a) Load in the program LAB5PT2.BAS.

b) Read over the program.

c) Run and test the program with different lists of numbers including an empty list.

d) Modify the program to find which number (1st, 2nd, 3rd, etc) in the list held the largest. You will need to keep track of the location in the list as it is entered and reset the location of the largest when a new largest number is found.

e) Change to your name, retest and print the program to turn in.



Program 3:

a) Load in the program LAB5PT3.BAS.

b) Read over the program.

c) Run and test the program.

d) Change the program to allow the user to input the number of months the mortgage was paid in the year. This would allow the user to handle new mortgages. Make sure that number of months is the number of months used for the information

e) Change the program to have your name and print it out.