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

Tamara borrowed a book from Tai-Yee. However, she lost the book in her room and never could find it. She realizes the right thing to do is let Tai-Yee know that
As the good news spread to Syrian Antioch and many believed, Jewish leaders had ________ killed and had Peter thrown in jail.
Which of the following conversions involves an oxidation of the underlined element? A. H3PO3 → H2P03 B. 03 → 02 C. S03 → S042- D. BrO2 → BrO- E. CIO3 → ClO
Using the charts above as references, find two words using the root below. If you need to, use your dictionary (Do not use the example word given above.). Then
What is two more than 4 times a number is -18 translated and solved
Evaluate : 9⁴xa⁷b⁴/ 3⁵xa⁴b⁴ ​
Select the correctly punctuated sentence. It's time for the class to end, but Mr. Johnson doesnt realize that It's time for the class to end but Mr. Johnson coe
1,400 is 10 times as much as 140- true or false
20 points! Thank you :)
What makes up a mystery?