subject

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

ansver
Answers: 1

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 24.06.2019 21:00, lizbethreyes5725
You are a psychologist who has been asked to write a brief report about the possible causes of anxiety (nervousness, fears, in your report, write up a summary that explains and examines anxiety according to each of the psychological perspectives: psychoanalytic behavioral cognitive humanistic biological sociocultural
Answers: 1
image
Advanced Placement (AP), 24.06.2019 23:00, 860jay
Asap 70 points do you think the little albert experiment was ethical or unethical? why? do you think that inflicting pain or suffering in the name of science is acceptable if something is learned from the experiment? why or why not?
Answers: 2
image
Advanced Placement (AP), 27.06.2019 10:30, kelseatuttleni
Which action would probably not result in good test performance or lessened anxiety? a. visualizing success b. arriving to class right before the test c. taking deep breaths d. getting a good night's sleep before the test
Answers: 2
image
Advanced Placement (AP), 28.06.2019 05:00, jukesjameson12
How does planning activities at your own home you avoid situations involving alcohol? a. your home life does not involve situations with alcohol use. b. alcohol use is almost always tied to group events outside the home. c. you can control whether or not there is alcohol in your home. d. planning activities at home does not you avoid situations involving alcohol. select the best answer from the choices provided.
Answers: 1
You know the right answer?
Help please! The following code segment is used to determine whether a customer is eligible for a di...

Questions in other subjects:

Konu
Advanced Placement (AP), 23.10.2020 20:40
Konu
History, 23.10.2020 20:40