C course assignment