1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nookie1986 [14]
3 years ago
13

Problem statement: Using loop, write a program that will ask the user to enter a character for left or right. Then, the user wil

l enter a number. The program should generate a ladder of X wherein the level depends on the number entered and the character should dictate whether it faces right or left.
Sample:

Character is r
Number is 3

Output
X
XX
XXX

Character is r
Number is 6
X
XX
XXX
XXXX
XXXXX
XXXXXX

Character is l
Number is 5

X
XX
XXX
XXXX
XXXXX
Computers and Technology
1 answer:
zvonat [6]3 years ago
7 0
Define variables
left is l
right is r

Ask input
left or right

Ask input value

Equate l or r to the input value

Show ladder with steps equal to input value and in the side of input variable
You might be interested in
During the processing stage what does the computer do
Ann [662]
<span>The finished product is "output." In the electronic computer, data are the raw material or input to the computer.</span>
5 0
4 years ago
In china speaking your mind on the internet can cause what problems
Alexxandr [17]

<u>In China, speaking your mind on the Internet might get you arrested.</u>

Please leave a Thanks!

It helps!

7 0
3 years ago
Your computer is taking longer than usual to open files and you noticed that your hard drive light stays on longer than usual wh
cestrela7 [59]

No don't do that. The best way to handle this is to back up all memory on your hard drive and get a bigger size hard drive. Preferably a 2 tb, If need more storage than that then buy a 500 GB ssd Samsung or other products and watch a video how to install one its easy. Its like a Lego. I built my gaming PC and i am 14 so i bet you can too.

4 0
3 years ago
The default (preset slide layouts are set up in ____ orientation.
Rama09 [41]
The default is normal view orientation.
3 0
3 years ago
You invested $2,300 in a stock. Your account now has a value of $2,643. Your percentage gain on the investment (rounded to the n
nasty-shy [4]
Your percentage gain on the investment was d)15%

To find percentage increase we subtract original number from new number.
2,643 - 2,300 = 343
Then we divide 343 by 2,300 = .1491
Then you multiply by 100. 
.1491 * 100 = 14.91
It is a 14.91% (rounded) increase.
So the nearest percent out of these options would be 15%.

Hope this helps you! (:
-Hamilton1757
4 0
4 years ago
Read 2 more answers
Other questions:
  • By default, table headers will include the arrows shown in the table. What menu option(s) are available when this arrow is click
    8·2 answers
  • What is the value of vals[4][1]? double[][] vals = {{1.1, 1.3, 1.5}, {3.1, 3.3, 3.5}, {5.1, 5.3, 5.5}, {7.1, 7.3, 7.5}};
    6·1 answer
  • What is an example of a functional organizational structure?
    10·2 answers
  • 1. What runs horizontally and is identified with numbers?
    12·2 answers
  • How does porter’s competitive forces model help companies develop competitive strategies using information systems?
    13·1 answer
  • On the Audio Tools contextual tab, which tab will control how the audio file appears, if it appears, on the slide itself?
    8·2 answers
  • Which of the following is not a key component of a structure?
    5·1 answer
  • What are some potential challenges that society will face given the digital revolution? You may want to think particularly of th
    10·1 answer
  • 14 Copy a picture of a crane on the next page. Do not trace them. Make a freehand sketch. (2) 2 Look at the placed where the Mar
    11·1 answer
  • Database policies should be created and implemented by all organizations, regardless of the ________ of the organization.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!