grade is a char variable that holds a letter grade 'A', 'B', 'C', 'D', or 'F'. Write a switch statement that prints one of the messages in the table below based on the value in grade.
What will be an ideal response?
```
switch (grade){
case'A':
System.out.println("Excellent!");
break;
case 'B':
System.out.println("Very Good");
break;
case 'C':
System.out.println("Good");
break;
case 'D':
System.out.println("You can do better");
break;
case 'F':
System.out.println("You must do better");
break;
default:
System.out.println("Error – invalid grade detected");
} // end switch
```
You might also like to view...
Studies show people remember at least ____ more information when the document they are seeing or reading contains visual elements.
A. one-fourth B. one-half C. one-fifth D. one-third
The native Linux file system, __________, resembles the standard UNIX model.
a. FAT32 b. HFS+ c. linfs d. ext2fs
You developed a sales quotation workbook that you will share with your sales staff to help them quote prices. It shows #DIV/0 in some cells where there are empty quantities in a column. Which function would handle the error and replace it with another value
A) ERRORHANDLER B) IFERROR C) ERRORTRACK D) ERRRORRETURN
What is the purpose of the Frame Check Sequence (FCS) in a frame trailer?
What will be an ideal response?