Lab assignment FOUR from Programming for Engineers II in C