Activity Array1
Activity Array1
Materials:
Paper: 8.5” x 13”
Submission: April 21, 2025
Instruction:
For each of the output displays shown below, write a complete C++ program that, when compiled and
executed, will produce that exact output. Your code should utilize arrays to store and manipulate the data
being displayed. Ensure your program includes the necessary <iostream> header for output operations.
Provide the complete .cpp source code for each output. Remember to emphasize the use of arrays in their
solutions. (3 points each)
Output Display 1:
Element at index 0: 10
Element at index 1: 20
Element at index 2: 30
Output Display 2:
Greeting: Hello
Output Display 3:
Student Scores:
Score 1: 85
Score 2: 92
Score 3: 78
Score 4: 95
Score 5: 88
Output Display 4:
Enter the ages of 3 people:
Age of person 1: [User Input Here]
Age of person 2: [User Input Here]
Age of person 3: [User Input Here]
Output Display 5:
The sum of the array elements is: 50
Output Display 6:
The maximum element in the array is: 89
Output Display 7:
Original array: 1 2 3 4 5
Reversed array: 5 4 3 2 1
Output Display 8:
33 is present in the array.
Output Display 9:
Elements in the destination array: 100 200 300