Question
C# Create a program with the following OO structure. You do not have to implement any of the methods other than constructors to fill in
C#
Create a program with the following OO structure. You do not have to implement any of the methods other than constructors to fill in some default data. You should implement the rest of the methods with a Console.WriteLine to indicate that it has been called.
Within a UNIVERSITY there are 4 DEPARTMENTS:
MATH, ENGLISH, GEOGRAPHY, COMPUTERSCIENCE
Each DEPARTMENT has up to 10 STAFF
There is/are a DEAN, PROFESSORs, ADMINISTRATORs and RESEARCHERs
All Staff should have a name and salary
Professors should have a Class
Researchers should have a ResearchSpeciality which is a fixed set of research areas represented by an enumeration Deans, Professors and Researchers should implement an ITeachable interface which contains the Teach() method Deans and Administrators should implement an IAdmin interface which contains the Administrate() method
Pay special attention to the ISA relationships and the HASA relationships and implement things correctly.
You should determine reasonable types for all properties not otherwise specified and initialize things with sensible defaults. Your constructors should have reasonable parameters to set up the type where you cannot simply use constants.
var u = new University()
Console.WriteLine(u.Department[2].Staff[3].Name)
u.Department[1].Staff[0] = new Researcher("Jacob")
You should create additional test code to make sure that all of the properties and methods are available.
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