Ask Question

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.

+2
Answers (1)
  1. 18 August, 04:21
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers