Write the pseudocode to define and initialize a four element array called "evens," with even numbers from 2 to 8, and then find the total of the values in the array using a while loop.

What will be an ideal response?

start
   Declarations
      num count = 0
      num total = 0
      num scores[4] = 2,4,6,8
    while count < 4
      total = total + scores[count]
      count = count + 1
    endwhile
stop

Computer Science & Information Technology

You might also like to view...

One advantage of linking to an external Excel sheet is that you can edit the data directly in Access instead of having to open the file in Excel and make the changes there

Indicate whether the statement is true or false

Computer Science & Information Technology

Which UNIX ARP option is used to display current ARP entries in a UNIX host's ARP table?

A) -a B) -d C) -s D) -n

Computer Science & Information Technology