Solved

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

Question 30

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.


A) I
B) II
C) III
D) I, II, and III

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents