CS133U Programming in C++ Archives

Sunday
Mar132011

Files for the Final

Tuesday
Mar012011

Lab 7

Tuesday
Mar012011

Assignment 6 (it follows)

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

Wednesday
Feb162011

Sick: No Class

I'm out sick today. If you haven't already, read Chpater 11 for next week.

Tuesday
Feb152011

Lab 5 & 6 Data Files

Lab 5

Lab 6

You'll be working on these labs this week and next, due by the end of lab on Tuesday, February 22.