Examlex

Solved

An Application Needs to Calculate a Discount for Customers Who

question 42

Short Answer

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.


Definitions:

Reaction Formation

a defensive psychological mechanism in which a person unconsciously replaces their true, anxiety-causing feelings with their opposite.

Displacement

A defense mechanism where an individual's emotions or impulses are transferred from the original source of stress to a more acceptable or less threatening target.

Fixation

In psychoanalytic theory, an obsessive interest or feeling stuck at a particular stage of psychological development.

Compensation

A concept in psychology that refers to efforts made to offset or overcome weaknesses, disadvantages, or handicaps, aiming to maintain self-esteem or achieve success.

Related Questions