Home /
Expert Answers /
Computer Science /
exercise-f13-given-the-following-definitions-of-functions-process-and-computeaverage-a-show-the-pa900
(Solved):
Exercise F13 Given the following definitions of functions process and computeAverage: A. Show the ...
Exercise F13 Given the following definitions of functions process and computeAverage: A. Show the output after the execution of each of the following sequences of statements: a. cout ? endl ? "Result 1=?t"?process()+2; b. int num1 =3, num2; num 2=process()? num1 cout ? endl ? "Result 2=?t " ? num2; c. cout ? endl ? "Average 1=?t"? computeAverage (20,5); d. int num 1=4, num 2=6 cout ? endl ? "Average 2=?t " ? computeAverage( num1 +3, num 2?2 ); B. Write the sequence of statements to read two floating point values and to compute (usin, function computeAverage) their average and print it.