Most computers on the internet have a 32 bit Internet Protocol Version 4 (IPv4) address.

computer science

Description

Most computers on the internet have a 32 bit Internet Protocol Version 4 (IPv4) address. As reading these addresses would be difficult using binary or hexadecimal notation, IPv4 addresses are usually represented in dotted decimal notation.


For purposes of representation, the 32 bits composing the address may be divided into four octets (bytes) written in decimal numbers, each ranging from 0 to 255, and concatenated as a character string with a full stop (ASCII 46) between each number.


Locally, computers are often known by an alias (nickname) as well. You will design and write a program to process a list of Internet addresses from file “CS222_Inet.txt. Your program should read a list of up to 100 addresses and nicknames terminated by a sentinel address of all zeros and the sentinel nickname, “none”.


Your program will generate a report listing all computers from the same locality---that is, each computer with matching values in the first two components of the address. In the list, the computers should be identified by their alias. The report will be saved to file “222 Locality Report”. The user will also generate a report listing all of the computers sorted alphabetically by alias. This report will be saved to file “222 Alias List”. As with HW3, both reports will contain the user’s name and current date, along with the generated report listing.

Instruction Files

Related Questions in computer science category