-->
当前位置:首页 > 题库

PROGRAMMING:Use the structure array to calculate the total average score of 10 students in three courses, and the information of the highest score students

Luz5年前 (2021-05-10)题库488
The student structure array manages the information of 10 students, including student number, name and three course grades (double type). Input all the information of 10 students from the keyboard, and print out the total average score and the highest score student information
###Input format:
Input the information of 10 students in turn, including student number char num [6], name char name [8], three course score double score [3]
###Output format:
Output the total average score of 10 students, and the score of the students with the highest total score of 3 courses. All the scores are output with 2 decimal places after the decimal point
###Input example:
Here is a set of inputs. For example:
```in
101 wang 93 89 87
102 li 86 80 78
103 zhao 76 40 98
104 ma 77 70 84
105 han 70 67 60
106 zhang 99 97 95
107 zhou 88 89 88
108 chen 87 88 85
109 yang 72 70 69
110 liu 78 80 83
```
###Output example:
The corresponding output is given here. For example:
```out
eighty point seven seven
106 zhang 99.00 97.00 95.00
```







answer:If there is no answer, please comment