Write a switch statement to convert a letter grade into an equivalent numeric value on a fourpoint

Question:

Write a switch statement to convert a letter grade into an equivalent numeric value on a fourpoint scale. Set the value of the variable gradeValue to 4.0 for an A, 3.0 for a B, 2.0 for a C, 1.0 for a D, and 0.0 for an F. For any other letter, set the value to 0.0 and display an error message.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: