Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes
asked in CSC211_Winter2018 by (8 points)

1 Answer

+1 vote

Assuming you've had the oldest and youngest age thing working, as the program is reading data and moving the cursor from type (actor/actress) to name to age, whatever age is after the name. So if the age is the youngest/oldest, the string before that is also the name of that actor/actress.

So when you compare the age to a certain value, if the age is greater than that, you assign that age to the oldest variable. As you do that simply assign the according name to the oldestActor/Actress.

answered by (8 points)