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

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  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..

  Dijikstra for undirected graph using simple scheme

Dijikstra for undirected graph using simple scheme with array and fibonacci heap and compare the performance/results, preferably in java.

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Java project

Prompt the user for an int between lower and upper boundary.

  Executing stringed musical instrument class

Create and execute a stringed musical instrument class.

  Sorted list adt and the binary search tree adt

Explain the differences between our specifications of the Sorted List ADT and the Binary Search Tree ADT.

  Design and implement a small and simple email server

Design and implement a small and simple email server

  Mean and standard deviation using using eclipse

Java programming to calculate Mean and standard deviation using Using Eclipse.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

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