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 06:20
In what kind of attack can attackers make use of millions of computers under their control in an attack against a single server or network availability confidentiality integrity identity automated attack software? those who wrongfully disclose individually identifiable health information can be fined up to what amount per calendar year? single most expensive malicious attack hipaa what are script kiddies? advanced persistent threat security manager security engineer what level of security access should a computer user have to do their job what process describes using technology as a basis for controlling the access and usage of sensitive data? cybercriminal
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7.
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
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, 27.01.2021 20:00
question
English, 27.01.2021 20:00
question
Mathematics, 27.01.2021 20:00
question
Mathematics, 27.01.2021 20:00
Questions on the website: 13722359