Based on the values to the variables in Step 1, what is the expected output? (Reference: Dual Alternative Decision Structures, page 125). The condition Expected Output If myAge == 31 AND yourAge < myAge Then Display “My age is 31 and your age is less than that” Else Display “Our ages do not qualify” End If If myAge <= 35 AND myAge >= 32 Then Display “My age is between 32 and 35” Else Display “My age is not within that range” End If If yourAge == votingAge OR yourAge > votingAge Then Display “You can vote” Else Display “You cannot vote” End If If myNumber == 83 OR yourNumber == 83 Then Display “One of our numbers is 83” Else Display “83 is not our numbers” End If
Step 3: Based on the values to the variables in Step 1, what is the expected output? (Reference: Dual Alternative Decision Structures, page 125).
The condition |
Expected Output |
If myAge == 31 AND yourAge < myAge Then Display “My age is 31 and your age is less than that” Else Display “Our ages do not qualify” End If |
|
If myAge <= 35 AND myAge >= 32 Then Display “My age is between 32 and 35” Else Display “My age is not within that range” End If |
|
If yourAge == votingAge OR yourAge > votingAge Then Display “You can vote” Else Display “You cannot vote” End If |
|
If myNumber == 83 OR yourNumber == 83 Then Display “One of our numbers is 83” Else Display “83 is not our numbers” End If |
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps