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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  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.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  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.

  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.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

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

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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