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

  Assuming you are the chief executive officer

Assuming you are the chief executive officer (CEO) of Apple, describe a situation in which you would use marginal analysis to make a business decision.

  Design a good device interface standard

Discuss why it is so difficult to design a good device interface standard. Provide a detailed example to support your findings. Include a question that responding students can reply to within your initial post

  Calculate charges to determine the charge for each customer

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional .50 per hour for each hour or part thereof in excess of three hours.

  Plot the input and output

1. Consider the audio system in a car. Some people like to hear a lot of bass. Give an equation, in your preference of time or frequency domain, for a bass boost

  Formulating and selecting dss implementation strategies

Discuss the considerations for formulating and selecting DSS implementation strategies.

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  Find the sum of the squares of the integers

Find the sum of the squares of the integers from 1 to My Square, where My Square is input by the user.be sure to check that the user enters a positive integer.

  How many ascii characters can be stored

How many ASCII characters can be stored - How many different values can be stored.

  Explaining formal risk assessment of desktop systems

As apart of a formal risk assessment of desktop systems in small accounting firm with limited IT Support, you have identified asset "integrity of customer and financial data files on desktop systems" and threat.

  Given a 3 millisecond seek time

Given a 3 millisecond seek time for a disk drive and assuming that once you reach the starting track you will write the file as contiguous sectors, how long will it take to write a 1 megabyte file? The disk rotates at 7200 rpm and each sector hold 1 ..

  What are the similarities and differences in the functioning

Discuss the processes an organization would use to develop, design and implement an Information System (IS), or to change an existing IS, to effect improvements in operations. What is the role of the Chief Information Officer?

  Organizational of communication and risk

Introduction: project name, a brief description of the project, and deliverables of the project.

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