question archive Define stubs for the functions called by the below main()

Define stubs for the functions called by the below main()

Subject:Computer SciencePrice: Bought3

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;

}

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions