Project 04
Home ] Up ]

 

CSIS 250 Fall 2000 Project #4

 

Date Assigned

October 13, 2000

Date Due

October 20, 2000

Assuming the following declarations, come up with a total of 20 functions including the eight listed in the definition below for the class CPhoneBook.  For each function specify the name, a brief description, input, processing, and the results returned.  Prepare a Word document and submit the printout including the self-evaluation sheet.

 

int const MAX_LEN = 10;

 

class CPhoneEntry

  {

  private:

    char name[MAX_LEN+1];

    char phone[14+1];

    char group[10+1];

    int key;

    CPhoneEntry *next;

  public:

    CPhoneEntry(void);

    CPhoneEntry(char ch);

    void display(void);

  };

 

 

class CPhoneBook

  {

  private:

    CPhoneEntry *first;

    CPhoneEntry *last;

    int count;

  public:

    CPhoneBook(void);

    CPhoneBook(char ch);

    ~CPhoneBook(void);

    CPhoneEntry * searchByName(char name[]);

    void sortByName(void);

    bool insert(CPhoneEntry entry);

    bool insert(char name[], char phone[], char group[], int key);

    bool modifyPhone(char name[], char newPhone[]);

  };

 

 

void main(void)

  {

  }

 

 

SELF-EVALUATION SHEET PROJECT #4

Function

Max Score

Your Score

CPhoneBook(void)

1

 

CPhoneBook(char ch)

1

 

~CPhoneBook(void)

1

 

CPhoneEntry * searchByName(char name[])

1

 

void sortByName(void)

1

 

bool insert(CPhoneEntry entry)

1

 

bool insert(CPhoneEntry entry)

1

 

bool insert(char name[],char phone[],char group[],int key)

1

 

bool modifyPhone(char name[],char newPhone[])

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

Total Score

20