☑Kizspy.me
public class Employee Project
{
public int EmployeeId { get; set; }
public int ProjectId { get; set; }
public string? Position { get; set; }
}
The client application must:
1. Wait for User Input:
-
Continuously prompt the user to enter an integer (employee ID) via the console.
If the user presses Enter (empty input), the program terminates.
2. Validate Input:
Check if the user input is a valid integer.
If the input is not a valid integer, display an error message (e.g., "Invalid input! Please enter a valid
integer.") and prompt the user to try again.
3. Connect to the Server:
-
Establish a TCP connection to the server at 127.0.0.1:2000.
Send the integer (employee ID) entered by the user to the server.
If the server is not running or the connection fails, display an error message (e.g., "Server is not
running. Please try again later.") and return to waiting for new user input.
Y:\Teaching\PRN_PESC X +