Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

write a short program to find the oldest person between you and one other individual.

OpenStudy (anonymous):

i hate programming, why i picked it i don't know?

OpenStudy (anonymous):

So you inputs... your age and the other's age? Then return max(your age, other's age) I would imagine that's a straight forward approach!

OpenStudy (anonymous):

thanks for your help but i did not understand a thing you said. i just dont understand this whole programming thing

OpenStudy (anonymous):

so you don't know what an input is?

OpenStudy (anonymous):

i do, please explain.

OpenStudy (anonymous):

you have a function with two inputs input1 = your age input2 = other's age using the max function you can get which age is bigger. if you don't want to use that, then you can have an if/else structure. does that help at all?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!