Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program Output will be like below. Write a full menu-driven C program. User will follow the instructions on menu from 1-4. For stable running of
Program Output will be like below.
Write a full menu-driven C program. User will follow the instructions on menu from 1-4. For stable running of the program, please apply the instructions as 1,2,3,4. Another option 5, will be used to quit program and program will give warning if user enter a number except these five options. You are asked to write a complete program with these options in menu: 1- (Create Student List): Asks to user five (5) student name, midterm grade and final grade. 2- Calculate Average Grades of Students): program will calculate the average of students with "float calculate_average(mid, fin) function. The formula of average is 40% of midterm and 60% of final exam. 3- (Calculate Class Average): there will be another function float class_average (float grades[])" for calculating the average grade of class. You will sum average grades of students and then divide by 5 to calculate it. 4- (Display Students Grade List): another "void display_grades(std_inf[][], std_grades[0]. average_grades[], class_average)" function will be used display the student list. 5- (Quit): will be used to finish program. 1-Create student List 2-Calculate Average Grades of students 3-Calculate Class Average -Display Students Grade List -Quit Please make your choice:1 Enter 1. Student Name: Nihat Enter midterm grade: Enter final grade:75 Enter 2. Student Name: Mehmet Enter widterm grade: 71 Enter final grade:63 Enter 3. Student Name: Merve Enter midterm grade:75 Enter final grade : 68 Enter 4. Student Name: Busra Enter midterm grade:41 Enter final grade : 68 Enter 5. Student Name: Emre Enter midterm grade:45 Enter final grade:9 Enter 5. Student Name: Emre Enter midterm grade:45 Enter final grade: 90 1-Create Student List 2-Calculate Average Grades of Students 3-Calculate Class Average 4-Display Students Grade List 5-Quit Please make your choice:2 calculating Average Grades... Completed.. 1 -Create Student List 2-Calculate Average Grades of Students 3-Calculate Class Average 4-Display Students Grade List 5-Quit Please make your choice: 1 -Create Student List 2-Calculate Average Grades of Students 3-Calculate Class Average 4-Display Students Grade List 5- Quit Please make your choice:3 Calculating Class Average... Completed.. 1-Create Student List 2-Calculate Average Grades of Students 3-Calculate Class Average 4-Display Students Grade List 5-Quit please make your choice: Calculating Class Average... completed.. 1-Create Student List 2-Calculate Average Grades of Students 3-Calculate class Average 4-Display Students Grade List 5-Quit Please make your choice:4 --Student List -- Student Midterm Nihat 90 Mehmet 71 Merve 75 Bra 41 Emre 45 Final 75 63 68 68 90 Average 81.00 66.20 70.80 57.20 72.00 Class average is- 46.60 -Student List-- Student Midterm Nihat 90 Mehmet 71 Merve 75 Bra 41 Emre 45 Final 75 63 68 68 90 Average 81.00 66.20 70.80 57.20 72.00 Class average is. 46.60 1-Create Student List 2-Calculate Average Grades of Students 3-Calculate class Average 4-Display Students Grade List 5-Quit Please make your choice:5 Quiting... Process exited after 232.3 seconds with return value o Press any key to continueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started