PRN212_-_PE_-_SP_2025_3460.webp
Bích Ngọc1

PRN212_-_PE_-_SP_2025_3460.webp

K
Kizspy.me
Zoom
You are given a database script (.sql file) in Zip file. Execute the script before doing
questions.
• You must use the given solution.
You are not allowed to add any more libraries via NuGet Package Manager into the given
solution.
⚫ Just one of above requirements is violated, your work will be considered as invalid.
On completion, submit the whole solution folder.
Before submitting, you can delete the folder [bin] in each project to reduce the size of the solution, to
fit the requirements of PEA_Client.
Question 1.
Design a C# console application to manage a list of students. The application should meet the following
requirements:
1. Create a Student class:
Public Properties: Id (int), Name (string), Age (int).
Public Method: Display() to print student information in the format: "Id: (Id), Name:
(Name), Age: (Age)".
2. Define the IsPromotable delegate:
bool IsPromotable(Student student).
3. Create a Student Manager Class:
о
Contains a list of students (List<Student>)
Public Method: AddStudent(Student student) to add a student to the list.
Public Method: DisplayStudents() to display the list of students.
Public Method: PromoteStudents(IsPromotable isPromotable) to display students who
meet the condition defined by the IsPromotable delegate.
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRN212
Thêm bởi
Bích Ngọc1
Ngày thêm
Lượt xem
342
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom