C# - C Sharp: Practical 8: Students Classify Management System
Giải phóng thời gian, khai phóng năng lực
STUDENTS CLASSIFY MANAGEMENT SYSTEM
1. Create a class name Student with these properties:
- static int Count : To count number of student objects created (Field)
- int ID : Student ID
- string Name : Student Name
- string Class : Student Class
- float Math : Mathematical mark
- float Physic : Physical mark
- float Chemistry : Chemistry mark
and a method:
- void Display() : Display student Name, class and the student’s average mark
2. Main program:
a. Display the menu:
1. Add a student
2. List students
3. Classify students
4. Exit
b. Create a List<Student> list to keep all students will be added
c. If user enters 1:
i.Create a new Student object instance
ii.Ask for Name, Class, Math, Physic, Chemistry …
iii.Add the new student to the students list
d. If user enters 2:
i.Loop in the students list and execute Display method
e. If user enters 3:
i.Find all the students with average mark >=8.5 to a List<Student> list and named Goods
Hint: Create a Predicate function IsGood
ii.Find all the students with average mark >=7.0 and <8.5 to a List<Student> list and named Fairs
Hint: Create a Predicate function IsFair
iii.Find all the students with average mark >=5.0 and <7.0 to a List<Student> list and named Normals
Hint: Create a Predicate function IsNormal
iv.Find all the students with average mark <5.0 to a List<Student> list and named Bads
Hint: Create a Predicate function IsBad
v.Loop all elements in each Goods, Fairs, Normals, Bads list and execute student Display method
f. If user enters 4: Exit the program
Giải phóng thời gian, khai phóng năng lực