C# - C Sharp: Practical 8: Students Classify Management System

Các khóa học qua video:
Python SQL Server PHP C# Lập trình C Java HTML5-CSS3-JavaScript
Học trên YouTube <76K/tháng. Đăng ký Hội viên
Viết nhanh hơn - Học tốt hơn
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

http://v1study.com/public/images/article/csharp-practical8.png

f. If user enters 4: Exit the program

» Tiếp: Practical 9: Readers Management System
« Trước: Practical 7: Marks Management System
Các khóa học qua video:
Python SQL Server PHP C# Lập trình C Java HTML5-CSS3-JavaScript
Học trên YouTube <76K/tháng. Đăng ký Hội viên
Viết nhanh hơn - Học tốt hơn
Giải phóng thời gian, khai phóng năng lực
Copied !!!