Question: This interactive program focuses on if/else statements, scanf, parameters, and returning values. Turn in a file named gradanator.c. The program reads as input a student's

This interactive program focuses on if/else statements, scanf, parameters, and returning values. Turn in a file named gradanator.c. The program reads as input a student's grades on homework, labs and two e-x-a-m-s and uses them to compute the student's course grade.

The program begins with an introduction message that briefly explains the program. The program then reads scores in five categories: m-i-d-t-e-r-m-s, f-i-n-a-l-s, homework, labs and daily problems. Each category is weighted: its points are scaled up to a fraction of the 100 percent grade for the course. As the program begins reading each category, it first prompts for the category's weight.

The user begins by entering scores earned on the m-i-d. The program asks whether e-x-a-m scores were shifted, interpreting an answer of 1 to mean yes and 2 to mean no. If there is a shift, the program prompts for the shift amount, and the shift is added to the user's m-i-d score. E-x-a-m scores are capped at a max of 100; for example, if the user got 95 and there was a shift of 10, the score to use would be 100. The m-i-d's weighted score is printed, which is equal to the user's score multiplied by the e-x-a-m's weight.

Next, the program prompts for data about the f-i-n-a-l. The behavior for the f-i-n-a-l-s is the same as the behavior for the m-i-d.

Next, the user enters information about his/her quizzes, including the weight and how many quizzes were given. For each quiz, the user enters a score and points possible. Use a cumulative sum as described in lecture

The program then prompts for the same information about the students homework.

Next the program prompts for the information about the students lab scores. The lab score should be capped at the total points for labs the user entered.

The small problems portion of the grade follows next. It is computed the same as the labs.

Once the program has read the user information for all categories, it prints the student's overall percentage earned in the course, which is the sum of the weighted scores from the seven categories, as shown below:

This interactive program focuses on if/else statements, scanf, parameters, and returning values.

Grade = WeightedMidtermScore + WeightedFinalScore + WeightedQuizScore + WeightedHomeworkScore + WeightedLabScore + WeightedDailyProblemsScore

Turn in a file named gradanator.c. The program reads as input a

student's grades on homework, labs and two e-x-a-m-s and uses them to

Please type in C. No Java, C++ or C+

( Grade 84 x 20 ) + 100 + 6100 x 30) + C15 # 27 * 10) + - (14 + 17 (14 + 17 19 ) x + X (+ 20 Grade = 16.8 +30.0 + 8.9 +33.3 + 5 + 2.5 Grade = 87.63 15 +20 +23x 40) + G=>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!