Monday, November 12, 2007

Test on Wednesday November 14th

Take Home Test #3

(Emailed to me by Saturday November 17th, 2007...each day late is a letter grade down!)
  1. What is an array?
  2. Why would you need to declare an array?
  3. How do arrays and loops work together?
  4. Use pseudocode to define an array with 50 elements. Make each element equal to 0.
  5. Use pseudocode to define an array of 10 elements. Put the names of three cities from Miami-Dade inside the first three positions of the array.
  6. Use pseudocode to loop through an array of 10 elements and determine whether or not each position in the array is bigger than 5.
  7. Arrays start at what position? (0? 1? 2? etc)
  8. Use pseudocode to create an array with 10 elements. Put 2 in the first, 4 in the second element and so on. The array should only contain even numbers that are multiples of 2 (last number will be 20).
  9. Use pseudocode to create an array with 5 student's scores on an exam. Using a loop and a logical comparison, sort the scores from smallest to largest.
  10. Use pseudocode to create an array with 5 student's scores on an exam. Using a loop and a logical comparison, sort the scores from largest to smallest.

No comments: