BILKENT UNIVERSITY
DEPARTMENT OF COMPUTER TECHNOLOGY AND PROGRAMMING
FALL 1996-1997

CTP 108
COMPUTER PROGRAMMING FOR BUSINESS
LAB GUIDE 1
Week 1

PROGRAM-1 DESCRIPTION

Write a COBOL pgm. to get the following information from the screen:

Max 20 Chars Student Name
3 Chars Num Midterm1
3 Chars Num Midterm2
3 Chars Num Final

and then compute the overall grades of students ( the overall grade is calculated by taking %30 of each midterm and %40 of the final) and display them with their names.

The program should read all input and display the averages of Midterm1, Midterm2 and Final examination results on the screen with a proper screen layout.

The user should indicate end of input by entering a blank name for the "Student Name" field.

Note: Please use the name LAB1-1.CBL as your source file.

PROGRAM-2 DESCRIPTION

Please correct the program which is provided in the diskette.( LAB1-2.CBL) . You can compile the program and run it to find the syntax and run-time errors in it.

Solutions...
Back to first page...