The document describes a C++ program that keeps track of student information by storing first name, last name, ID number, and major in separate parallel arrays. The program takes user input for the number of students, populates the arrays in a loop, prints the student data formatted nicely, and lets the user search for students of a particular major to output their names.
C++ Write a program that will keep track of information ab.pdf
1. C++
Write a program that will keep track of information about a number of students. The information to
be kept includes each student's first name, the student's last name, the student's ID number, and
the student's major. Each of the separate data items should be stored in a separate array. For
example, there will be one array for the first name and a parallel array for the last name, etc. The
user will input the number of students to be processed. Therefore, you'll be creating partially-filled
arrays. Assumee the maximum number of students is 100. The program should have separate
functions to accomplish these task: > input the values into all arrays, using a single loop > print out
the values in all arrays, formatted nicely, with all information about one student being printed
before going on to the next student > let the user enter a major and the output will show the first
and last names of students with that major. See the sample program run in the files area (below).
SAMPLE RUN: