Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I Design and write Java application that takes as input a single letter and displays the corresponding digit on the telephone. The letters

How do I Design and write Java application that takes as input a single letter and displays the corresponding digit on the telephone. The letters and digits on a telephone are grouped this way:

2 = ABC4 = GHI 6 = MNO 8 = TUV

3 = DEF5 = JKL7 = PRS9 = WXY

No digit corresponds to either Q or Z.For the two letters, my application should display a message indication that they are not used on a telephone.

The screen dialog might look like this:

Enter a single letter, and I will tell you what the corresponding digit is on the telephone.

R

The digit 7 corresponds to the letter R on the telephone.

my code should display a message indication that there is no matching digit for any nonalphabetic character entered by the user. Also, the application should recognize upper- or lower-case letters.

I need to use proper indentation, appropriate comments, and meaningful identifiers throughout the code.

i need Ask the user to run again.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

Define Synchro Marketing.

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago