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
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...
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9016bb67-3fdf-4949-8003-d22ffbaada63%2F21bddaea-4567-49a6-a554-30fc658c9264%2Fbgi93ne_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 6 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr