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 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
You know the right answer?
Write a function that returns the digit value (an integer) corresponding to the letter passed to it...
Questions
question
Mathematics, 08.09.2021 01:50
question
History, 08.09.2021 01:50
question
Health, 08.09.2021 01:50
Questions on the website: 13722360