Discover answers to your most pressing questions at Westonci.ca, the ultimate Q&A platform that connects you with expert solutions. Connect with a community of experts ready to provide precise solutions to your questions quickly and accurately. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
Sagot :
Answer:
1. True
2. True
3. False
4. False
5. True
6. False
7. True
8. True
9. True
10. False
Explanation:
Following are the complete python code to check the Boolean expressions values:
Program:
grade = 82 #defining the variable grade that inputs integer value
name = "Rumpelstiltskin"#defining the variable name that inputs string value
x = -3#defining the variable x that inputs negative integer value
print(grade == 82)#using the grade variable that checks its value equal to 82
print(grade >= 82 and grade + 10 < 100)#using the grade variable with and gate that checks its value greater than equal to 82 and adding 10 in grade is less than 100
print(grade/ 2 > 90 or grade == 75)#using the grade variable with or gate that checks its grade divide by 2 greater than 90 and grade is equal to 75
print(not(name != "Rumpelstiltskin"))#using not gate that check name not equal to string value
print(name == "Jim" or name == "Rumpelstiltskin")#using the name variable with or gate that checks its value Jim or Rumpelstiltskin
print(x + 3 > 0 or x != -3 or x - 1 < -5)#using the x variable with or gate that checks x and by 3 is greater than 0 or x not equal to -3 or x -1 less than -5
print((x < 0 and x != 3) and x + 5 == 2)#using the x variable with and gate that checks x less than 0 and x not equal to 3 and x+5 equal to 2
print(grade > 65 and (name == "Micheal" or name =="Rumpelstiltskin") and not(x == -3))#using the grade and name variable with or gate that checks grade greater than 65 and name equal to "Micheal" or "Rumpelstiltskin"
print(x > 0 or (grade + 5 < 90 and grade >= 80) or name == "Pam")#using the x and grade variable with or and and gate that checks x greater than 0 or grade + 5 less than 90 and greater than equal to 80
print((not(grade > x) and (name != "Dwight" and x <= 0)) or (grade > 0 and x % 2 == 1))#using the grade, name, x variable with or and and and not grade greater than x and name not equal to "Dwight" and x less than equal to 0 or grade greater than 0 and x modulo 2 equal to 1
Output:
Please find the attached file.
Learn more about the boolean expression here:
brainly.com/question/13265286

Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. We're glad you visited Westonci.ca. Return anytime for updated answers from our knowledgeable team.