subject

Program pattern#1: write an interactive program where two distinct “rectangular” shapes using the character 'x' maybe displayed on the screen given user input of (a) two positive integers between 5 and 12 and (b) the users choice of "rectangular" display type. the two integer values (between 5 and 12) should be used to represent no# of columns (or width) and no# of rows (or height) to generate the respective shapes on the screen. if the numbers are different, the larger of the two numbers should be used for the height (ie, rows) and the smaller for the width (ie, columns). the user should have an opportunity to choose between the two shapes to be displayed and when to “quit” the program. using appropriate control structures (hint! nested while loops or for statements) write the necessary program statements that will display the desired shapes.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
An excel which cell contains =b2 is copied to row below, the same column. what will be the new cell's content
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
Which of the following statements best describes it careers?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
You know the right answer?
Program pattern#1: write an interactive program where two distinct “rectangular” shapes using the c...
Questions
question
Mathematics, 29.11.2021 01:00
question
Mathematics, 29.11.2021 01:00
question
Biology, 29.11.2021 01:00
Questions on the website: 13722361