You are implementing a library method that accepts a character parameter and returns a string.
If the lookup succeeds, the method must return the corresponding string value. If the lookup fails, the
method must return the value “invalid choice.”
You need to implement the lookup algorithm.
How should you complete the relevant code? (To answer, select the correct keyword in each drop-down list
in the answer area.)
Answer:
switch(letter){
case ‘a’:
case ‘m’:
default:
}
Switch
case
case
default