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. Ask the user to enter their lab grades. 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 vou will return the average hack

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I'm currently struggling on developing this program in c++.

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. Ask the user to enter their lab grades. 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. Ask the user to enter their test grades. Again, call the averageGrade function that you
created to average any number of grades.
4. Ask the user to enter their 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.
Transcribed Image Text: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. Ask the user to enter their lab grades. 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. Ask the user to enter their test grades. Again, call the averageGrade function that you created to average any number of grades. 4. Ask the user to enter their 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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education