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

How do you do dividing 33 photos into two groups at the ratio is 4 to 7?
Write a number in which the digit 8 is ten times the value then the digit in 4.381.
how to do 4x + 5 equals 8
The historical method uses what six things?
Bedroom has a perimeter of 46 feet. If the length is 11 feet, what is the width?
What is a constitution
when Marla rounded 19.95 to the nearest tenth she found the number changed to 20 is this correct explain
If 2 pounds of strawberries cost $4.50, how much would 3 pounds cost?
Professional organizations that controlled how their industry operated and protected their members' interests against outsiders were called _____.
What is meant by the following metaphor: "The students were vultures circling the new student."? A. The students swarmed the student in hopes of being friends.