NEED A PERFECT PAPER? PLACE YOUR FIRST ORDER AND SAVE 15% USING COUPON:

homework help 4416

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

Solution:

15% off for this assignment.

Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!

Why US?

100% Confidentiality

Information about customers is confidential and never disclosed to third parties.

Timely Delivery

No missed deadlines – 97% of assignments are completed in time.

Original Writing

We complete all papers from scratch. You can get a plagiarism report.

Money Back

If you are convinced that our writer has not followed your requirements, feel free to ask for a refund.

× How can I help you?