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++

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

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

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!