Question: C++ Homework: Create a program that uses 3 parallel arrays (this is required ). The 3 arrays are to contain the first names, last names,
C++ Homework:
Create a program that uses 3 parallel arrays (this is required). The 3 arrays are to contain the first names, last names, and ages read from NamesAndAges.txt
.
Read the file into the 3 arrays and print them in the forward direction (in the order the data was read from the file) and then in the reverse direction.
Create a function called "PrettyPrintName" to print one row of name information (e.g. first name, last name, age). This function must be used inside a loop to print the data in the forward and reverse directions.
Here is a pic of an example executable:

Contents of NamesAndAges.txt
James Smith: 38 Michael Smith: 46 Robert Smith: 19 Maria Garcia: 32 David Smith: 21 Maria Rodriguez: 30 Mary Smith: 92 Maria Hernandez: 83 Maria Martinez: 56 James Johnson: 26?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
