How should you complete the relevant code?

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.)

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:

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


MarcoJacob

MarcoJacob

switch(letter){
case ‘a’:
case ‘m’:
default:
}

LS

LS

Switch
case
case
default