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

1. Evaluate the truth values of the following conditions given the values of the

ID: 3593503 • Letter: 1

Question

1. Evaluate the truth values of the following conditions given the values of the declared variables. NOTE: Conditions formed using relational or equality operators (>.-= 30 eligibleToRetire & goldwatchyears! nCompany = 25 leToRetire && goldWatch && vearsinCompanv >= 25 goldWatch true; eligibleToRetire & !(goldwatch & (years!nCompany == 25 goldWatch false eligibleToRetire goldwatch earsinCompany != 25 eligibleToRetiregoldWatch) && (vearslnCompany25 eligibleToRetire | goldwatch & (years!nCompany eligibleToRetire = false 25 eligibleToRetire l !(goldwatch (years!nCompany-25 Conditions: Evaluate then Indicate the truth value produced by the relational Truth Value of conditions and the joins. NOTE: Change in variable values do not carry over to Complex Conditions next evaluation (gpa> 3.0) && honorsCollege++otalCreditHrs > 85) (gpa >= 3.5) 1 1 (honorsCollege) && (totalCreditHrs gpa = 4.0; 85) a >= 3.5) & (honorsCollege) | | (totalCreditHrs

Explanation / Answer

Statement 1 is false as given
Statement 2 is true as given
Statement 3 is
true&&true&&true
Hence True

Statement 4 is
!(true&&false&&true)=!(false)
Hence True

Statement 5 is
true&!(true&&true)
Hence False

Statement 6 is
true^false||false
Hence True

Statement 7 is
(true||false)&&true
Hence True

Statement 8 is
true|false&true
Hence True

Statement 9 is
false|!(false^true)
Hence False


Complex Conditions:

Statement 1 is
true &&true|!(86>85)
true&&true|false
Hence True

Statement 2 is
true &&true|!(86>85)
true||true&&true
Hence True


Statement 3 is
true &true||(85<=85)
true&true||true
Hence True

If you like my answer please give it a thumbs up