Solved CS211 Homework 3 Write a class Roster that is identified by the course name, course code

$30.00

Original Work ?
Category: Tags: , , , , , You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (1 vote)

Write a class Roster that is identified by the course name, course code, number of credits, instructor name, and contains a list of students stored in an array. For now you can use stack allocated array of MAX_CAPACITY=10 (define MAX_CAPACITY as a macro in the .h file). Later we will make this array dynamic to allow it to grow.

Provide necessary constructors, accessor functions for each member, and mutator functions for each member. Provide a function to add a student to a Roster, delete student from a Roster, and search for a student. Provide a function to output all Students from a roster to console in a nice format.

For now you should not worry about the order of Students in your Roster. They do not need to be sorted.

Write a driver program to test your Roster class.

 

Use declare/define/use approach

 

Submit the assignment to your lab instructor.