Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write code Program Name: Lautaro.java Input File: lautaro.dat You and your friend Lautaro have secured a job at a telemarketing company. Your job is
Please write code
Program Name: Lautaro.java Input File: lautaro.dat You and your friend Lautaro have secured a job at a telemarketing company. Your job is to go through a list of submitted phone numbers, and determine which ones are valid, valid phone number requirements are defined below: Valid Phone Number Requirements: 1) The phone number must be made up of 10 digits, in the following example format: (123) 4567890 2) There must be a three-digit area code beginning the phone number, and it must be inside a set of parentheses, with nothing inside the parentheses except for the area code. 3) After the area code, there must be a space before there are any more numbers. 4) After the space, we will have 3 digits, followed by a dash, followed by 4 digits. 5) Any number not following this format exactly is invalid. Input: The first line will contain a single integer n(0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started