CPSC 421-010 Object-Oriented Programming Spring 2026

Exercise 39: Utilities Posted: Feb 24

Provide a single function declaration in the file Utilities.hpp and a single function call in UtilitiesExamples.cpp for each @TODO in UtilitiesExamples.cpp. Once you do, remove the @TODO for that block. The function declarations in Utilities.hpp must follow the order of the examples of the call in UtilitiesExamples.cpp.

Do not implement the function Do not provide a function definition Only provide the declaration and example single call using allof the variables given. The function declaration must be complete enough so that it would be possible to implement the function.

Make sure the program compiles. There is a CMake build provided. However, since you are not providing a function definition, the program will not link or run successfully.

Until you are all done, there are warnings about -Wunused-variable and -Wuninitialized (depending on the compiler). Do not fix them directly, but implement the function declarations and calls.

For each function declaration, include a Doxygen comment that describes the function and describes what data is IN, OUT, or IN/OUT. An example is already in the include file. Note that Doxygen comments start with /**. The file DOXYGEN.md contains instructions for generating Doxygen documentation and on how to view it.

Finish the problem for each @TODO, remove the @TODO, and then commit. Each commit should complete one @TODO. The first one is completed as an example.

If any of the following occur, then the entire exercise score is a 0: