Tuesday
Mar012011
Assignment 6 (it follows)
Tuesday, March 1, 2011 at 9:10AM Complete the following Programming Challenges:
- #15 on page 573 (although it says it's a group project I am confident you can tackle it individually)
- #16 on page 574 (ditto)
- #1 on page 675 (see chapter 9 for a review of sorting algorithms in C++)
- finally, here’s a rather simple class definition:
class Person
{
private:
static const LIMIT = 25;
string lname; // person’s last name
char fname[LIMIT]; // person’s first name
public:
Person() { lname=""; fname[0]='\0' }; // #1
Person(const string & ln, const char * fn = “Heyyou”); //#2
void Show() const; // firstname lastname format
void FormalShow() const; // lastname, fristname format
};
Write a program that completes the implementation by providing code for the undefined methods. The program in which you use the class should also use the three possible constructor calls (no arguments, one argument, two arguments) and the two display methods.
Due: March 7
Joe Paris | Comments Off | tagged
assignment
assignment