PDA

View Full Version : Variables in programming


andyhaus1057
Jul 16, 2009, 10:05 AM
Based on the values to the variables in Step 1, do these result in true or false statements?

myAge <= yourAge True?

yourAge > myAge False?

myAge = = 45 False?

yourAge = = votingAge True?

Perito
Jul 16, 2009, 11:36 AM
I don't know what the values are stored in MyAge or yourAge or votingAge (Step 1 is missing), so it's impossible to determine whether the comparisons will yield TRUE or FALSE.

karilynngodd
Oct 17, 2010, 01:29 PM
Yes those are the correct answers. When you do these you need to say what the numbers are for each of them. I only got it because I looked at my lab book