Java help please (Phone keypads) The international standard letter/number mappin
ID: 644506 • Letter: J
Question
Java help please (Phone keypads) The international standard letter/number mapping for telephones is shown in Programming Exercise 4.15. Wine a method that returns a number, given an uppercase letter, as follows: int getNumber(char uppercaseLetter) Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (uppercase or lowercase) to a digit and leaves all other characters intact. Here is a sample run of the program:Explanation / Answer
import java.util.Scanner; public class PhoneKeypads { public static void main(String[] args) { StringBuilder sB = new StringBuilder(); Scanner input = new Scanner(System.in); System.out.print("Enter a string: "); String s = input.nextLine(); input.close(); for(int i = 0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.