PROGRAMMING:Statistical average
Experiment 5: array
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
Enter the scores of M courses of n students
(1) Calculate the average score of each student and output
(2) The average score of each course is calculated and output
(3) Find out the students and courses corresponding to the highest score of all 20 scores
(4) Calculate the mean variance
###Input format:
Enter the score of N rows and m columns, and require integers from 0 to 100, separated by spaces( 2<=N,M<=10)
###Output format:
Four lines of data are output here, and one significant bit of corresponding data is reserved.
The first line outputs the average score of each student (there is a space after the last data)
The second line outputs the average score of each course (there is a space after the last data)
The third line outputs the student and course corresponding to the highest score of all 20 scores
The fourth line outputs the mean variance
###Input example:
Here is a set of inputs. For example:
```in
3 4
85 85 85 85
90 90 90 90
95 95 95 95
```
###Output example:
The corresponding output is given here. For example:
```out
85.0 90.0 95.0
90.0 90.0 90.0 90.0
95.0 3 1
sixteen point seven
```
answer:If there is no answer, please comment
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
Enter the scores of M courses of n students
(1) Calculate the average score of each student and output
(2) The average score of each course is calculated and output
(3) Find out the students and courses corresponding to the highest score of all 20 scores
(4) Calculate the mean variance
###Input format:
Enter the score of N rows and m columns, and require integers from 0 to 100, separated by spaces( 2<=N,M<=10)
###Output format:
Four lines of data are output here, and one significant bit of corresponding data is reserved.
The first line outputs the average score of each student (there is a space after the last data)
The second line outputs the average score of each course (there is a space after the last data)
The third line outputs the student and course corresponding to the highest score of all 20 scores
The fourth line outputs the mean variance
###Input example:
Here is a set of inputs. For example:
```in
3 4
85 85 85 85
90 90 90 90
95 95 95 95
```
###Output example:
The corresponding output is given here. For example:
```out
85.0 90.0 95.0
90.0 90.0 90.0 90.0
95.0 3 1
sixteen point seven
```
answer:If there is no answer, please comment