Question: Write a program in C(notC++) that will read in N grades, create the average of these N grades, and print out a message based on

Write a program in C(notC++) that will read in N grades, create the average of these N grades, and print out a message based on a persons grade. You will need to write a function to read in the N 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_msg. The function write_grade_msg will implement the following decision table: Grade Point Average Message to Print

Below 60 Failed semester registration suspended

60 - 69 On probation for next semester

70 - 79 (No message)

80 - 89 Deans list for the semester

90 - 100 Highest honors for the semester

Notes You are to read in the N grades as type int. You must use an array. 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 N grades, use ceil to give you the higher 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!