Question: lab2.2zipcode.txt 2.2 Validate Zip Code_version-2 [50pts]: Write a Java program to read in zip code from a text file I file) named lab2.2zipcode (download this

 lab2.2zipcode.txt 2.2 Validate Zip Code_version-2 [50pts]: Write a Java program to

read in zip code from a text file I file) named "lab2.2zipcode"

lab2.2zipcode.txt

2.2 Validate Zip Code_version-2 [50pts]: Write a Java program to read in zip code from a text file I file) named "lab2.2zipcode" (download this text file from assignment dropbox). The program will validate each zip code read in from the text file lab2.2zipcode". to check if each of those zip codes is a valid zip code or not. A valid zip code should contain 5 digits (eg., 53190), and each digit should within the range 0-9. (Hint: you may use the same validation process implemented in the in-class practice 3.1] At the end, the program will display which zip codes are invalid zip codes, which are valid zip codes in console, and how many of them. The output should look like as follows (Note: the following is just an example showing the format of outputs, not the actual outputs from the program): The zip codes read in from the file are: 53190 44091.00541. ... There are 3 invalid zip codes, and 7 valid zip codes. S80 061&s 15002 07024

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!