CSE 333 25sp Exercise 5

out: Friday, April 11, 2025
due: Monday, April 14, 2025 by 10:00 am, No late exercises accepted.

Goals: Continue exploring multi-file C programs by adding details not part of the previous exercise: header guards, internal linkage for "private" helper functions, and using a Makefile to control building the program.

Description: In this exercise we will modify the implementation of the multi-file C program from the previous exercise. The specification remains exactly the same. The program should have the following three files (specification copied with no changes from the previous exercise, except that ex4.c should be renamed ex5.c):

The differences from the previous exercise are that this time your implementation must:

The Makefile must have the following properties:

In your solution to this exercise, feel free to use code from your own solution to the previous exercise, or the sample solution to that exercise posted on the course website, or both. Also, free to directly adapt the example Makefile from lecture to use here.


Your code must:

You should submit your exercise using the Gradescope dropbox linked on the course resources web page.