CPSC230 Spring 2004
Final Review

The final will be held in Gosnold 101 on Tuesday, April 27 from 5:00-7:30PM NOTE: This is not the final time for most classes that meet during this time period during the semester, and it is not the classroom where we meet for class.

The final will be comprehensive concentrating on the areas that I have mentioned as most important to CPSC230 (classes and functions) and areas in which you have not been tested: arrays and file streams. There will be at least one question from every chapter that we have covered. It may be helpful for you to review your first two tests and the first two test reviews, test1 review and test2 review. The test will consist of mostly problem-solving. You will write some C++ and be asked to read some C++ and say what it does.

On this and every test there will be:

The test will cover these topics:

  1. Chapter 1, Writing a C++ program, sections 1.20-1.25.
    Specific topics:
  2. Chapter 2, if statements and loops (while and for), sections 2.3-2.15, 2.19, 2.20.
    If statements:Be able to write and trace through:

    Be able to write and evaluate (i.e., say whether the expression it true or false) the following:

    while Loops: Be able to write and trace through (i.e., follow an already written loop):

    Be able to write and trace through and know when to use:

  3. Chapter 3, functions. sections 3.1-3.7, 3.9, 3.15, 3.17, 3.20, 3.21 (or 11.2)
    Specific topics:
  4. Chapter 4, Arrays. sections 4.1-4.6.
    Specific topics:
    Know how to: Practice: To get practice with arrays, I suggest the following exercises in the back of Chapter 4: 4.2,4.3,4.5a-c,4.8,4.13a-c,4.21

  5. Chapter 6, Structs and Classes. sections 6.1-6.17, 7.1, 7.2
    Specific topics:
    Know how to: Practice: To get practice with structs and classes, I suggest the following exercises in the back of Chapter 6: 6.1 (ignore the -> operator that is for pointers, which you'll cover in 231 and are not responsible for now); 6.2a; 6.6, 6.12. Also, I have put the fraction class definition, implementation file, and client program that we wrote in class in the Sample Code section of the 230 web page.

  6. Chapter 12 and 14, File streams. sections 12.4, 12.6-12.8, 14.1-14.6 To practice this, write and test a program that reads in numbers from a file, sums them, averages them, finds the max and min, and counts how many there are, and write the answers to an output file.