Question
C++ Programming: Create a program that uses 3 parallel arrays (this is required ). The 3 arrays are to contain the first names, last names,
C++ Programming:
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:
Your output needs to look identical to the above image to receive full credit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started