Home > Back-end >  O great god in c language help me to solve it
O great god in c language help me to solve it

Time:09-17

[problem description] there are 10 students, each student's data, including student id, name, 3 course results, 10 students from the keyboard input data, output 3 course requirements an average time of 10 students, and students of the highest data (including student id, name, 3 course results, the average score), please use the structure design of the data of the student,

[form] input student id name season 1 2 grade 3 student id name season 1 2 grade 3... Student id name season 1 2 1 ~ 10 grade 3 student id, name is less than 10 Chinese characters, can not leave a space between each word, grade 1 digit after decimal point, output [form]

Average 1 student id name season 1 2 grades 3 score

Average grade 2 student id name season 1 2 grades 3 score

3 grade point average student id name season 1 2 3 grade 3 score

Each course consists of two lines of information, the first line is the course information, including course number and the average score of the course, the second line is the course of the top students of information, the average is divided into the three classes of students scores, divide the output performance of peace 1 digit after decimal point, the output format: printf (" % d % 5.1 f \ n % 5 d % s % 5.1 f % 5.1 f % 5.1 f % 5.1 f \ n ",

[sample input]

1 of my however, parr, 90, 85, 89

2 Deng Yanli, 85, 90, 87

3 Feng Wenhao, 78, 89, 96

Hey ma beautiful 4, 83, 83, 90

5 Gao Shuai, 69, 82, 70

6 GuXiangHong, 92, 83, 70

7 Guo Tinghao, 80, 79, 90

Huang Yuyao 8, 70, 80, 93

9 Jin Changpu 90 60 60

10 receive health care, 98, 69, 85 [sample output] 0 10 receive health 98.0 69.0 85.0 83.5 84.0 1 2 Deng Yanli 85.0 90.0 87.0 87.3 80.0 78.0 89.0 96.0 87.7 2, 83.0 3 Feng Wenhao
  • Related