LAB7 PROJECT                                                                    CSE314 Spring 2005

Assigned

Due

Goals

FYI

Project Information

Part A:  Makefiles

 

Most of you have used different folders to separate your lab projects.  That is, under your root directory, most students have lab1, lab2, lab3, etc. where each folder has the files for the designated lab.  If you do not already have this type of setup, you will need to create this situation to check your makefile.  Once you have the correct set up of folders and files, write a makefile to do the following:

 

Section “copy”:  Using the section name “copy”, copy all of your .cob files ONLY from each lab folder (lab1 through lab6) to a new directory, called COBOL, which should be created directly under your root directory.  Then delete all the files and directories left behind!

 

Section “check”:  Using the section name “check”, compile and run each of your programs now in your COBOL directory (i.e. from lab1 to lab6).  No errors should occur!

 

Part B:  Subprograms

 

Write a program, called “lab7bproj.cob” to call a subprogram named “lab7bsub.cob”.  The subprogram should determine the clock time given a military time input.  The military time input should come from the screen.  Be sure to have a nice message displayed to the user to denote the format of the input prior to accepting the data.  Be sure to output the equivalent clock time to the screen as well.

 

Part C:  Sort/Merge

 

The goal in writing lab7cproj.cob is to combine the below given files into single control break order!  That is, the resulting file, named lab7out.dat, should be able to be used as an input file for lab4 :o)

 

In /usr/class/cis314/sp05 are the following files for your specific lab:

Car: lab7car.dat, lab7suv.dat, lab7sport.dat, lab7truck.dat, lab7van.dat

Football: lab7offta.dat, lab7defta.dat, lab7specta.dat, lab7offtb.dat, lab7deftb.dat, lab7spectb.dat

Submitting Project Files

When you are finished with the lab, submit the following files for grading: