Question: You are asked to write a Java program which will produced patterned squares. The size of the square must be between 4 and 20 inclusive

 You are asked to write a Java program which will producedpatterned squares. The size of the square must be between 4 and20 inclusive The choices are as follows: A full square -you needthe size of the square and the character to fill the squarewith. A hollow square - you need the size of the square

You are asked to write a Java program which will produced patterned squares. The size of the square must be between 4 and 20 inclusive The choices are as follows: A full square -you need the size of the square and the character to fill the square with. A hollow square - you need the size of the square and the character for the border around the square. An X- you need the size of the square, the character for the X and the character to fill the spaces around the X. A square with horizontal bars - you need the size of the square, the character for the even rows and the character for the odd rows A square with vertical bars - you need the size of the square, the character for the even columns and the character for the odd columns A square with diagonal bars - you need the size of the square, the character for the even diagonals and the character for the odd diagonals An integer filled square - you need the size of the square and the starting integer value. Here are 2 examples: 1. 2. 3. 4. 5. 6. 7. 10 45144 4213943 1 25t 244 22t 19 2 16 23' 21 18 3 7 10 20 17 4 8 11 13 16 11 16 43 4138 34 12 17 21 40 37 33 13 1822 25 36 32 14 19 23 26 28 31 15 20 24 27 29 30 Figure 1. 5x5 square with starting number 1 Figure 2. 6x6 square with starting number 10 A checkered square - you need the size of the square, and 2 characters for the checkers. The size must be a multiple of 4 for the pattern to work. 8. See the sample output screen to see the expected behaviour of your program and samples of the square patterns

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!