An application needs to calculate a discount for customers who are either preferred customers or senior citizens. Preferred customers have a discount code of "P". Senior citizens have a discount code of "S". The discount code is stored in the strCode variable. Write an If clause to calculate a discount for all preferred members and senior citizens using the strCode variable.

What will be an ideal response?


If strCode = "P" OrElse strCode = "S" Then

Computer Science & Information Technology

You might also like to view...

Where is it legal to put a break statement? What does the break do there?

a. A break is placed in a simple (unnested) loop, to terminate the loop. b. A break is placed in an inner block of nested blocks, to transfer control beyond the end of block the break is within. c. A break is placed in a loop in nested loops, to transfer control beyond the end of the innermost loop the break is within. d. A break is placed in a switch statement, to terminate the switch by transferring control beyond the end of the switch. e. A break is placed in a loop where it restarts the loop.

Computer Science & Information Technology

Memory management methods of the vector class include all of the following except:

(a) remove() (b) trimToSize() (c) capacity() (d) size()

Computer Science & Information Technology

Provide a detailed description of what the hard drive configuration will look in a CentOS 7 operating system.

What will be an ideal response?

Computer Science & Information Technology

What are the three principal components of planning and creating a chart?

What will be an ideal response?

Computer Science & Information Technology