subject

Write a function that returns the digit value (an integer) corresponding to the letter passed to it an argument based on the encoding on your telephone handset. for example, if the argument is the letter a, b, or c (uppercase or lowercase), your function should return the digit 2. if the argument is not one of the letters of the alphabet, return a value of -1. implement two versions of the function: one using a switch statement and one using a nested if statement. provide a program which tests each function (you may provide two separate source code files or combine them in one source code file which gives you the choice of which function to run).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
You know the right answer?
Write a function that returns the digit value (an integer) corresponding to the letter passed to it...
Questions
question
Social Studies, 06.11.2020 05:50
question
Mathematics, 06.11.2020 05:50
question
Mathematics, 06.11.2020 05:50
question
Social Studies, 06.11.2020 05:50
question
Health, 06.11.2020 05:50
question
Biology, 06.11.2020 05:50
question
Mathematics, 06.11.2020 05:50
question
History, 06.11.2020 05:50
Questions on the website: 13722360