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

Match each expression with it simplied expression? help me please ​
What is 7 square root 27 + 5 square root 48 in simplified radical form
can sum one with chegg or course hero help me!!
1. Which country of South-East Asia made rapid economic growth?(a) India (W) China (c) Nepal (d) Pakistan​
Complete the sentences with the correct form of the verb ser. El sándwich de jamón y queso __________ muy sabroso. Question 7 options: es son soy sois
QUESTIONS AT BOTTOM!’ HELP PLEASE 10 POINTS
The density of a gas is 1.35 L what is the volume of the gas when the mass is 12.5 g
I need help! I need help finding irony examples on the internet related to school!!look at the picture​
can someone please answer this its easy!!!!
Please can someone help me write a five-paragraph about the arguments made Against and for American Imperialism