Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone do these tasks in c++ please, im very confused. Thanks. Task 3: Write a program that asks for the user for the number
Can someone do these tasks in c++ please, im very confused. Thanks.
Task 3: Write a program that asks for the user for the number of students in the class. The program then calls a function named computeTotal, which uses the number of students as a parameter and calculates and display the sum of all grades in class. This function should also return the total to the main function. The program then calls a function named computeAverage. The number of students and the total grade should be used as a parameter for the computeAverage function. The function computes the average grade in the class, and returns the calculated average to the main program. The main program then displays the average grade. The average and the grade should show at least two decimal pointsStep 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