You will create a Grade Program that will calculate students’ weighted averages. Youare going to have the user enter lab grades, test grades, and project grades. You will thendisplay a grade...










You will create a Grade Program that will calculate students’ weighted averages. You






are going to have the user enter lab grades, test grades, and project grades. You will then






display a grade report of each individual average along with their overall average and






letter grade.






1.








In the main function, display a cout to the user letting them know they are going to enter






lab








grades. Next, call the








averageGrade








function that will allow the user to enter their






grades and calculate their average.






2.








averageGrade Function:








This will pass the average back to the main function. You






should








NOT








send any parameters to this function. You will be using a








while loop


, with a






priming








read and a








sentinel








value to end the loop. This means the user should be able to






enter any number of grades that they want and exit the loop when they are done entering






grades. When they exit the loop, compute the average








(Make sure to desk check the






average)


. Then you will return the average back.






3.








In the main function, display a cout to the user letting them know they are going to enter






test








grades. Again, call the








averageGrade








function that you created to average any






number of grades.






4.








In the main function, display a cout to the user letting them know they are going to enter






project








grades. Again, call the








averageGrade








function.






5.








Now you will calculate the students overall average in the class.








Create a








classAverage






function to compute the average for the class from the 3 averages above. Use the






following percentages as the weights for each of the grades (Lab – 50%, Tests – 40%,






and Project – 10%). You will pass the function the 3 averages and return the final






average.






6.








Determine Letter Grade:








Create a








getLetterGrade








function to determine the final letter






grade based on their number average calculated in step 5.








Make this a void function






that is sent two parameters, the number grade by value and the letter grade by






reference.






7.








Display the Midterm Grade Report:








Create a








displayGradeReport








function to output






all of your results. This includes the lab average, test average, project average, class






average, and class letter grade. This will also be a void function.








Use setprecision() and






setw() to make your output look nice.






8.








Do While Loop:








Ask user if they want to enter data for a new student. If yes, then clear






the screen and loop back, if not then








display some type of message to end the program


.






When completed with the program there should be 4 functions in addition to the MAIN






function.











Apr 03, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here