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

Hello, I have to write a short program to find the oldest person between myself and that person. I have to use a flow control statement to print the outcome of the result. I am using VB.net. I think I have an idea of it and here it is: If (x > 15) Then Write I know I use If-Then-Else. But not sure how to continue. Help please?

OpenStudy (anonymous):

And the numbers I am using is 15 and 18. Me (15).

OpenStudy (e.mccormick):

Basically, yes. You do something based on the if/then. Here are some Microsoft examples: http://msdn.microsoft.com/en-us/library/752y8abs.aspx In one of them, it changes the message based on if, elseif, and else. You could do something like this, but your messages would be "You are younger then I am," "You are the same age I am," or "You are older than I am." Then have it output the contents of the message in a text box or on a popup.

OpenStudy (anonymous):

So do you know what I would put next? I am having difficulty understanding it. How would I write the code for this specific process? i am not sure

OpenStudy (rsmith6559):

To go back to your original post, you just have to implement Write if the If statement is true, and another Write else it's false.

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!