Cốc Cốc
NPL.Practice.T01_2.pdf -
Google X +
(2) Facebook
+
drive.google.com/file/d/145A2CSgQ12ywk2tRqKu5YmDMETCA5iDb/view
PDF NPL.Practice.T01_2.pdf
LQ
←
←
N
Share
N
Al
Zalo
+
+
Friso
In Program class, create method with signature:
static private List<string> Generate EmailAddress(List<string> listEmployees)
Complete code in the method to implement requirement
Add comments to explain your code
Test your method with test cases in Main method
Problem 03. Phone Book Management
To manage Phone Book, user creates Phone Book Management system.
The PhoneBook contains the phone book information: name, phone number, email, address, group.
Task
In created solution above, create Console Application project name NPL.Practice. T01.Problem03
1. Create class PhoneBook with fields, access modified and data type.
2.Checking data of class PhoneBook following requirements:
a. The phone number is in format ### ### ####, must be start with 0 (zero), there are 2 spaces and accept digit only. Example: 091 234 5678
b. The group field accepts one of the following values: "Family", "Colleague", "Friend", "Other"""
If data is not pass the rules, throw exception "Input value is not correct!"
3. Create PhoneBookManagement class, add property name ListPhoneBook to store list of
PhoneBook then add new methods
a. Method Add: to add new object into ListPhoneBook
b. Method Remove: to remove object from ListPhoneBook by name
4. Add new method Sort into PhoneBookManagement class: to sort list PhoneBook by name in alphabet.
5. Add new method Find into PhoneBookManagement class to find PhoneBook by name.
THE END --
Pre to search
2:00 PM
Page 616
Q +
31°C Nhiều mây
10/24/2023