Could someone take a look at this lab. It works the only issue is as I run it and get the bottom of the inheritance program it prompts the user to
"Enter 3 digit area code: Enter 3 digit area code: "
Here is the code, if anyone could possibly take a look at it, any help would be great.
//Lab4.cpp
#include <iostream>
#include <string>
#include "TelephoneNumber.h"
using namespace std;
Enter 3 digit Area Code: 444
Enter 3 digit Prefix: 444
Enter 4 digit Extension: 4444
In TelephoneNumber default constructor
In 3 parameter TelephoneNumber constructor
In 3 parameter TelephoneNumber constructor
In 3 parameter TelephoneNumber constructor
NPA parameter too short -- defaulting to 555
In 3 parameter TelephoneNumber constructor
In 3 parameter TelephoneNumber constructor
Enter 3 digit Area Code: 555
Enter 3 digit Prefix: 555
Enter 4 digit Extension: 5555
In TelephoneNumber default constructor
Enter your first name: MyNum Test
Is this the correct(y/n): y
In Working Telephone Number Default Constructor!
In 3 parameter TelephoneNumber constructor
In 3 parameter TelephoneNumber constructor
NXX parameter too short -- defaulting to 555
In Working Telephone Number Three Parameter Constructor!
Enter 3 digit Area Code: Enter 3 digit Area Code: 999
Enter 3 digit Prefix: 999
Enter 4 digit Extension: 9999
In TelephoneNumber default constructor
Enter your first name: ME Test
Is this the correct(y/n): Y
In Working Telephone Number Default Constructor!
Enter number of working telephone numbers: 54
In Billing Telephone Number Default Constructor!
Telephone Number: (444) 444-4444
Telephone Number: (111) 111-1111
Telephone Number: (555) 222-2222
Telephone Number: (555) 555-5555
Customer Name: MyNum Test
Telephone Number: (999) 999-9999
Customer Name: ME Test
Number of working lines: 54
In Billing Telephone Number Destructor
In Working Telephone Number destructor
In TelephoneNumber destructor
In Working Telephone Number destructor
In TelephoneNumber destructor
In Working Telephone Number destructor
In TelephoneNumber destructor
In TelephoneNumber destructor
In TelephoneNumber destructor
In TelephoneNumber destructor
Press any key to continue . . .