Write aprogram class named squaredisplay that asks the user


Write aprogram class named SquareDisplay that asks the user for a positiveinteger nogreater than 15. Theprogram should then display a square on the screen using thecharacter ‘X'. The number entered by the user will be the length of each side of the square. For example, if the user enters 5, theprogram should display the following:

XXXXX

XXXXX

XXXXX

XXXXX

XXXXX

INPUT and PROMPTS. The program prompts for an integer as follows: "Enter an integer in the range of 1-15: ".

OUTPUT . The output should be a square of X characters as described above.
CLASS NAMES. Your program class should be called SquareDisplay

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write aprogram class named squaredisplay that asks the user
Reference No:- TGS01394597

Expected delivery within 24 Hours