Consider the previous question, but include + or letter grades. A+ is 4.25, A is 3.75,

Question:

Consider the previous question, but include + or − letter grades. A+ is 4.25, A− is 3.75, B+ is 3.25, B− is 2.75, and so on.

a. Why can’t we use one switch statement with no other conditionals to convert these additional letter grades?

b. Write a fragment of code that will do the conversion using a multibranch if-else statement.

c. Write a fragment of code that will do the conversion using nested switch statements.

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

Step by Step Answer:

Question Posted: