Question: Create a C# program named ShowHostNameOfIP.cs to satisfy the following: 1. User can run it on command line with no initial input data. 2. When
Create a C# program named ShowHostNameOfIP.cs to satisfy the following:
1. User can run it on command line with no initial input data.
2. When it runs, it prompts "Enter an IP address (e.g., 131.247.2.211): " to let user enter an IP address at command line. We assume this program accepts only valid and existing IP address, meaning, no need to test it with a random IP or "garbage" input.
3. It reads the given IP address and prints on screen a message "Host name of x.x.x.x is: hhhhhh", where 'x.x.x.x' is the IP address user entered and 'hhhhh' is what your program finds the host name of the IP.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
