myAge = 32 yourAge = 18 myNumber = 81 yourNumber = 17 votingAge = 18 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

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter6: Information And Decision Support Systems
Section: Chapter Questions
Problem 4SAT
icon
Related questions
Question

Step 1:  Consider the following values set to variables.

  • myAge = 32
  • yourAge = 18
  • myNumber = 81
  • yourNumber = 17
  • votingAge = 18

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

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning