subject

Write a program called telephone. java that prompts the user to enter their phone number using the specific format: (xxx) xxx-. the program should check whether the input entered is valid. the program must also check for the parenthesis () for the area code (the first three numbers). example: (702)892-0516 would be correct but 702-892-0516 would not be correct. example: enter your phone number: 702-908-1333. 702-908-1333 is a not a valid phone number as there are no parenthesis another example: enter your phone number: (70 –290-8133 (70—290-8133 is not a valid phone number. if the entered telephone number is valid the program should return a statement that says the phone number is valid.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 17:50
You work in the accounting department and have been using a network drive to post excel workbook files to your file server as you complete them. when you attempt to save a workbook file to the drive, you see the error message: “you do not have access to the folder ‘j: \’. see your administrator for access to this folder.” what should you do first
Answers: 2
question
Computers and Technology, 25.06.2019 00:00
Into which of these files would you paste copied information to create an integrated document? a. mailing list b. destination c. source d. data source
Answers: 1
You know the right answer?
Write a program called telephone. java that prompts the user to enter their phone number using the s...
Questions
question
Mathematics, 08.10.2019 02:00
question
History, 08.10.2019 02:00
question
Mathematics, 08.10.2019 02:00
question
Mathematics, 08.10.2019 02:00
question
Mathematics, 08.10.2019 02:00
question
Mathematics, 08.10.2019 02:00
Questions on the website: 13722362