CSC 235
Programming Assignment #2
Fall 2011
Due Date: 9/9/2011
For each exercise, you should
turn in a printed copy
of the source code and sample output produced by your program.
1. Exercise
3.15, page 100.
2. Exercise 4.27, page 149.
3. Write a
program that reads three positive double values and determines if they
represent the sides of a triangle. If so, the program should also
determine the type of triangle (equilateral, isosceles, or scalene)
and, if it's scalene whether it is also a right triangle. This is
a variation on problems 4.32 and 4.33 on page 150.
4. Exercise 5.20, page 191. Ensure that side1 < side2 < hypotenuse.