Write C++ programs to solve Exercises 4 & 5 from Chapter 2 of Kamin & Reingold (page 42).
Create a separate project for each exercise.
What to Hand in:
For each Exercise, you will hand in the following:
Additionally, write a short paragraph/essay on your experiences in working on this assignment.
Sample Problem Definition Form
Problem: State the problem here.
Inputs: Identify the inputs to the program
Outputs: Specify the output of the program
Algorithm: Show the main steps of the algorithm that solves the problem.
Each C++ program should have the following:
// Program Name: <The name of your C++ program file>
// Programmer: <Your name here>
// Address: <your
e-mail and Campus Address here>
// Assignment Number:
<put project number here, e.g. Project#1, Part A>
//
Purpose: <A short problem description>