Answer to Question #29147 in C++ for haroon mehmood

Question #29147
Develop a class university which contains two departments CS and Arts. Each department has some faculty members. A user should be able to add and remove teacher. User Only calls add and remove function to add and remove teacher. User should also be able to see teachers currently in CS department and also in Arts department. Initially there is no teacher in both departments. Hint: There would be three classes University, CsDepartment, ArtsDepartment. Both departments will hold record of teachers. Teacher names should be stored in an array. Use following functions. bool add(char * tName , char* dName); bool remove (char * tName, char * dName); void print( char * department); //sample client program void main( ){ clrscr(); University u; if(!u.addTeacher ( “CS” , “Pro. Nabeel Sabir” )) cout<<”Can not Add”<<endl; if(!u.addTeacher( “CS” , “Pro. Yasir Daniyal “ )) cout<<”Can not Add”<<endl; u.print(“CS”); // Pro. Nabeel Sabir // Pro. Yasir Daniyal getch(); }
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog