2) Suppose we have a class called student that keeps the following information for two student objects:
student1:
ID - 444444444
Phone Number (3 pieces) - 828, 888, 8888
Date of Birth (3 pieces) - 11, 21, 1985
Overall GPA - 3.45
First Letter of Last Name: T
First Letter of First Name: R
student2:
ID - 555555555
Phone Number (3 pieces) - 828, 777, 7777
Date of Birth (3 pieces) - 9, 2, 1965
Overall GPA - 3.05
First Letter of Last Name: S
First Letter of First Name: G
How would you check to see whether these two students are the same,
i.e., all information is exactly the same?
As you have noticed, assigning such values to many students without packing all of this information into one variable is a very difficult task.
3) Write the program segment that determines which one of these two
students is younger.
4) Write the program segment to determine whether these students have
the same area code.