Question: Define stubs for the functions called by the below main(). Each stub should print FIXME: Finish FunctionName() follwed by a newline, and should return -1.
Define stubs for the functions called by the below main(). Each stub should print "FIXME: Finish FunctionName()" follwed by a newline, and should return -1. Example output:
FIXME: Finish GetUserNum()
FIXME: Finish GetUserNum()
FIXME: Finish ComputeAvg()
Avg: -1
Sample program:
#include <iostream>
using namespace std;
<STUDENT CODE>
int main() {
int num1 = 0;
int num2 = 0;
intavg = 0;
num1 = GetUserNum();
num2 = GetUserNum();
avg = ComputeAvg(num1, num2);
cout<< "Avg: " <<avg<<endl;
return 0;
}
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
To address the task at hand you will need to define the function stubs for the missing functions in ... View full answer
Get step-by-step solutions from verified subject matter experts
