Question
C++ Implement a main program that prompts the user and prints the classes you are taking this quarter. Use a dynamic array and functions with
C++
Implement a main program that prompts the user and prints the classes you are taking this quarter. Use a dynamic array and functions with arguments of class Course. b. Modify the Course, Instructor, and TextBook classes by adding attributes and member functions, discussed in class
#ifndef COURSE_H #define COURSE_H #include
Course(); Course(string aCourseName, string aCourseCode, , string aCourseTerm, string instrLastName, string instrFirstName, string instrOffice, string textTitle, string author, string publisher); Course(string aCourseName, string aCourseCode, , string aCourseTerm, Instructor anIstructor, TextBook aTextBook); Course(const Course &obj); void set(string aCourseName, string aCourseCode, string aCourseTerm ,string instrLastName, string instrFirstName, string instrOffice, string textTitle, string author, string publisher); void set(string aCourseName, string aCourseCode, string aCourseTerm, Instructor anIstructor, TextBook aTextBook); void setCourseName(string aCourseName); void setCourseCode(string aCourseCode); void setCourseTerm(string aCourseTerm); void setInstructor(Instructor anIstructor); void setInstructor(string instrLastName, string instrFirstName, string instrOffice); void setTextBook(TextBook aTextBook); void setTextBook(string textTitle, string author,string publisher); string getCourseName() const; string getCourseCode() const; string getCourseTerm() const; Instructor getInstructor() const; TextBook getTextBook() const; friend ostream &operator << (ostream &strm, const Course &obj); friend istream &operator >> (istream &trm, Course &obj); }; #endif +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifndef INSTRUCTOR_H #define INSTRUCTOR_H #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started