Chapter 2: Fundamental Types, Operators and simple variables

home

Chapter 3 exercises

Chapter 5 exercises

C++ Resources

In addition to the rich selection of programs that should be experimented with through the chapter, there are 15 set exercises to complete in chapter 2. These are links to my codeblocks projects or c++ source files for these exercises.

Exercises 1 to 15.

Updated 29-01-2009
1. Output of the smallest positive integer

2. Output of the smallest integer using negative and positive values

3. Output both the smallest and largest values from input

Updated 30-01-2009
4. Output both largest and second largest values

Updated 02-02-2009
Suggestion for improvement in exercise 4

5.  Total of the values input with count and mean

Updated 08-02-2009
6. Prompt for scale position and color

7. Discover the largest scale value

8. Modern Art

Updated 12-02-2009
9. Count all occurances of 'a' or 'A'

Updated 16-02-2009
10. Count letters in line of input

11. Floating point program with divide by zero exception handling

12. Calculate the Harmonic mean of arbitrary values

Updated 17-02-2009
13. Calculate the Root Mean Square of set of values

A note about this program

14. Option to view mean, harmonic mean and root mean square

Updated 18-02-2009
15. Output the difference between two times