Question: Write a program that enables the user to input name, address, and local phone number, including area code. Encourage the user to include dashes between

Write a program that enables the user to input name, address, and local phone number, including area code. Encourage the user to include dashes between the numbers (i.e. xxx-xxx-xxxx) when they type in the value. Once retrieved, store the values in a text file. For the phone, surround the phone numbers with asterisks in the file and store only the numbers for the phone number. Do not store the hyphens or dashes in the file. Include appropriate exception-handling techniques with your solution. After storing the name, address, and phone number, display a message indicating the data was stored properly. Use Notepad to view the contents.

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 Systems Analysis Design Questions!