Tuesday, October 11, 2011

Homework 7 - SimplePrintMatrix.java

You are to write a program which is a modification on exercise 5.17, p 192. You will be writing a method to print a square matrix of randomly generated 1s and 0s, per the instructions in exercise 5.17. In addition, you will need to request and to accept the size of the matrix from the user.

The class name must be SimplePrintMatrix and it must be written as a console application.

Sample Output
Here are screenshots of SimplePrintMatrix's output.


SimplePrintMatrix output (4x4)

SimplePrintMatrix output (5x5)

Now with validation!

SimplePrintMatrix output
size requested below minimum

SimplePrintMatrix output
size requested above maximum

Refer to the deliverables post for comment formatting and required program identification information.

Due Date:
Monday, October 31th, 8:00am