Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is in C++ In this exercise, you create a program that calculates the average of three test scores. The program should contain two value-returning

this is in C++

In this exercise, you create a program that calculates the average of three test scores. The program should contain two value-returning functions (main and calcAverage) and two void functions (getTestScores and displayAverage). The main function should call the void getTestScores function to get three test scores. The test scores may contain a decimal place. The main function then should call the value-returning 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 call the void displayAverage function to display the average of the three test scores on the screen. Display the average with one decimal place. Use a sentinel value to end the program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions