Question: C++ Help This program practices dynamic arrays to manage a set of students and their courses. Input: File courses.txt contains a list of student names,

C++ Help

This program practices dynamic arrays to manage a set of students and their courses.

Input:

File courses.txt contains a list of student names, the number of courses taken, and the names of the courses. The first line of the file contains the number of students. It looks as follows:

12

John Milligan

3 CIS100 CIS105 MAT113

Jill Kerning

5 CIS100 CIS105 MAT232 BIO100 ENG101

Aaron Spencer

4 CIS201 CIS225 MAT232 ENG101

Damon Hill

2 CIS334 CIS400

Kaitlyn Stamen

4 CIS100 CIS10 MAT113 BIO100

Debbie Martin

5 CIS100 CIS105 MAT232 CHY112 ENG101

Greg Nolan

2 CIS334 CIS450

Lynn Sanders

4 CIS334 CIS450 MAT250 BIO100

Alicia Thomas

4 CIS226 CIS450 MAT232 CHY112

Alan Turner

5 CIS100 CIS105 MAT232 BIO100 ENG101

Paul Henley

5 CIS100 CIS105 CIS334 ENG101 MAT232

Tim Copeland

1 CIS450

Create a dynamic array of structs of the size provided in the first line of the file. The struct definition should contain a C++ string name, an integer number of courses, and a C++ string pointer. Read the data into the dynamic array. Note that once the number of courses is read, the code can create the dynamic array of course names for the student.

Processing:

Allow the user the following options.

a. Display all students and courses

b. Enter a student name and report a list of courses taken by the student

c. Enter a course number and report a list of all students taking this course.

Should look something like this:

C++ Help This program practices dynamic arrays to manage a set of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!