Question: The program prompts the user for five input values: 1. an integer value between 1 and 10 (inclusive) for the number of rows to be

The program prompts the user for five input values: 1. an integer value between 1 and 10 (inclusive) for the number of rows to be printed 2. a second integer value between 1 and 10 (inclusive) for the number of columns to be printed 3. a String value for the starting string of the pattern 4. a String value for the second string of the pattern, and 5. a String value that separates the first two strings. The program must use nested for loops to print a rectangular array of alternating first and second strings of the pattern, separated by the separator string and such that the first string in the first row uses the "first string" provided by the user, but each subsequent row alternates the starting string between the "second string" the user provided and the "first string" the user provided
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
