Array 1D Practice Pseudocdes
Array 1D Practice Pseudocdes
Directions:
1. An array MARKS stores the following data in this order: 81.2, 92.5, 48.9, 78.8, and 45.5.
Write pseudocode to display all marks that are above 70.
2. An array NUMBERS contains the following numbers in this order: 12, 42, 33, 67, 92, 58,
and 33. Write pseudocode to display the average of the array.
9. Write code to set the first six elements of ANIMALS to be "Java", and the rest to be
"Python". (HINT: use a loop or two)
Extensions
Create an array that stores 15 test scores and use loops to compute the average. Then
determine how many scores are above and below the average. Print all results.
Create an array of numbers and reverse the order of the values. If the actual array is:
1, 2, 3, 4, 5 the new array should be 5, 4, 3, 2, 1