Home > Back-end >  A difficult problem to seek help from bosses
A difficult problem to seek help from bosses

Time:09-17


Input from the keyboard not less than 12 students student number 2020 * * * *, every student statistics of Chinese, mathematics, English, C language, sports 5 course grades, including Chinese, English and math are 0, C language, and sports is ABCDF5 level, (level corresponding to score A: & gt; 90, B: 80-89, C: 70-79, D: 60-69, F: & lt; 60)
Please use the array and function to achieve the following functions:
According to the Chinese, maths, English, C language, sports, respectively 1:2:2:2:1 weight calculation of the weighted average (0), hierarchical curriculum result calculated according to the average score on A scale, according to A 95, according to the 5 B... Calculated according to 30, according to the calculation of the weighted average, output each student number and the average scores of students, (pay attention to student number and grade of corresponding accurate)
According to students' test scores are calculated respectively Chinese, maths, English, C language, sports 5 [course grade point averages, calculating the variance of every course or standard deviation,
Find Chinese, maths, English, C language, sports every course and the lowest points, output corresponding student student id
Calculated according to 30, according to the calculation of the weighted average, output each student number and the average scores of students, (pay attention to student number and grade of corresponding accurate)
According to student achievement are calculated respectively Chinese, maths, English, C language, sports scored an average of five course, the calculation of each course find Chinese, maths, English, C language, sports every course and the lowest points, output corresponding student student id suggest Chinese, maths, English, C language, sports the last 15% of the students pay attention to the academic warning for each course,

CodePudding user response:

Cin + string input - & gt; Then string. The find (start, end, char) + passage dividing each student - & gt; If process data - & gt; The output
  • Related