Question: using nested loop to create X-shaped cross pattern in C++ 3R1 Use the messages below to prompt for the user's input of size within the
using nested loop to create X-shaped cross pattern in C++


3R1 Use the messages below to prompt for the user's input of size within the range 1 to 10, inclusively: Input size (1 to 10): 4 3R2 Following 2R1 above, if the user inputs an invalid size, the following error message should be displayed, and the program should allow user to input again until a correct size s received: Error: Out-of-range. Input again: 13 Error: Out-of-range. Input again: 0 Error: Out-of-range. Input again: -5 Error: Out-of-range. Input again: 4 3R3Note the meaning of size in the pattern. Make sure that the number of rows and the number of stars in each row are printed correctly. 3R4 After printing the pattern, question 3 completes and the program returns back to the Program Selection Menu. 3R5 Make sure that your program prints the correct pattern (square cross or x-shaped cross) based on your student ID number. Appropriate use of nested loop is required in your codes. You can assume that the users always enter integers when being asked for input. 3R6 3R7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
