Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Am I on the right track with this? write pseudocode to design the logic for a pr

ID: 3930715 • Letter: A

Question

Am I on the right track with this? write pseudocode to design the logic for a program that allows a user to enter 12 numbers, and then displays the numbers in the reverse order of their entry.

start

         Declarations

                  num index

                  num COUNT = 12

                  num list[COUNT] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

getReady()

         while index < COUNT

getNumbers()

         endwhile

finishUp()

stop

getReady()

         index = 0

return

getNumbers()

         output “Enter a number”, index

         input numbers[index]

         index = index + 1

return

finishUp()

         output “The numbers in reverse order are: ”

         while index > 0

         index = index – 1

         output numbers[index]

endwhile

return

Explanation / Answer

Ya, You PSEUDO CODE is looking pretty good.

You have also divided diffenr modules of program in functions, that is ready good.


start
Declarations
num index
num COUNT = 12
num list[COUNT] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

getReady()

while index < COUNT
       getNumbers()
endwhile

finishUp()

stop

getReady()
index = 0
return

getNumbers()
output “Enter a number”, index
input numbers[index]
index = index + 1
return

finishUp()
output “The numbers in reverse order are: ”
while index > 0
   index = index – 1
   output numbers[index]
       endwhile
return

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote