Answered step by step
Verified Expert Solution
Question
1 Approved Answer
programming language is c++ Question 3 Write a program that asks the user for the number of students in the class. The program then calls
programming language is c++
Question 3 Write a program that asks the user for the number of students in the class. The program then calls a function named computeTotal. This function should calculate and return the sum of all grades in the class. Use this function to prompt to the user for each grade. The program then calls a function named computeAverage. The number of students and the total grade should be used as a parameter of the computeAverage function. The function computes the average grade in the class, and returns the calculated average to the main program. The main program displays the average grade. Please provide 4 test cases at least. 3.1) Copy and paste the source code. 3.2) Provide one screenshot Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started