7.9 - Modify the programyou created in -- 7.8 to accomplish the following: -supp
ID: 3615256 • Letter: 7
Question
7.9 - Modify the programyou created in -- 7.8 to accomplish the following:
-support the storing of additional user information: street address(string), city (string), state (string), and 10 digit phone number(long integer, contains area code and does not include specialcharacters such as (,), or -)
-Store the data in an ArrayList object.
HERE IS WHAT 7.8 IS THATIS TO BE MODIFIED WITH THE ABOVE!
7.8- Design and implementan application that reads a sequence of up to 25 pairs of names andpostal (ZIP) codes for individuals. Store the data in an objectdesigned to store a first name (string) last name (string), andpostal code (integer). Assume each lineof input will contain twostrings followed by an integer value, each separated by a abcharacter. Then, after the input has been read in, print the listin an appropriate format to the screen.
Explanation / Answer
I assume you've done 7.8? Then you just need to add datafields for your data member class to store the additional items ofstreet address (string), city(string), state (string), and 10 digit phone number (long integer,contains area code and does not include special characters such as(,), or -). You could make an extension of your data member class, rather thandirectly modify it, to support the new operations.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.