Examlex

Solved

In an Accounting Application, You Discover Several Places Where the Total

question 29

Multiple Choice

In an accounting application, you discover several places where the total profit, a double value, is calculated. Which of the following should be done to improve the program design?
I. The next time the total profit is calculated, use copy and paste to avoid making coding errors.
II. Provide the same comment every time you repeat the total profit calculation.
III. Consider writing a method that returns the total profit as a double value.


Definitions:

Alcohol Abuse

A pattern of drinking that results in harm to one's health, interpersonal relationships, or ability to work, including situations of excessive consumption and dependency.

Attempt Suicide

The act of intentionally trying to end one's own life.

Identical Twins

Twins that are genetically identical, resulting from the splitting of a single fertilized egg.

Adoptive Mom

A woman who has become a parent through the legal process of adoption, establishing a parent-child relationship with a child to whom she is not biologically related.

Related Questions