Lab assignment SIX from Programming for Engineers II in C