Solved

For a Program That Reads Three Letter Grades and Calculates

Question 79

Multiple Choice

For a program that reads three letter grades and calculates an average of those grades, which of the following would be a good design based on stepwise refinement?


A) Write one method that reads three letter grades, converts each letter grade to a number, and calculates the average of the three numbers.
B) Write one method that reads three letter grades, and a second method to convert each letter to a number and calculate the average of the three numbers.
C) Write one method that reads a letter grade and returns the number equivalent, and one method that computes the average of three numbers.
D) Stepwise refinement cannot be applied to this problem.

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