Create a program that accepts a 10-digit phone number no 1


Toll-Free numbers have become so popular that the 800 code prefix has run out of available numbers, so additional 3-digit prefixes have been added (855, 866, 877, 888). Create a program that accepts a 10-digit phone number (no 1 in front) and tells the user if the message is a toll-free number.

Example: Input: 8001234567 Output: (800) 123-4567 is a toll-free number

Programming Tip - Scan the input in using a long integer, than use the operators / and % to break the number into individual sections.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a program that accepts a 10-digit phone number no 1
Reference No:- TGS02384232

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)