Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

1. Who is responsible for resolving this dilemma?

Answered: 1 week ago

Question

7. How might you go about testing these assumptions?

Answered: 1 week ago