CSc 2310 Principles of Computer Programming I
Spring 1999
Programming Assignment #1
Due: 25 January 1999 (Monday)
[~/teaching/2310/sp99][3:55pm] java p1 Enter length of yard (in yards): 100 Enter width of yard (in yards): 100 Enter length of house (in yards): 30 Enter width of house (in yards): 30 Time required to cut the grass is: 55.0 minutes
Write a Java program that reads in values for m and n and prints the values of the Pythagorean triple generated by these formulas. A sample run of the program is shown below:
[~/teaching/2310/sp99][11:48am] java p2 Enter values of m: 6 Enter values of n: 4 The pythogorean triple generated by 6 and 4 is 20, 48, and 52