0618-231 Technical Programming I Fall Quarter 20071 Laboratory Assignment Five Triple Pie Learning Objectives: This lab assignment allows the student to demonstrate problem solving skills related to C++ program flow control structures. The due date for your response is NLT 14 October 2007 . Pre-Laboratory Activities: 1. Review the course materials posted in the mycourses.com site. 2. Read Chapters 1 – 6 in the text. 3. Solve Problem 6 (both a and b parts) on page 330 of the Bronson Textbook. Your laboratory instructor will observe your code and its output during the lab session. (40%) Problem Description: The main lab assignment is to find all the Pythagorean Triples within the set of all triangles with integer sides no larger than 500. A Pythagorean Triple is a right triangle. The relationship between the sides of a Pythagorean Triple is the sum of the squares of two of the sides is equal to the square of the hypotenuse. Use a brute force method which examines all possibilities by testing side1
This is the end of the preview. Sign up
access the rest of the document.