CSC 150 Lab 6-2 Team Projects

Two are better than one, because they have a good reward for their labor. For if they fall, the one will lift up his fellow. But woe to him that is alone when he falleth, for he hath not another to help him up. Ecc 4:9

This lab requires you to work in teams of two or three: the preferred size for a team is two.

The goal is to work as a team to analyze a problem, devise an algorithm for solving it, and then write a program to implement the solution. The problems come from an annual programming competition among students from schools in the Associated Colleges of the Chicago Area (ACCA).

Team up with one or two other persons in the class to write C++ programs to solve

  1. Problem 2 on the 2001 ACCA programming competition (Novice level)
  2. Problem 8 on the 2003 ACCA programming competition (Novice level)

Each team should appoint a team lead person for each problem. The lead person will be responsible for submitting the solution once it is complete. When submitting the solution by email, the lead person should cc all members of the team so they know the solution has been submitted.

Make sure that all the names of all team members appear in a programmer/author comment section at the top of the source file.

Team projects are due Tuesday of Week 7.

HINT for Pascal's Triangle: Treat each row of numbers in a triangle as a vector and write a function

vector nextPascal(vector pascal_vector)

that returns a row of Pascal's triangle numbers from a vector of the previous row of numbers.

HINT for Word Values: Run a program that executes the statements:

cout << 'a' - 'a'  << endl;
cout << 'b' - 'a'  << endl;
cout << 'z' - 'a'  << endl;