Programming Assignment 1
CS 51520
Operating Systems
Fall, 2021

This assignment makes use of the files contained in this zip file. This assignment is due Monday, September 27.

In the zip file there are C files hw1.h and hw1.c. Your assignment is to complete hw1.h so that the file hw1.c will compile and run. When you run hw1.exe it should produce output that looks exactly like the contents of the file hw1_output.txt. You should not make any changes to the file hw1.c. You should only modify the file hw1.h.

The file hw1.h declares three structs and it declares (with empty implementations) five functions. You need to complete the five function implementations. The first four functions convert a value of one type of struct into a value of another type of the struct. The functions use all of input and output patterns that we discussed in class from the following zip file.

The fifth function, bundleIntoC(), takes as input two arrays (of different types of structs) and it should combine the two arrays into a third array made up of the third kind of struct. Your implementation of bundleIntoC() should make use of your functions convertAtoC() and convertBtoC().

When you have completed the file hw1.h, you can combine it's contents with the contents of hw1.c into a single source file on the C-Tutor. You can then use the C-Tutor to either debug your code or just visualize it after it is completely working.

Turn in a zip file called CS51520Hw1Surname.zip (where Surname is your last name) containing your version of hw1.h.

This assignment is due Monday, September 27.