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

1 Expert Approved Answer
Step: 1 Unlock

To address the task at hand you will need to define the function stubs for the missing functions in ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!