Solved

In a Vehicle Mileage Application, You Enter Number of Miles

Question 27

Multiple Choice

In a vehicle mileage application, you enter number of miles traveled by a vehicle and the amount of fuel used for 30 consecutive days. From this data the average monthly mileage of the vehicle is calculated. Which of the following should be done to improve the program design?


A) The next time the average monthly mileage is calculated, use copy and paste to avoid making coding errors.
B) Provide the same comment every time you repeat the average monthly mileage calculation.
C) Consider writing a method that returns the average monthly mileage as a double value.
D) Consider writing a method that returns void

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