ARRAY QUESTIONS
1. A program stores the scores of 10 students in a one-dimensional array called Scores.
Write pseudocode to:
o Input all 10 scores
o Output all scores greater than 50
2. Write pseudocode to:
o Input 8 integers into an array called Data
o Calculate and output the sum and average of the values
3. Write pseudocode to:
o Find and output the maximum value stored in a one-dimensional array Temperatures of size 12
4. A list of 20 student names is stored in an array StudentNames.
Write pseudocode to:
o Input a name
o Use a linear search to determine if the name exists in the array
o Output "Found" or "Not Found" accordingly
5. An array IDs stores 10 student ID numbers.
Write pseudocode to:
o Input an ID to search for
o Perform a linear search
o Output the position (index) if found, otherwise output “ID not found”
6. An array Numbers contains 6 integers.
Write pseudocode to:
o Sort the array in ascending order using the bubble sort algorithm
7. Modify your bubble sort pseudocode to count the number of passes needed to completely sort the array.
Output the pass count at the end.
8. Write pseudocode to sort an array of 10 integers in descending order using the bubble sort algorithm.
9. Write pseudocode to:
o Input 10 integers into an array
o Sort the array in ascending order using bubble sort
o Ask the user to enter a number
o Search for the number using linear search
o Output whether it was found and its position