triangleOfStars(6)should produce the output:
* ** *** **** ***** ******
The main() function already includes one call to triangleOfStars. Add at least two more test calls for it to main().
After testing and debugging this function, commit your work to your Subversion repository. Do this by right-clicking on your Session12 in Eclipse and choosing Team → Commit.... Be sure to enter in a sensible log message as the course staff will review the messages.
triangleSameNumEachRow(7)should produce the output:
1 22 333 4444 55555 666666 7777777
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository. Be sure to enter in a sensible log message as the course staff will review the messages.
triangleAllNumsEachRow(6)should produce the output:
1 12 123 1234 12345 123456
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
triangleNumsRightJustified(8)should produce the output:
1
22
333
4444
55555
666666
7777777
88888888
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
triangleNumsCentered(9)should produce the output:
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7 7
8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
numbersConstantForward(4, 7, 3)should produce the output:
111222333444555666777 111222333444555666777 111222333444555666777 111222333444555666777
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
numbersConstantBackward(4, 7, 3)should produce the output:
777666555444333222111 777666555444333222111 777666555444333222111 777666555444333222111
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
numbersIncreasingForward(5, 6)should produce the output:
122333444455555666666 122333444455555666666 122333444455555666666 122333444455555666666 122333444455555666666
Add at least two more test calls for this function to main().
After testing and debugging this function, commit your work to your Subversion repository using a sensible log message.
triangularPyramid(9)
could produce the output (color and thick lines optional):
Include a getMouse() call at the end of your function so the graphics window is displayed long enough to be seen.
Add at least two more test calls for this function to main().