Comp 106 Computing in Engineering and Science

Larry Caretto   Spring 2006

Programming Exercises

1 – Introduction to the C++ Programming Environment

2 – Writing simple programs with input and output

3 – Constants, variables, expressions and assignment statements

4 – Formatting output and use of file input and output

5 – Program control using if statements

6 – Program control using loops

7 – User-defined functions, passing by value and reference

8 – Programming with arrays
Regression program for task one
Data file for task two
Answers for task two