Problem Statement: Develop an application for a university course offering. There are to be classes for textbook, instructor, and course. This application should also have a driver class to test the other classes constructed.
Classes:
1. Textbook: this class is to have variables (fields) for isbn, title, and author(s).
And, it should include a constructor, accessor and mutator methods for the fields,
as well as toString and equals methods.
2. Instructor: variables to include are firstName, lastName, department, and email.
Define a constructor and methods as done for Textbook.
3. Course: this class is an aggregation of data which includes a primitive variable
for courseTitle, and variables for textbook and instructor classes. The Course
constructor would initialize the primitive courseTitle and reference the textbook
and instructor constructors to initialize fields for those classes. Include
accessors and mutators and a toString method.
Driver or test program: The driver should offer the user choices to a) produce a course report or b) make comparisons of textbook title or instructor name between two courses. For the report choice, the program should be capable of retrieving values associated with course objects then printing those details. For comparisons, the program should allow the user to compare an instructor name or textbook title with those of another course. Data for several textbook, instructor and course objects are to be obtained from a file. For console input, include user prompts. Include descriptive headings or labels to identify output data.
Ads