Please create a new project named Chapter7Assignment for this effort:
1.Prompts the user for a telephone number within the main method
2.Create a new class named Chapter7
a.Add a contact phone number field to the new class.
b.Add a set method for the contact phone number field in the new class. Whether the user enters all digits or any combination of digits, spaces, dashes, dots, or parentheses for a phone number, store it as all digits. For example, if the user enters (920) 872-9182, store the phone number as 9208729182. If the user enters a number with fewer or more than 10 digits, store the number as 0000000000.
c.Add a get method for the phone number field. The get method returns the phone number as a String constructed as follows: parentheses surround a three-digit area code, followed by a space, followed by the three-digit phone exchange, followed by a hyphen, followed by the last four digits of the phone number.
3.In the main method - prompts the user for a telephone number and store it within the instantiation of Chapter7 class.
a.Print the telephone number within this format xxx-xxx-xxxx