Here is my whole problem can someone please please HELP Please

1. SPLIT THE PROGRAM IN 3 FILE NETWORK. H, NETWORK.CPP. CLIENTNET.CPP AS IN ADT. DONE

2. DEFINE A CLASS CALLED ADDRESS_T (done) with member for the four integers of an internet address and a fifth member in which to store an associated nickname of 10 characters. The program should read a list of 100 address and nicknames terminated by a sentinel address of all zeros and a nickname “none”. The data will be already stored a file called data.txt.

3. Define and implement a member function CompareTo , which should take2 network addresses and compare them.

4. Include exceptions handling in the code. The program need 2 exception, (1) if the data file not found and it should also ask the user to enter a different file name(2)another exception to handle the case where one of the network is a negative number and skips to the next file entry.

The RED parts are done

Ex of data .txt file

111.22.2.44 platte
555.66.7.88 wabash
111.22.5.66 green
222.334.5.77 blue
777.88.9.99 purple
555.22.789.00 black
0.0.0.0 none

Network.h file

class address_t
{
private:
int firstSet;
int secondSec;
int thirdSet;
int fouthSec;
char adressNames[11];
public:
int getFirstSet(int,int,int);
int getSecondSec(int,int);
int getThirdSet(int);
int getFouthSec(int,int);
};

1. SPLIT THE PROGRAM IN 3 FILE NETWORK. H, NETWORK.CPP. CLIENTNET.CPP AS IN ADT. DONE

2. DEFINE A CLASS CALLED ADDRESS_T (done) with member for the four integers of an internet address and a fifth member in which to store an associated nickname of 10 characters. The program should read a list of 100 address and nicknames terminated by a sentinel address of all zeros and a nickname “none”. The data will be already stored a file called data.txt.

3. Define and implement a member function CompareTo , which should take2 network addresses and compare them.

4. Include exceptions handling in the code. The program need 2 exception, (1) if the data file not found and it should also ask the user to enter a different file name(2)another exception to handle the case where one of the network is a negative number and skips to the next file entry.

Ex of data .txt file

111.22.2.44 platte
555.66.7.88 wabash
111.22.5.66 green
222.334.5.77 blue
777.88.9.99 purple
555.22.789.00 black
0.0.0.0 none

This article has been dead for over six months. Start a new discussion instead.