Question: Design and implement a Class named Postal that represents information for a postal customer Voting a first name, last name and integer representing a zip
Design and implement a Class named Postal that represents information for a postal customer Voting a first name, last name and integer representing a zip code Provide a constructor that accepts the first name, last name, and zip code as parameters Provide getters and setters and a toString method representing a String description for a Prostal object. Develop a driver class named PostalList with a main. method that continually prompts a user (until instructed to stop) to enter postal information including the lust name, last name, and zip code Store the postal information for each entry in an array of up to 10 Poste: objects Note you must use an array (e g not an ArrayList) Alter the information has been input and stored. print the total number of Postal objects stored followed by the String representation of each object as sham, in the example session below Note that your zip code must be formatted to print as a 5 digit integer even if the user entered less Than 5 digits.
Enter firstname lastname zip-code: 'airy Seinfeid 23876
Continue) (y/n): y
Enter firstname lastname zip-code: George Costanza 87623
Continue) (y/n): y
Enter firstname lastname zip-code: Elaine genes 23
Continue? (yin): n
Total number of Postal objects: 3
Jerry Seinfeld 23876
George Costanza 87623
Elaine Banes 00021
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
The question contains some typographical errors and incomplete words such as Voting instead of having and Prostal instead of Postal and lust name instead of last name I will proceed to provide a solut... View full answer
Get step-by-step solutions from verified subject matter experts
