Magic Squares

OBJECTIVES:

The student will become familiar with organizing data in tabular form (2-D arrays), counting and the concept of wrap-around.

DESCRIPTION:

Create a MAGIC SQUARE, which must be of size 5 (rows and columns) or greater and must be an ODD number. A MAGIC SQUARE has the same SUM for each of its rows, columns and major diagonals.

Use a Object approach to build this solution.

Input:

Output:

Sample Output:

Size 5

Starting Number 1 Increment 1

MAGIC SQUARE

Rules: