When you need a data set for testing or demonstration, and that set needs to represent Personally Identifiable Information (PII), you generally dont want to use real data that represents actual people. This assignment will consist of creating a program that generates test names and phone numbers.

To make things more interesting, well generate other phone numbers that do not violate the North American Numbering Plan (NANP) rules. For the purpose of verifying the phone numbers generated will use the function created in Homework 6. The same validation code that you created in the separate module and used in assignment 6 will also be used for validating the phone numbers generated. Duplication of code is not acceptable.

You do not have to limit yourself to the list but just for guidance. The example provided used Last names of Smith, Johnson, Williams, Garcia, Jones, and Brown. For First Names of Mary, Patricia, Linda, Barbara, Elizabeth, Jessica, James, John, William, Robert, Michael, Sam.

The Verify Phone button should open from the first form. If you are working of Homework 06 go change the startup form in the application properties.

The print button should print all the items on the list to a text file c:tempPII.txt. Make sure all the records print including the first and last. Those are the ones I will be looking for. There are multiple ways of generating a text file however the simplest is streamwriter. The most common mistake made is not setting the correct location for the file. Another common mistake is opening the file and not closing it before exiting the code. Make sure you can run the program through multiple cycles without unloading the form or generating errors. You have been warned.

Below as some screen shots of what is expected.

The phone numbers generated must not violate the NANP rules. see image.

Verify a specific phone number manually entered against NANP rules see image.

Use a MakedTexbox for the phone number entry. Dont forget to strip the added characters ()- and space unless you have coded accordingly. see image.

Sample of text file see image.

If you are lost on where to start.

Use arrays of names and last names.

Use random VB.net built in function to pick first and last names from the array and concatenate the results. Same logic for phone number. Once phone number is created run it though a function that determines if the number follows the NANP rules. If it does not scrap the generated number and generate another number and check it of course. Add the test data name and phone number to the list box. When print is selected iterate through the listbox. For example parting from the premise the listbox is called PIIListBox.

For Each ListViewItem In PIIListBox.Items
' Place you code for printing here
Next

Feel free to innovate. Results is what counts.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.