Question: Module 6.3 | Challenge A PhoneNumber Application Overview In this challenge, you will create a Phone application that takes a phone number input as a

 Module 6.3 | Challenge A PhoneNumber Application Overview In this challenge,

Module 6.3 | Challenge A PhoneNumber Application Overview In this challenge, you will create a Phone application that takes a phone number input as a string and displays the area code and the seven-dieit number as two separate values without any symbols included Specifications Create the skeleton of a program named PhoneNurber. It will contain a main method that: . o Retrieves the users phone number with Scanner and store in a String o Checks that the input string is valid Create a loop to validate the phone number input using the string method matches. If the entry is invalid, inform the user of the error and prompt for and read a new user input. * The loop continues to prompt the use for valid input and displays "Invalid input on the screen untl valid input is matched. o Tokenize the phone number Implement String methods split and subatring in your code when separating the phone number into its parts (3-digit area code, first 3 digits of the number, and last 4 digits of the number). Hint: You will need to use the correct delimiter characters during the tokenization process. Create separate String variables to store areacode (3 digits) and number [7 digits created by concatenating the last two tokens of the phone number) The final program output displays the area code and the seven-digit phone number Additional Requirements * Follow the asic Coding Standards the program. window, the program, and the output. Include a comment section at the top of your program with your student ID, name, and title of * Submit the Java program and a screenshot including your program pathname at the top of the Graded Rubric am compiles and executes am contains the s Your You have used the app Your output resembles the sample output thr Your submission containsa You have followed the Basic Coding Standards. ed user s with i tvalidation. ate methods to check for valid input tokenizin a file and a screenshot with the r Total: 20 points Sample Output (for correct input) Enter a phone nurber with the fornat (555) 555-5555: Invalid input Enter a phone nurber with the fornat (555) 555-5555: 23 456 7890 Invalid input Enter a phone nunber with the format (555) 555-5555: (123) 456 78901 Invalid input Enter a phone nunber with the format (555) 555-5555: (222) 333- 4444 Area Code: 222 Phone Number: 3334444

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!