Question: For this lab you will write a program that will read in a 5 grades, create the average of these 5 grades, and print out

 For this lab you will write a program that will read

For this lab you will write a program that will read in a 5 grades, create the average of these 5 grades, and print out a message based on a person's grade. You will need to write a function to read in the 5 grades and produce the average. Call this function compute_grade_avg. You will also need to write a function to use the table to write the proper message based on the grade average. Call this function write_grade_msg. The main function will call compute grade avg and then call write grade mso The function write grade msg will implement the following decision table: Grade Point Average Below 60 60 -69 70 - 79 80 - 89 90 - 100 Notes essage to Print Failed semester - registration suspended On probation for next semester (No message) Dean's list for the semester Highest honors for the semester You are to read in the 5 grades as type int. I assume everyone knows how to do the average of 5 numbers. You will output the average from the compute_grade_avg function. You will need to input that average grade into the write_grade_msg function When you take the average of the 5 grades, use ceil to give you the lower whole number that results from the average

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!