Hi everyone. I'm back!!
As it is I'm playing catchup in my C++ class, I'm about a chapter and a half behind the rest of the class. I'm falling behind due to personal issues (i.e. depression), but am in counseling for it so hopefully I'll have a breakthrough
This next assignment I'm supposed to do for my class has got me completely famboozled. The program is supposed to ask the user for the names of three racers, then type in their finishing times, and then the program is supposed to diplay which racer got first, second and third.
This assignment is out of chapter 4 in my book which is covering if and if/else if statments. In my head, I'm thinkin the "simplest" way to write this program would be to write some code that would simply evaulate the finishing time for each racer, assign the smallest time to a firstplace variable, next largest time to secondplace variable and the last largest time to thirdplace variable. Then all I'd need to do is display the results.
Now I might be completely off in how I'm thinking to write this program. I need some input/opinion on how to go about this. If I'm wrong, then do I simply write a series of IF / ELSE IF statements to evaluate the finishing times and then assign them to the appropiate variable (i.e. firstplace)? And if that is how its supposed to be done, how do I associate the appropiate runner's name with the correct finishing time that was entered by the user.
Well my brain is fried. Thanks in advance. As it is, if someone could point me in the right direction instead of giving me a full blown answer, I'd appreciate that. I find I learn better when searching out the info and reading and doing it myself. Not to sound conceited or anything. And yes, I did try searching this forum first.
Thanks again.
Matt Stacey