Write a complete C program that analyzes the performance of 4 students in three different subjects: Math, Science, and English. The program should: (i) Prompt the user to input the scores of the 4 students in each subject. Apply a 2D array to store the scores. (ii) Identify which student has the highest average score across all subjects. Apply a non-return value function, include parameter list if necessary. (iii) Identify which student has the lowest average score across all subjects. Apply a non-return value function, include parameter list if necessary. (iv) Calculate the average score for each subject and display it. Apply a return value function, include parameter list if necessary. (v) Determine whether each student is above or below the average performance in each subject. If a student's score in a subject is greater than or equal to the average, then they are above average, else, below average. Requirements: Apply a 2D array. Use functions for better modularization. Display the results clearly for each student and subject. SAMPLE OUTPUT: Enter scores for - Student 1: Math: 85 Science: 92 English: 78 Student 2: Math: 92 Science: 88 English: 95 Student 3: Math: 78 Science: 84 English: 90 Student 4: Math: 95 Science: 79 English: 88 Highest Average: Student 2 [92.50] Lowest Average: Student 3 [84.00] Average Scores: Math: 87.50 Science: 85.75 English: 87.75 Student 1: Math: Above Average Science: Above Average English: Below Average Student 2: Math: Above Average Science: Above Average English: Above Average Student 3: Math: Below Average Science: Below Average English: Above Average Student 4: Math: Above Average Science: Below Average English: Above Average

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question
Note:-Don't try to copy other's work otherwise I'll reduce rating for sure and will report. Don't use AI to generate answer
Write a complete C program that analyzes the performance of 4 students in three
different subjects: Math, Science, and English. The program should:
(i) Prompt the user to input the scores of the 4 students in each subject.
Apply a 2D array to store the scores.
(ii) Identify which student has the highest average score across all subjects.
Apply a non-return value function, include parameter list if necessary.
(iii) Identify which student has the lowest average score across all subjects.
Apply a non-return value function, include parameter list if necessary.
(iv) Calculate the average score for each subject and display it.
Apply a return value function, include parameter list if necessary.
(v) Determine whether each student is above or below the average performance in
each subject. If a student's score in a subject is greater than or equal to the average,
then they are above average, else, below average.
Requirements:
Apply a 2D array.
Use functions for better modularization.
Display the results clearly for each student and subject.
SAMPLE OUTPUT:
Enter scores for -
Student 1:
Math: 85
Science: 92
English: 78
Student 2:
Math: 92
Science: 88
English: 95
Student 3:
Math: 78
Science: 84
English: 90
Student 4:
Math: 95
Science: 79
English: 88
Highest Average: Student 2 [92.50]
Lowest Average: Student 3 [84.00]
Average Scores:
Math: 87.50
Science: 85.75
English: 87.75
Student 1:
Math: Above Average
Science: Above Average
English: Below Average
Student 2:
Math: Above Average
Science: Above Average
English: Above Average
Student 3:
Math: Below Average
Science: Below Average
English: Above Average
Student 4:
Math: Above Average
Science: Below Average
English: Above Average
Transcribed Image Text:Write a complete C program that analyzes the performance of 4 students in three different subjects: Math, Science, and English. The program should: (i) Prompt the user to input the scores of the 4 students in each subject. Apply a 2D array to store the scores. (ii) Identify which student has the highest average score across all subjects. Apply a non-return value function, include parameter list if necessary. (iii) Identify which student has the lowest average score across all subjects. Apply a non-return value function, include parameter list if necessary. (iv) Calculate the average score for each subject and display it. Apply a return value function, include parameter list if necessary. (v) Determine whether each student is above or below the average performance in each subject. If a student's score in a subject is greater than or equal to the average, then they are above average, else, below average. Requirements: Apply a 2D array. Use functions for better modularization. Display the results clearly for each student and subject. SAMPLE OUTPUT: Enter scores for - Student 1: Math: 85 Science: 92 English: 78 Student 2: Math: 92 Science: 88 English: 95 Student 3: Math: 78 Science: 84 English: 90 Student 4: Math: 95 Science: 79 English: 88 Highest Average: Student 2 [92.50] Lowest Average: Student 3 [84.00] Average Scores: Math: 87.50 Science: 85.75 English: 87.75 Student 1: Math: Above Average Science: Above Average English: Below Average Student 2: Math: Above Average Science: Above Average English: Above Average Student 3: Math: Below Average Science: Below Average English: Above Average Student 4: Math: Above Average Science: Below Average English: Above Average
Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr