Advanced Placement (AP)

Help please! The following code segment is used to determine whether a customer is eligible for a discount on a movie ticket. val1 ← (NOT (category = "new")) OR (age ≥ 65)

val2 ← (category = "new") AND (age < 12)

If category is "new" and age is 20, what are the values of val1 and val2 as a result of executing the code segment?

val1 = true, val2 = true
val1 = true, val2 = false
val1 = false, val2 = true
val1 = false, val2 = false

answer
Answers: 1

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 12:00, muanghoih14
Dorgan as just issued a memo to all this employees saying that all tests are to be administered in exactly the same way, given in the same room, and scored in exactly the same way. dorgan wants to ensure that all of his tests
Answers: 3
image
Advanced Placement (AP), 23.06.2019 16:30, wirchakethan23
Problem 1: given: 14 coulombs of charge flow in an electrical circuit. the charge is pushed by a voltage difference if 8 volts. a) calculate the amount of work done in volt. coulombs. b.) calculate the work done in joules.
Answers: 1
image
Advanced Placement (AP), 26.06.2019 01:00, LaToyaShante1228
In your own words define the following terms. 1 hibernation. 2 hormone. 3 behavior. 4 stimulus
Answers: 1
image
Advanced Placement (AP), 26.06.2019 16:00, jholland03
What are political action committees seeking when they give campaign contributions
Answers: 1
Do you know the correct answer?
Help please! The following code segment is used to determine whether a customer is eligible for a di...

Questions in other subjects:

Konu
Social Studies, 29.01.2020 08:54