Answered You can hire a professional tutor to get the answer.
There are 5 bugs in this program and I can't find them can you please help me out?
There are 5 bugs in this program and I can't find them can you please help me out?
// This application reads 10 numbers and sorts them,
// and displays the three highest numbers
start
Declarations
num SIZE = 10
num number
num numbers[SIZE]
num count = 0
getReady()
while count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter a number "
input number
return
detailLoop()
numbers[SIZE] = number
count = count + 1
output "Enter a number "
input number
return
finish()
sort()
output "The highest three are ", numbers[1], numbers[2], numbers[3]
return
sort()
num x = 0
num y = 0
num COMPS = count
while y < COMPS
x = 0
while x < COMPS
if numbers[x] = numbers[x + 1] then
swap()
endif
x = x + 1
endwhile
y = y + 1
endwhile
return
swap()
num temp
temp = numbers[x]
numbers[x + 1] = numbers[x]
numbers[x] = temp
return