Remaining Time: 47 minutes, 23 seconds. a Question Completion Status: A Moving t
ID: 3580724 • Letter: R
Question
Remaining Time: 47 minutes, 23 seconds. a Question Completion Status: A Moving to another question will save this response. Question 25 In an accounting application, you discover several places where the total profit, a double value, is cal A The next time the total profit is calculated. use copy and paste to avoid making coding errors. B. Consider writing a function that returns the total profit as a double value. C. All of the listed items. o D Provide the same comment every time you repeat the total profit calculation. A Moving to another question will save this response.Explanation / Answer
In such a the best way is to make use of a function so the answer should be B.
the most productive way is to make a new function for above calculation this can reduce the chances of coding error and is better than copy paste as it also make the code more concise and the number of lines is reduced. whenever there is a need of the total the fuction can be called.