Write the pseudocode to define a six element array called "scores," and then allow a user to enter 6 scores and store them in the array using a for loop.

What will be an ideal response?

start
   Declarations
      num count = 0
      num scores[6] = 0,0,0,0,0,0
      num SIZE = 6
    for count 0 to SIZE - 1 step 1
      input entry
      scores[count] = entry
    endfor
stop

Computer Science & Information Technology

You might also like to view...

Most organizations use some type of incident-tracking application

Indicate whether the statement is true or false

Computer Science & Information Technology

Write a function that prints all filenames in a specified directory hierarchy without using either ls or find. Its output should be similar to the output of the find command:

$ myfind /users/pat /users/pat /users/pat/bin /users/pat/bin/ksh /users/pat/bin/lf /users/pat/bin/pic /users/pat/chapt1 /users/pat/chapt1/intro /users/pat/rje /users/pat/rje/filel (Hint: Bash and Korn shell functions can be recursive.)

Computer Science & Information Technology