Lab assignment FIVE from Programming for Engineers I in C