Answer to Question #202430 in C++ for Master j

Question #202430

Observe the following statements, which represents the tasks performed by a function called main:

• Declare a floating-point array, called Covid19, of a size of 10.

• Perform a call to a function named getTemp, as described in part A

• Output the result from the call to a function named calcAvgTemp, as described in part B You are required to implement the C++ instructions for main. (Note: This function will have no return value). 


1
Expert's answer
2021-06-04T06:06:22-0400
#include <iostream>

void getTemp(float *);

float calcAvgTemp(float *);

int main() {
  float Covid19[10];
  getTemp(Covid19);
  std::cout << calcAvgTemp(Covid19) << std::endl;
  return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog