Question: Any help in writing this program would be very much appreciated thanks. 3d Due 17-Oct-2017 13 pts @Help / FAQ Teniola Adegbitev Background Reading Horstmann,
3d Due 17-Oct-2017 13 pts @Help / FAQ Teniola Adegbitev Background Reading Horstmann, Java For Everyone, Chapter 3.ZyBook, Section 3 Assignment Lab3d Write a Java program that asks the user to enter a 10-digit string as a typical US telephone number, extracts the 3-digit area code, the 3-digit 'exchange, and the remaining 4-digit number as separate strings, prints them and then prints the complete telephone number in the usual formatting with parentheses. If the user does not enter a 10-digit number, print an error message Requirements: . The name of the Java class is Lab3d . Your 'identification string" should be the first comment of the main method. / Program 3, [Name], [csscld] For example, in my program this would be // Program 3, Patty Kraft, csSC8460 . The prompt should be on its own line with the following text (ie use System.out.print1n()) . Print the number entered Print the area code Print the exchange . Print the last four numbers Print the formatted number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
