0% found this document useful (0 votes)
9 views

Assignment1 C# Language&OOP Test2

The document outlines an assignment involving two lessons. Lesson 1 focuses on inputting an integer to print prime numbers, count specific natural numbers, and manage a student list. Lesson 2 involves creating a coach management system using classes and interfaces, with functionalities for inputting, displaying, and sorting coach data based on experience and salary.

Uploaded by

khangns1603
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Assignment1 C# Language&OOP Test2

The document outlines an assignment involving two lessons. Lesson 1 focuses on inputting an integer to print prime numbers, count specific natural numbers, and manage a student list. Lesson 2 involves creating a coach management system using classes and interfaces, with functionalities for inputting, displaying, and sorting coach data based on experience and salary.

Uploaded by

khangns1603
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT 1

Lesson 1 : Input an integer number from keyboard (named n) and


- Print out n first prime numbers.
- In the natural numbers <= n count how many numbers there are:
+ Divide 5 with the remainder 2.
+ The end digit is “5”.
- Print out the successful development of prime numbers from small to large.
Example: 9 --> 3.3 12 --> 2.2.3
- Give a students list with the fullname of students. Count how many Students that first
name is "Yen".

Lesson 2: We need to manage the coach in a football team.


- Coach: with the informations: code, name, position,salary, years of experience.
1. Build the class as the above requirement (using the inheritance).
2. Build an interface, named IManger to design some methods:
- Input a list of coaches.
- Show list of coaches.
- Count the coaches that have years of experience >=3.
- Whom coaches have the max salary?
- Sort descending salaries of experienced coaches = 3.
3. Implement the above interface.
4. Build the main class:
- Show the menu.
- Depending on the option, call the processing functions in section 3 to display the
results.

You might also like