subject

Numbers displayed on the screen must be formatted for readabiity. Think of your phone number, or Social Security number and Credit Card. Write a program that uses a Scanner to take a single user input. If the user enters 9 characters format it as a Social Security Number. It should appears as 123-45-6789 (must have dashes) If the user enters 10 characters format it as a phone number. It should appears as (123)456-7890 (parentheses around area code and a dash. If the user enters 16 characters format it as a credit card number. It should appears as 1234 5678 9012 3456 (use spaces every 4 digits) The user must enter input all numbers and the input must have a length of 9, 10 or 16. If not display an appropriate error message.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Numbers displayed on the screen must be formatted for readabiity. Think of your phone number, or Soc...
Questions
question
Mathematics, 06.08.2021 03:00
question
Mathematics, 06.08.2021 03:10
Questions on the website: 13722359