Create a Program that Contains the Three Value-Returning Functions

Write a program that calculates the average of three test scores. The program should contain three value-returning functions: main, getTestScore, and calcAverage. The main function should call the getTestScore function to get and return each of three test scores. The test scores may contain a decimal place. The main function then should call the calcAverage function to calculate and return the average of the three test scores. When the calcAverage function has completed its task, the main function should display the average on the screen. Display the average with one decimal place.Test the program with the following four sets of data:56, 78, 90100, 85, 6774, 32, 9825, 99, 84code needed in C++

Looking for this or a Similar Assignment? Click below to Place your Order

Open chat
%d bloggers like this: