Problem Description: The international standard letter/number mapping found on the telephone keypad is shown below: Write a pseudocode and program that reads a letter and displays its corresponding digit. 2 3 1 ABC DEF 4 5 6 GHI JKL MNO 7 8 9 PQRS TUV WXYZ 0 Write a pseudocode on how you would solve the problem in your own word. Write a java program called Phone considering the following directions. Practice here first then write answer on the answer sheet. Also, make sure distinguish high and low caps as Java is case – sensitive. Import and declare a Scanner class Ask user for an Upper – case letter Use the switch statement along with case and break Use the System.exit(1) in the default to terminate the program Print the corresponding digit
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Problem Description:
The international standard letter/number mapping found on the telephone keypad is shown below:
Write a pseudocode and
2 3
1 ABC DEF
4 5 6
GHI JKL MNO
7 8 9
PQRS TUV WXYZ
0
- Write a pseudocode on how you would solve the problem in your own word.
- Write a java program called Phone considering the following directions. Practice here first then write answer on the answer sheet. Also, make sure distinguish high and low caps as Java is case – sensitive.
- Import and declare a Scanner class
- Ask user for an Upper – case letter
- Use the switch statement along with case and break
- Use the System.exit(1) in the default to terminate the program
- Print the corresponding digit
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images