Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.txtimage text in transcribed.

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:

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions