Have you ever wondered why they always have alphabet next to the digits on the keys? Historically, have been used, mainl

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Have you ever wondered why they always have alphabet next to the digits on the keys? Historically, have been used, mainl

Post by answerhappygod »

Have You Ever Wondered Why They Always Have Alphabet Next To The Digits On The Keys Historically Have Been Used Mainl 1
Have You Ever Wondered Why They Always Have Alphabet Next To The Digits On The Keys Historically Have Been Used Mainl 1 (327.83 KiB) Viewed 15 times
Need code in C.
Have you ever wondered why they always have alphabet next to the digits on the keys? Historically, have been used, mainly in the United States, as a technique for remembering telephone numbers easily. For example, an interior decorator might license the telephone number 1-800-724-6837, but advertise it as the more memorable phone word 1-800-PAINTER. Notice how there's an hyphen after every 3 digits. Q) How? A) When you type PAINTER you will actually end up typing on the keys 724-683-7 Write a program, which accepts a code word of the format '1-800-HOLIDAY and converts that into the original phone number. Example 1: Input: 1-800-HOLIDAY Output: 1-800-405-432-9 Example 2: Input: 1-800-BHANUPIZZA Output: 1-800-242-687-499-2 Hint: 1) Ignore the 1-800-part and focus on the alphabetic string part. 2) For every character figure out the digit of the key it belongs to. To achieve this, create an arrays with strings {"ABC", "DEF" .. "WXYZ"} For every character check the index of the string that it is a member of. Constraints: Always assume the strings are uppercase. Always assume the strings are not longer than 20 characters.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply