BASIC13.WPS

BASIC LANGUAGE PROGRAMMING

It is critical in writing programs that the proper supporting documentation be produced along with the program itself. This documentation makes it easier for programmers who will come along later and who must modify your program!

Five pieces of documentation are required in order to assure that a program is properly documented. They are listed below along with a little rhyme used to remember them.

LETTER DOCUMENT RHYME

1) P Purpose of the program PRETTY

2) N Name of the programmer NICE

3) D Description of HOW the DAY

program works (ALGORITHM) (in)

4) V Variable list +( how used) VIRTUAL

5) T Test Data ( 3 sets of data) TOWN

 

ASSIGNMENT - Using the various programming tools which you

have learned so far, write FULLY DOCUMENTED

programs to do the following:

 

1) Write a BASIC program to convert Canadian Dollars to

American dollars. The program is to use input statements

for the number of Canadian dollars and exchange rate.

 

2) Write a program using READ/DATA statements to read the

name and average of each student in a class. Data

reading will terminate when an average of ZERO is fed in

as data. The program will print out a list of the names

of the students in the class and the class average.

Copyright - Barry Boyle (bboyle@kawartha.net)