Java program ask user to enter 10-character telephone number

Assignment Help JAVA Programming
Reference no: EM1352664

Q1) Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion:

A, B, and C = 2
D, E, and F = 3
G, H, and I = 4
J, K, and L = 5
M, N, and O = 6
P, Q, R, and S = 7
T, U, and V = 8
W, X, Y, and Z = 0

Write a Java program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The program should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-GOOD the application should display 555-438-366

Reference no: EM1352664

Questions Cloud

Compute the values for the following four formulas : A firm uses 50,000 workers to produce 200,000 units of output per day. Compute the values for the following four formulas.
What is the ratio of the speeds of the boats : While the positions of these balls are fixed, ground the ball X and then break the grounding. when X and Y remain in touch, remove Z. Then divide X and Y. What are the charges (if any) on each of the balls.
Importance to study nonverbal behavior : Why is it important to study nonverbal behavior? Do you think that individuals can control nonverbal behavior? Why or why not?
Elucidate the effect of capital formation by comparing : Elucidate the effect of capital formation by comparing the present times and ten year in the future for thtwo economic.
Java program ask user to enter 10-character telephone number : Write a Java program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The program should display the telephone number with any alphabetic characters
Determine the effect on net income : Garner company $12 of vaiable and $5 of fixed costs to produce one bathroom scale which normally sells for $35. A foreign wholesaler offers to purchase 2,000 scales at $15 per.
Consequences of the misjudgment : Explain the heuristics and/or biases at work, the consequences of the misjudgment, and how such misjudgments might be avoided.
Show developmental needs to interpersonal relations : Find two developmental needs related to interpersonal relations that you think are particularly relevant to the current President of the United States.
Why do pork also lamb have comapritively high price : Why do pork also lamb have comapritively high price elasticities of demand compared with the other foodstuffs in the table.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Compilation and Execution - JAVA problem

Style marks are based on how your submitted code looks. Remember that good code is easily readable (and understandable) by someone who did not write it. For assignments, you should also include your name, student number, what course this is, what ass..

  Write a recursive instance method

Write a recursive instance method

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  Implementation the two classes

Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.

  Implementation of memory management

Implementation of memory management

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Executing stringed musical instrument class

Create and execute a stringed musical instrument class.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Implement a fish-lake simulation

Implement a Fish/Lake simulation similar to the previous assignment. You will then make adjustments to accommodate class hierarchies and make use of inheritance as well as a JAVA interface.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd