Home > Back-end >  For a specific code urgent urgent!!!!!!
For a specific code urgent urgent!!!!!!

Time:10-30

Statistics in a class all the students grade point
Keyboard input some student information, including name, age, gender, math, Chinese, English
Three students ahead of statistical grade point average, and output the top three students basic information and
Grade point rule: 100 5, living and above, more than 4 reached and 3; seven or more, other 2, 60 and above, 1, 0
Requirements: write a class student, and a student array to store the student information, pay attention to packaging

CodePudding user response:

Don't write homework

CodePudding user response:

This to learn which ah, object-oriented foundation the foundation, study hard!

CodePudding user response:

Ha ha, I can't write homework,

CodePudding user response:

A train of thought to you
To define several array, such as 100, 90 and above (is the classification of each fraction, define an array)
Traverse student array, every achievement will get, first calculate the average
Then according to the calculation of the average, to each student's entity in the array to the predefined
The student score is 81 points, for example, will this entity in array to more than 80 and score
This will finish all traversal, then those an array of predefined, respectively for sorting (array sorting method is not described, baidu is all at once)
Then you can get the information you want

CodePudding user response:

This is the basic things, you can try to do it, have what problem can ask you this is not going to do
  • Related