Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Lab 3.1 -Evaluating Conditions A relational operator determines whether a specif

ID: 3870109 • Letter: L

Question

Lab 3.1 -Evaluating Conditions A relational operator determines whether a specific relationship exists between two values. Relationzl eanug eater ean Erpresson eater to to to Help Video: lab3-1.wmv This lab requires you to think about possible true and false conditions using if statements. Step 1: Consider the following values set to variables. Step 2: Based on the values to the variables in Step 1, do the following conditions result in a true or false statement? (Reference: Boolean Expressions, page 126). condition rue or False T8 89

Explanation / Answer

Problem -1 :-

-------------------------

Problem -2 :-

-------------------------

output:-
I am older or equal to your age

Explain :
myAge is 32
yourAge is 18
So myAge >= yourAge (greater than)

The Condition True or False myAge >= yourAge True yourAge > myAge false myAge == 45 false yourAge = votingAge true votingAge <= yourAge true myAge < = votingAge false myName != yourName true myNumber <= myAge false yourNumber >= myAge false yourNumber != 17 false