Write a C or C++ program that
i) Randomly generates more than 10 IP addresses written in decimal format and write the results in a text file (e.g. Dec_IPAddresses.txt)
ii) Read one IP address at a time from Dec_IPAddresses.txt and convert it into Hex. Store the converted values stored in another file (e.g. HEX_IPAddresses.txt).