In this assignment, you will write a program that performs computations on IP blocks. As you may already know, Internet Protocol version 4 (IPv4, or often just IP) is the main network protocol used on the Internet.
An IP address, which identifies a computer on the Internet, is an unsigned 32-bit integer. It is traditionally written as four 8-bit numbers, with the highest (most significant) number first, separated by dots. For example, the IP number 0xACD9002E is written "172.217.0.46".
An IP block, often called a subnet, is a group of IP addresses that share the same bit prefix: all addresses in the block share the same leading (most significant) bits, in their binary representation. The block is traditionally written as an IP address followed by a slash and the number of bits in the prefix. The prefix size is between 0 and 32.
For example, "172.217.0.46/24" is the block consisting of all addresses that share the same first 24 bits w