Which of the following pseudocode statements express the condition below?A movie theater admits a customer free if he or she is under 2 years old or if he or she is 65 or older.

A. If age < 65 Or age >=2 Then
   admissionPrice = 0
Else
   admissionPrice = regularPrice
B. If age < 2 Or age <= 65 Then
   admissionPrice = 0
Else
   admissionPrice = regularPrice
C. If age > 2 Or age < 65 Then
   admissionPrice = 0
Else
   admissionPrice = regularPrice
D. If age < 2 Or age >=65 Then
   admissionPrice = 0
Else
   admissionPrice = regularPrice


Answer: D

Computer Science & Information Technology

You might also like to view...

A computational problem is

A) a problem that can be solved using an algorithm B) one that arises in the writing of computer programs C) one that arises when a program runs out of memory, or has some other kind of runtime error D) None of the above

Computer Science & Information Technology

Translate the E-R diagram below into an SQL schema involving three tables: E1, R, and E2. Include all primary and foreign key constraints and assume all attributes have type integer.

(a)


(b) Add the following constraint to the above schema. Don't rewrite the whole schema; just
provide the material to be added and tell me where it goes.

(c) Create a view of this database that provides the values of A3 and B1 for all entities
related by R.

Computer Science & Information Technology

You are a busy information technology (IT) specialist at a well-known accounting firm. You work with departments throughout the company to help them solve problems and simplify computer tasks. One of your coworkers asks you to explain the difference between Excel and Access with regard to creating macros and VBA.  What do you tell him?

What will be an ideal response?

Computer Science & Information Technology

The building blocks of any schema are the XML elements that define the structure; these are known collectively as _____.

A. characters B. objects C. variables D. elements

Computer Science & Information Technology