Question: Use C++ language to solve this assignment. Assignment You will be developing a program that queries the user for a series of addresses and number
Use C++ language to solve this assignment.


Assignment You will be developing a program that queries the user for a series of addresses and number of occupants. Create a vector to store all addresses and another to store the corresponding number of occupants. Continue reading and storing user input until the user sends the EOF (end of file) signal by pressing Ctrl-D. Then, iterate through your vectors and output each address and its corresponding number of occupants. Each address should be right-aligned in a field 30 characters wide. Occupant count should be left-aligned in a field 3 characters wide. Separate the two columns with the string":" (space colon space). Addresses may contain spaces and the entire input line should be stored as a single address. Example Enter addresses and occupant counts on separate lines (Ctrl-D to quit): 123 Here St 10 456 There Blvd Behind You
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
