Write a grading program for a class with the following grading policies: a. Ther
ID: 3527078 • Letter: W
Question
Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. The should be converted to a percent before they are averaged in.) Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program will read in the student's scores and output the student's record, which consists of two quiz and two exam scores as well as the student's average numeric score for the entire The input/output should be done with the keyboard and screen. course and the final letter grade. Define and use a structure for the student record. Rather than processing scores for a class, your program only needs to deal with a single student. Complete the program with the following modifications: 1) Fully "functionalize" your program: you should have three functions: one for input, one for calculation, one for output. Thus your main() function should only have three function calls within it, other than variable declarations and a return statement. Depending upon your design, these function calls may be stand alone or within an assignment statement. 2) Design your three functions so that they are appropriately using "call by value" and "call by reference" parameters, as well as returning values. Not any function will need to use all three of these constructs, and depending upon your design, it is possible that you will not use all three in your program. But there should be NO GLOBAL VARIABLES: a function may only use the values that have been sent to it as arguments/parameters. 3) Fully document your program for MAXIMUM credit. 4) Provide data validation within your input function based upon the description, states above, of the data coming from the user. Do not assume you have an intelligent user that makes no typing mistakes.Explanation / Answer
#include using namespace std; struct student_record{ int quiz1,quiz2; double midterm ; double final ; double average_quiz; double numeric_score; }; int main() { struct student_record result; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.