Halo
2015-11-01 11:55:19 UTC
"Create the logic for a program that prompts a user for ten numbers and stores them in an array. Pass the array to a method that reverses the order of the numbers. Display the reversed numbers in the main program."
Here's what I have so far:
Start
Declarations
NUM numbers[10]
for count = 0 to 9 step 1
input numbers[x]
endfor
reverseArray(numbers[x])
for count = 0 to 9 step 1
output nums[x]
endfor
Stop
reverseArray(NUM nums[x])
Declarations
NUM nums[10]
for count = 0 to 9 step 1
if nums[x] > nums[x + 1]
Swap()
endif
nums[x] = nums[x + 1]
endfor
return nums[x]
Any help would be appreciated. This isn't in any specific program, so the syntax doesn't matter too much.