Naaman7760 Naaman7760
  • 19-12-2017
  • Computers and Technology
contestada

Draw a simple flowchart and write the pseudocode to represent the logic for a program that allows a user to enter 10 numbers,then displays them in reverse order of entry.

Respuesta :

tonb
tonb tonb
  • 19-12-2017
This is best accomplished using a stack. I'm sure you can draw the flowchart yourself:

stack s
counter=10
while counter>0
    read user input n
    push n on s
    decrease counter

counter = 10
while counter>0
    pop n from s
    display n
    decrease counter

Answer Link

Otras preguntas

You run a pizza delivery service in the greater New York area, delivering to Brooklyn, the Bronx, and Queens. How would you target the ads to optimize your camp
How do political parties affect the structure or processes of Congress? When members of Congress are equally divided by party, it is usually easier to pass bil
Betsy made ribbons for school spirit day. Her roll was 30 ft. Long. For each individual ribbon she needed 0.625 ft. How many ribbons could she make from roll
UDP glucose is required for glycogen synthesis and which of the following pathways? a. Galactose metabolism b. Fructose metabolism c. Pentose Phosphate Pathway
In which four locations do hurricanes occur ?
when using the scientific method, which step comes last?​
Select one option which does not belong: a. inodoro b. ducha c. lavabo d. pantuflas
The factor for this question
2x - 3 = 4x + 1 - X-5
The spent fuel of a nuclear reactor contains plutonium-239, which has a half-life of 24,000 years. If 1 barrel containing 10 kg of plutonium-239 is sealed, how