I have a file called presidents.txt. The content inside is as follows...
First Last Age Years
Geogre W 57 8.0
John A 61 4.0
Thomas J 57 8.0
James M 57 8.0
Andrew J 61 8.0
What I need is a program that will add the age and years for each president. For example, George W would be 57+8.0, John A would be 61+4.0, and so on. After adding the numbers for each president, the program would then output the name of the president with the highest number. For example, output here should be "Andrew J at 69". So far I can do this for each president, one at a time, but I would like this to be done in a loop using awk. The command I've been using so far has been
awk 'NR==2 {print $3+$4}' presidents.txt
This will add the numbers 61 and 4.0, resulting in an output of 65, which I suppose is a start. I'm sure I need to use a loop and arrays but have no idea where to start as I do not have much experience with Unix or coding in general. Any help is appreicated.