![]() |
CS 111 - Introduction to Computer Science
Homework #8 |
1. Pig Game: In file PigGame.java, implement this specification. Note: You'll want to copy your PigComputerGame.java code as a starting point.
2. Pythagorean Triples: Exercise 5.21. Call your file PythagoreanTriples.java. To limit and avoid redundant output, assume 0 < side1 <= side2 < hypotenuse <= 500. Print each triple space-separated on a single line. Print triples in increasing order of side1, side2, and hypotenuse.