Activity 5 - Feb 9, 2026

Submitted by Calina Winfield


All About Array

After graduation, I want to have a Tacoma

Using loop to display array elements

Friend number 1 is Tichina.
Friend number 2 is Mike.
Friend number 3 is Lisa.
Friend number 4 is Sandy.
Friend number 5 is Kevin.

Associative Array

Using loop to display associative array elements

Student ID of Tichina is 9001234.
Student ID of Mike is 9001235.
Student ID of Lisa is 9001236.
Student ID of Sandy is 9001237.
Student ID of Kevin is 9001238.

Define a 2nd associative array

The total budget for the week is $4000.

Find the employee with the highest weekly payment

Lisa has the highest payment of that week, which is $1200.

Find the employee with the lowest weekly payment

Mike has the lowest payment of that week, which is $500.


2D Array

Student 1

Student 2

Student 3

Student 4

Student 5


2nd example: adding ID

Student 1

Student 2

Student 3

Student 4

Student 5