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

Given f(x) = 6(1-x), what is the value of f(-8)?
what type of bird egg is this btw i live in sc i found it in my backyard my dog was about to step on it pls say right answer
6-8: Lesson Quiz 0.00 In the figure, d, e, and fare parallel lines. What is the value of x? Enter your answer in the box d (x - 20) - е 700 X=
President Johnson was tried in the ___. Supreme Court House of Representatives Parliament Senate Court of Appeals
help me pleaseeeeeeeeeeeeeeeeeeeeeeeee
Where would you expect to find a volcano on the map below? A B C D
Frankie says that it costs $12.50 to make a wreath. The table below shows the cost to make a wreath. How much does it Sost to make one wreath? 3 5 WREATH, w COS
Plants have many characteristics. What is responsible for these characteristics? Select all that apply. inherited from parents inherited by sibling plants affec
I need help on this.
How do different parts of the nervous system work together to help you perceive and react to the environment?