Question: i am not sure how to program the method for PRINT_CUSTOMERS and CHANGE_NAME contents of main file: #include Lost ream #include fstream include string using

 i am not sure how to program the method for PRINT_CUSTOMERS

and CHANGE_NAME contents of main file: #include Lost ream #include fstream include

i am not sure how to program the method for PRINT_CUSTOMERS and CHANGE_NAME

contents of main file:

string using namespace std, declare the output file ofstream output-file ( "out.

#include Lost ream #include fstream include string using namespace std, declare the output file ofstream output-file ( "out. 4" 'os : : out) ; class OVERLOADED PHONE BILL public: public interfaces for this class OVERLOADED PHONE BILL (char int) example: g.OVERLOADED PHONE BILL("i f name", 3) first constructor reads information from in file_name; for first threee customers returns nothing (void) OVERLOADED PHONE BILL(void)example: g. OVERLOADED_PHONE BILLO second constructor initializes n to zero: /I returns nothing (void void PRINT_CUSTOMERS(int, intexample: g. PRINT_CUSTONERS(x, y); interface to print information where x is customer phone number, and y is the pin if x and y are -1 and -1, print all customers if x and y are -2 and -2, sort the customers in alphabetical order based on last names and then print them; sorted names are stored in private data; /I returns no values void CHANGE NAME(int, int, char char *); exampLe: g.CHANGE NAHE x. y // update the first and last names for phone numberx with pin y as FRED LAKER /I returns no values int operator (OVERLOADED PHONE_BILL &); /I example: if glg2 / returns 1 if the maximum number of outgoing calls in glis graeter than the maximum in g2; Ireturns otherwise (OVERLOADED-PHONE-BILL E); / example: if (glg2) int operator = returns 1 if the number of customers in g and g2 are equal /I returns otherwise vaid operator + (OVERLOADED-PHONE-BILL E); // example: gl+= g2; append the customers in g2 to gl // assume that all customers are unique // returns no values vaid operator-= (OVERLOADED PHONE BILL E); // example: gl -a2 / delete the customers of g2 from gl if they exist in gl (phone number, first and last names must match) /g2 does not change returns no values private: // private var to be used by this class only (not from main) int n no of customers int customer phone numl 101: I1 customers' phone numbers int customer pinl101customers'pin numbers int noof incoming calls[ 101no of incoming calls to a customer int noof outgoing calls[ 10:I no of outgoing calls from a customer char first names[11015]: customers' first names (15 char max) char last names[ 101115] customers last names(15 char ma har in_file name101; i input file nam #include Lost ream #include fstream include string using namespace std, declare the output file ofstream output-file ( "out. 4" 'os : : out) ; class OVERLOADED PHONE BILL public: public interfaces for this class OVERLOADED PHONE BILL (char int) example: g.OVERLOADED PHONE BILL("i f name", 3) first constructor reads information from in file_name; for first threee customers returns nothing (void) OVERLOADED PHONE BILL(void)example: g. OVERLOADED_PHONE BILLO second constructor initializes n to zero: /I returns nothing (void void PRINT_CUSTOMERS(int, intexample: g. PRINT_CUSTONERS(x, y); interface to print information where x is customer phone number, and y is the pin if x and y are -1 and -1, print all customers if x and y are -2 and -2, sort the customers in alphabetical order based on last names and then print them; sorted names are stored in private data; /I returns no values void CHANGE NAME(int, int, char char *); exampLe: g.CHANGE NAHE x. y // update the first and last names for phone numberx with pin y as FRED LAKER /I returns no values int operator (OVERLOADED PHONE_BILL &); /I example: if glg2 / returns 1 if the maximum number of outgoing calls in glis graeter than the maximum in g2; Ireturns otherwise (OVERLOADED-PHONE-BILL E); / example: if (glg2) int operator = returns 1 if the number of customers in g and g2 are equal /I returns otherwise vaid operator + (OVERLOADED-PHONE-BILL E); // example: gl+= g2; append the customers in g2 to gl // assume that all customers are unique // returns no values vaid operator-= (OVERLOADED PHONE BILL E); // example: gl -a2 / delete the customers of g2 from gl if they exist in gl (phone number, first and last names must match) /g2 does not change returns no values private: // private var to be used by this class only (not from main) int n no of customers int customer phone numl 101: I1 customers' phone numbers int customer pinl101customers'pin numbers int noof incoming calls[ 101no of incoming calls to a customer int noof outgoing calls[ 10:I no of outgoing calls from a customer char first names[11015]: customers' first names (15 char max) char last names[ 101115] customers last names(15 char ma har in_file name101; i input file nam

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!