cs作业代写_matlab代做_machine learning代写

代寫COP 1000程序、代做Python,Java,C++編程設計

- 首頁 >> C/C++編程
COP 1000 Course Project – 100 points
Due Date: Wednesday, July 29, 2020 at 11:59pm


Project Description and Requirements

For 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 enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
lp
Professor list is empty. Add a professor first.

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
ap
Please enter professor's name:
Joe
Please enter professor's id:
111
Please enter professor's salary:
1023.45
The professor you just added: name=Joe, id=111, and salary=1023.45

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
AP
Please enter professor's name:
Seth
Please enter professor's id:
222
Please enter professor's salary:
3435.64
The professor you just added: name=Seth, id=222, and salary=3435.64

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
LP
The professor list:
name=Joe, id=111, and salary=1023.45
name=Seth, id=222, and salary=3435.64

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
ag
The average salary is 2229.545

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
DP
Please enter the professor's id:
555
The prof with id=555 does not exist.

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
dp
Please enter the professor's id:
111
The prof with id=111 has been deleted.

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
lp
The professor list:
name=Seth, id=222, and salary=3435.64

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
A
Command not supported. Try again.

Please enter
LP to list all professors,
AP to add a professor,
DP to delete a professor,
AS to get average salary of professors,
Q to quit
q
Thanks for using Department Management System!

在線客服

售前咨詢
售后咨詢
微信號
Essay_Cheery
微信
马来西亚代写,essay代写,留学生网课代修代考,论文代写-小精灵代写 美国Assignment代写,Economic代写,留学作业代写-RMTNR北美代写 美国作业代写,网课代考,cs代写,论文代写-ESSAYSHIFU 墨尔本代写,博士论文代写,网课代修,exam代考-熊猫代写 悉尼essay代写,CS代码代写,CS编程代写-熊猫人代写 澳洲CS assignment代写,c++/c代写,python代做-SimpleTense 悉尼代写,商科assignment代写,网课代修,论文加急-OnlyEssay 澳洲作业代写,essay代写,网课代修,exam代考-ESSAYSHIFU 代写essay,代写assignment|DRS英国论文代写留学推荐网站 Assignment代写,【essay代写】美国作业代写-留学代写ESSAY网