Display a square on the screen

Assignment Help Basic Computer Science
Reference no: EM131048735

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

Reference no: EM131048735

Questions Cloud

How many addresses are left : Create 4 subnets for this organisation with the first subblock of 120 addresses, the second subblock of 60 addresses, the third subblock of 30 addresses and the fourth subblock of 12 addresses.
Can anybody give me a snippet or a little guide : I need to calculate the hash of the file that its path is stored in fpath variable.I think it can be done via GetHashCode. Can anybody give me a snippet or a little guide?
Annual cost associated with running the upgraded system : What should be done based on your analysis of the US distribution system? Should the new Los Angeles distribution centre be added? Is this strategically something that ABC should do? What have they not considered that may be important?
Calculate the average number of miles you ran : Calculate the sum of the total miles you spent running over the 10 weeks. Calculate the average number of miles you ran.
Display a square on the screen : 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 th..
What evidence indicates that corporate profits will rise : What two factors are important to making the principle of "compounding" work? What evidence indicates that corporate profits will rise?
Difficulties that barilla operating system faces : Would it be effective? If so, which customers would you targetnext? How would you convince them that the JITD program was worth trying? If not, whatalternatives would you suggest to combat some of the difficulties that Barilla's operating system f..
Write essay about video resource based economy sue everatt : Write a short essay one page and a half about the following video. Resource based economy: Sue Everatt at TEDxPasseigDesBorn- https://www.youtube.com/watch?v=LViQjSXjZPw&spfreload=10.
Utilization of productivity drugs and ovarian malady : Stanford School remedial investigators drove pre lit a study on the association between's the utilization of productivity drugs and ovarian malady. All their audit, dispersed in the North american Journal of Epidemiology, alludes to that particula..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Design an application that uses three identical arrays

Design an application that uses three identical arrays of at least 20 integers. It should call each module on a different array, and display the number of swaps made by each algorithm.

  Function that accepts one input parameter

Using Pseudocode, create your own function that accepts one input parameter and returns a float number. You decide the theme. You should provide the pseudocode and an example call. Be sure to provide an overview of what your function is doing.

  Difference between conventional and modern software project

Difference between conventional and modern software project management.

  How much faster will a 64-cpu system run than a 1-cpu system

If the bus is busy, the requesting CPU is put into a FIFO queue. How much faster will a 64-CPU system run than a 1-CPU system?

  Analyze the data to make business decisions

Database reports give us with ability to further analyze the data and give it in format which can be used to make business decisions.

  Why is scalability important in a data-connected application

Which ADO.NET objects allow a developer to build a scalable application? Cite sources.

  Explain the difference between auditory icons and earcons

Explain the difference between auditory icons and earcons. Give reasons why and when/where audio can be useful, and give examples.

  Configure a network

You have been asked by a retail company to install a network in its management remote office. It currently has ten computers running Windows 7, XP, and Linux. The owners are concerned about security because the network will share important data among..

  Organize the product development process for product

This system uses a high-resolution camera to inspect drug labels to ensure they contain the proper information to meet the ever evolving governmental standards. Your task is to organize the product development process for this revolutionary produc..

  Logic circuit to figure out how many of the bits

Design a logic circuit to figure out how many of the bits in a 6 bit unsigned number equal 1. Design the simplest possible circuit to accomplish this.

  Write single statement print message first is followed first

Write a single statement that will print the message "first is " followed by the value of first, and then a space, followed by "second = ", followed by the value of second.

  Actions against company security camera

Joe the janitor is recorded on the company security camera one night taking pictures with his cell phone of the office of the CEO after he is done cleaning it. What will you do and what is your justification for your actions?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd