Question: Can you write this program in C++? Dont use vectors. Objectives: Use the input file provided to test your program. It will be posted on
Can you write this program in C++? Dont use vectors. 
Objectives: Use the input file provided to test your program. It will be posted on Blackboard. Use arrays of strings, manipulating array content, use input/output files, functions. Sample Input file Bobcats Hosting Inc. (BHI) is a website hosting company. BHI logs the IP addresses of all visitors into a log file (text file). For each website BHI hosts, a list of IP addresses is stored (see the input file sample below). BHI would like to figure out the number of unique IP addresses for each site. Assume that there are no more than 100 IP addresses for each website. ohio.edu 123.23.12.234 234.123.10.1 123.23.12.234 123.23.12.234 78.34.89.123 123.23.12.234 123.23.12.234 78.34.89.123 234.123.10.1 123.78.56.222 123.23.12.234 Write a Cprogram that reads a file of website names and removes all duplicate IP addresses. The program should then output each site with the number of total visitors, number of unique visitors, and the unique IP addresses into a separate file. Ask the user for both input and output file name. A series of 5 dashes,, separates each website data. hoo. com 245.89.9.23 45.67.23.190 201.23.245.10 167.34.234.15 132.235.67.89 45.67.23.190 167.34.234.15 132.235.19.60 45.67.23.190 45.67.23.190 167.34.234.15 167.34.234.15 167.34.234.15 167.34.234.15 245.89.9.23 245.89.9.23 78.34.89.123 78.34.89.123 Your program must implement the following functions: 1. 2. A function that reads the names of the input and output files names. One of the following: gle.com 122.243.12.234 224.123.10.1 13.23.12.234 13.23.12.234 78.34.89.123 123.23.12.234 12.23.12.234 78.34.89.123 234.123.10.1 12.78.56.222 123.23.12.234 245.89.9.23 45.67.23.190 201.23.245.10 167.34.234.15 132.235.67.89 45.67.23.190 167.34.234.15 132.235.19.60 45.67.23.190 45.67.23.190 167.34.234.15 167.34.234.15 167.34.234.15 167.34.234.15 245.89.9.23 245.89.9.23 78.34.89.123 78.34.89.123 245.89.9.23 45.67.23.190 201.23.245.10 167.34.234.15 132.235.67.89 45.67.23.190 167.34.234.1!5 132.235.19.60 45.67.23.190 45.67.23.190 167.34.234.15 167.34.234.15 167.34.234.15 167.34.234.15 245.89.9.23 245.89.9.23 78.34.89.123 78.34.89.123 245.89.9.23 45.67.23.190 201.23.245.10 167.34.234.15 132.235.67.89 45.67.23.190 167.34.234.15 132.235.19.60 45.67.23.190 45.67.23.190 167.34.234.15 167.34.234.15 167.34.234.15 167.34.234.15 245.89.9.23 245.89.9.23 79.34.89.111 79.34.89.111 Afunction that reads all the IP addresses of a single website into an array of strings and determines the number of IP addresses read. If you choose, you can design this function to only accept unique IP addresses and return the original count and the unique count. o Hint: Write a search function that determines if an IP address is in the array already OR A function that reads all the IP addresses into the array and then write a separate function to eliminate the duplicate IPs from the array of strings and consequently changes the original count. o Hint: write a function that removes a single IP address from the array at a certain position. 3. A function to output the website name, number of visitors, the number of unique visitors, and all of the unique IP addresses. notinteresting.org 132.235.16.12 You are encouraged to add other functions. You are not allowed to use any C++ standard template library such as vector An IP address is a unique numerical label assigned to every computer that accesses a TCP/IP network. It consists of four decimal numbers each ranging between 0 and 255 (e.g. 132.235.9.120)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
