Question: 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

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?
Group of answer choices
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.
Write one method that reads three letter grades, converts each letter grade to a number, and calculates the average of the three numbers.
Write one method that reads a letter grade and returns the number equivalent, and one method that computes the average of three numbers.
Stepwise refinement cannot be applied to this problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!