Help in programming squares

Help in programming squares

Write a program  class  named  SquareDisplay that asks the user for a positive integer  no greater than  15. The program  should then display a square on the screen using the character  ‘X’. The number entered by the user will be the length of each side of the square. For example, if the user enters 5, the program  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

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper