Program that prompts the user to enter a telephone number

Assignment Help JAVA Programming
Reference no: EM131104551

To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number meaningful, companies must use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters.

Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits. If the user enters more than seven letters, then process only the first seven letters. Also output the - (hyphen) after the third digit. Allow the user to use both uppercase and lowercase letters as well as spaces between words.

Attachment:- Assignment.rar

Reference no: EM131104551

Questions Cloud

What possible errors might the company : What possible errors might the company have made in the computation? Explain.
Physical stimulus and the kinds of sensory responses : Describe the relationship between a physical stimulus and the kinds of sensory responses that result from it. Begin by defining sensation and how psychologists study it.
What exceptionality do you suspect : What exceptionality do you suspect - How would you test or evaluate it and how would the Information Processing Model help to define the problem?
Determine the cycle thermal efficiency : determine the cycle thermal efficiency.
Program that prompts the user to enter a telephone number : Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits
What effect does intra period tax allocation : What effect does intra period tax allocation have on reported net income?
Traditional mass manufacturing methods of management : Due to changes in the environment of business and labor relations since the early 1970s, U.S. businesses can no longer afford to rely on traditional mass manufacturing methods of management. How has the environment changed, and what challenges do ..
Discuss how to use learning theories as change agents : Discuss how to use learning theories (behaviorism, social cognitive, information processing and Constructivism) as change agents.
A maintenance problem with the control panel : The Avery Co. factory has been having a maintenance problem with the control panel for one of its production processes. This control panel contains four identical electromechanical relays that have been the cause of the trouble.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a recursive instance method

Write a recursive instance method

  Design and code swing gui for a two-player tic-tac-toe game

If all nine cells have been filled without a winner the program should indicate that there was a tie.

  Maximum number of processes

The amount of disk space that must be available for page storage is related to the maximum number of processes, n, the number of bytes in the virtual address space, v, and the number of bytes of RAM, r. Give an expression for the worst-case disk-spac..

  Write down a java program and pseudocode to read a number

write a java program and pseudocode to read a number up to 15 digits long or a date ddmmyyyy. the program should

  Creates a temporary array as part of merging

The textbook's Sorts.java merge() method creates a temporary array as part of merging, which is wasteful of computer memory. An alternative would be to store data to be sorted in a linked list rather than an array and to merge "in place" within th..

  Suppose that a variable a is declared as int java eclipse

Suppose that a variable a is declared as int a = 2147483647 (or equivalently,Integer.MAX_VALUE). What do each of the following print. System.out.println(a);

  Write a program as per the application programming interface

Program is written as per the application programming interface (API). Read three sentences from the console application. Each sentence should not exceed 80 characters. Then, copy each character in each input sentence in a [3 x 80] character array.

  Frequently used java array method

Frequently used java array method -method name and parameter

  The data file being used contains records

The data file being used contains records with an employee's name, the number of hours they worked, and their hourly pay rate. Write a program to read the records of information and output (to the Output window or a dialog box) the employee's name..

  Write a sub that implements the game

Write a sub that implements the game

  Correct example of inheritance

Which of the following relationships is not a correct example of inheritance?  Parent to Children  Aunt to Uncle  Grandparent to Grandchild

  Java enumeration lettergrade represent letter grades

Write a java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable holding a boolean value.

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