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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started