Activity 6 - Feb 9, 2026

Submitted by Brendan Morrissey


2D Arrays

Display 2D Array in a Table

Name Age Gender Student ID
Mike28MaleGGC1234
Jeff32MaleGGC5678
Sarah24FemaleGGC9012
Susan29FemaleGGC3456
Joshua31MaleGGC7890

Search 2D Array

Finding Sarah

Name: Sarah
Age: 24
Gender: Female
Student ID: GGC9012
The total number of students is 7

Searching for the youngest student

The youngest person is 24
Student Sarah 's age is 24 and the student ID is GGC9012
Total 1 student (s) have been found with the age of 24

Finding Male Students

Name: Mike, Age: 28
Name: Jeff, Age: 32
Name: Joshua, Age: 31
Name: David, Age: 30
Total 4 male student(s) found

Finding Female Students

Name: Sarah, Age: 24
Name: Susan, Age: 29
Name: Emily, Age: 27
Total 3 female student(s) found