For this assignment, you need to build a class that contains basic information about students and courses that have those students on the roster. You also need to build a menu that supports basic CRUD functionality for those courses. The requirements are as follows: The student class should contain the following data about a student: Name (dynamic char array) Classification (char) Major (dynamic char array) StudentId (can be an int or a dynamic char array)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

For this assignment, you need to build a class that contains basic information about students and courses that have those students on the roster. You also need to build a menu that supports basic CRUD functionality for those courses. The requirements are as follows:

The student class should contain the following data about a student:

  • Name (dynamic char array)
  • Classification (char)
  • Major (dynamic char array)
  • StudentId (can be an int or a dynamic char array)

The course class should contain the following data about a course:

  • Course Name (dynamic char array)
  • Course Code (char array of size 7)
  • Location (char array of size 10)
  • Roster (dynamic student array)

The menu program should act as a driver program that manages a dynamically allocated array of courses and allows the user to:

  • Add a course to the list
  • Add students to a course
  • Update a course to change any of the data above including edits to students or adding/removing students from the roster
  • List courses including students in the course using a << overload to format the data in both the course and the students in the roster
  • Find a student by name or studentid
  • Find a course by name, course code, or location
  • Remove a course from the list by course code

The original list of courses should be of size 2 and increase in size by 1 during each add operation. The list of students in a course should initially be of size 2 and should grow by 10 during each add operation. Remove operations do not have to resize the array.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY