” 辅导COP 1000程序、 写作PythonCOP 1000 Course Project 100 pointsDue Date: Wednesday, July 29, 2020 at 11:59pmProject Description and RequirementsFor this project, you will be implementing a simple Department Management System.1.You need two classes: DepartmentManagement.java, and Professor.java.2.In class DepartmentManagement, you have the main method where you maintain a list of professors in the department. The maximum number of professors in a department is 50.3.For each professor, you only Care about his or her id, name, and salary, among which id can uniquely identify a professor. It is not allowed to have two professors in the same department with the same id.4.Make sure you follow the principle of information hiding when designing class Professor.5.Refer to the following given Sample Input and Output. The main menu contains a list of possible operations: 1) list all professors (show a list of all professors), 2) add a new professor (ask the user to provide name, id, and salary for a professor), 3) delete a professor (ask the user to enter the id of the professor to delete), 4) get the average salary of all professors, and 5) enter Q to quit.6.In class DepartmentManagement, for each primary operation in the main menu, create a separate method to handle the operation. For example, you should have a method like addProfessor that will be called to add a new professor to the list when the user enters AP or ap.7.You MUST follow the ground rules when writing code. Points off if not.8.Fully test your program before submission to make sure you output strictly matches the following sample output given the same input.Sample Input and Output: (input is highlighted in red)Department Management System is running….Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitlpProfessor list is empty. Add a professor first.Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of Professors,Q to quitapPlease enter professors name:JoePlease enter professors id:111Please enter professors salary:1023.45The professor you just added: name=Joe, id=111, and salary=1023.45Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitAPPlease enter professors name:SethPlease enter professors id:222Please enter professors salary:3435.64The professor you just added: name=Seth, id=222, and salary=3435.64Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average Salary of professors,Q to quitLPThe professor list:name=Joe, id=111, and salary=1023.45name=Seth, id=222, and salary=3435.64Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitagThe average salary is 2229.545Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitDPPlease enter the professors id:555The prof with id=555 does not exist.Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitdpPlease enter the professors id:111The prof with id=111 has been deleted.Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get Average salary of professors,Q to quitlpThe professor list:name=Seth, id=222, and salary=3435.64Please enterLP to list all professors,AP to add a professor,DP to delete a professor,AS to get average salary of professors,Q to quitACommand not supported. Try again.Please enterLP to list all professors,AP to add a professor,DP to delete a Professor,AS to get average salary of professors,Q to quitqThanks for using Department Management System!请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。