Final answer:
Stubs in programming act as placeholders for functions yet to be fully implemented. The stubs provided for GetUserNum() and ComputeAvg() match the example output, each printing a message indicating they are unfinished and returning -1.
Step-by-step explanation:
In programming, particularly when testing software, stubs are simple implementations of a function used to simulate its behavior. While the final version of the function is not yet developed, stubs provide placeholders that allow the program to compile and run. Below are stubs for two hypothetical functions, GetUserNum and ComputeAvg, which the main program is expected to call.
int GetUserNum() {
printf("FIXME: Finish GetUserNum()\\");
return -1;
}
int ComputeAvg() {
printf("FIXME: Finish ComputeAvg()\\");
return -1;
}
The output of these stubs would align with the example output specified, and each function returns -1 indicating that these are stub implementations awaiting the final logic to be coded.