Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes
asked in CSC211_Winter2018 by (1 point)

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 (1 point)
...