首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
CSIT213代做、代写Java程序设计
项目预算:
开发周期:
发布时间:
要求地区:
School of Computing and Information Technology
University of Wollongong
Session: Autumn 2024
CSIT213 Autumn Session 2024
Assignment 3
Published on 05 May 2024 Due: Saturday 01 June, 11:30 pm
Total Marks: 15 marks
Scope
This assignment is related to the UML classes diagrams, Java classes definitions and implementations,
polymorphism, collectors, file input/output, and JavaFX.
Please read very carefully the information listed below.
General Java coding requirements:
Create your programs with good programming style and form using proper blank spaces, indentation, and
braces to make your code easy to read and understand.
Create identifiers with sensible names.
Add proper comments to describe your code segments where they are necessary for readers to understand
what your code intends to achieve.
Logical structures and statements are properly used for specific purposes.
Read the assignment specification carefully, and make sure that you follow the direction in this
assignment. In every assignment source file that you will submit on this subject, you must put the
following information in the header of your program:
/*------------------------------------------------------
My name:
My student number:
My course code: CSIT213
My email address:
Assignment number: 3
-------------------------------------------------------*/
A submission procedure is explained at the end of the specification.
It is recommended to solve the problems before attending the laboratory classes in order to efficiently use
supervised laboratory time.
A submission marked by Moodle as Late is treated as a late submission no matter how many seconds it is
late.
A policy regarding late submissions is included in the subject outline.
A submission of compressed files (zipped, gzipped, rared, tared, 7-zipped, lhzed, … etc) is not allowed. The
compressed files will not be evaluated.
An implementation that does not compile due to one or more syntactical or processing errors scores no marks.
It is expected that all tasks included in Assignment 3 will be solved individually without any cooperation
from the other students. If you have any doubts, questions, etc. please consult your lecturer or tutor during
lab classes or office hours. Plagiarism will result in a FAIL grade being recorded for the assessment task.
Tasks
In this assignment, you are required to design and implement a Department Employee and Project (DEP)
System in Java. This system helps a company to manage employees and projects.
Implementation
The DEP system helps a company to manage departments, employees, projects and developers work on
projects. The system load data of departments, employees, projects, and works-on from the text files when
the program starts. Then the application shows a Graphic User Interface (GUI) so that a user can choose
what to do.
The UML class diagram of DEP is given below. You can add new classes, methods and attributes in the UML
class diagram but CANNOT modify or delete any existing classes, attributes, and methods. Your java
implementation must be consistent with the UML class diagram.
First, we define an interface class DataIO in a file DataIO.java that only consists of three abstract
methods: dataInput(Scanner), dataOutput(Formatter) and toString().
Define a superclass Employee and two sub-classes Admin and Developer in a file Employee.java. The
class Employee implements the interface DataIO. Two sub-classes override the methods defined in the
interface DataIO.
Define a class Department in a file Department.java that implements the methods of the interface
DataIO.
Define a class Project in a file Project.java that implements the method of the interface DataIO.
Define a class WorksOn in a file WorksOn.java that implements the methods of the interface DataIO.
The DEP class is defined in a file DEP.java that contains ArrayList containers containing objects of
Department, Employee, Project and WorksOn.
The DEP application initially loads data of departments, employees, projects, and works-on from the text
files departments.txt, employees.txt, projects.txt and workson.txt and stores them in
the containers by calling the methods loadDepartments(), loadEmployees(), loadProjects() and
loadWorksOn(), then the application shows the GUI, handles the events from the user.
The format of a file departments.txt contains data like
1, SALES, 110, 1234.00, 02/01/2012
2, ACCOUNTING, 120, 5566789.50, 30/10/2010
3, GAMES, 150, 100000.00, 01/03/2008
Each row is a record of a department. It contains a department number, name, manager number, budgets and
manager start date. Each field is separated by a comma (,) and a space ( ).
The format of a file employees.txt contains data like
A, 600, Willy, 01/01/1988, 41 Station Street Wollongong NSW 2500, M, 250.5, 0, 9, Cook Read
D, 700, Zhi, 12/09/1999, 112 Smith Street Windang NSW 2525, M, 80.2, 600, 9, C++ Java Python
D, 800, Mary, 03/10/2000, 26 Gibsons Road Figtree NSW 2525, F, 50.0, 700, 9, Java Python SQL
Each row is a record of an employee. The first character is the type of employee. The letter D means it is a
Developer record. The letter A means it is an Admin record. Each field is separated by a comma (,) and a
space ( ).
An admin record contains an employee number, name, date of birth, address, gender, salary, supervisor
number, department number, and skills.
A developer record contains an employee number, name, date of birth, address, gender, salary, supervisor
number, department number, and programming languages.
The format of a file projects.txt contains data like
1001, Computation, Microsoft, 8, 25000
1002, Study methods, Education committee, 3, 15000
Each row is a record of a project. A project record contains a project number, title, sponsor, department
number and budget. Each field is separated by a comma (,) and a space ( ).
The format of a file workson.txt contains data like
800, 1001, 10
510, 1001, 15
A works-on record consists of an employee (developer) number, a project number, and the hours.
Hint: You can open a text file, and then call the method
useDelimiter(", |\r\n|\n")
of a Scanner object before getting input data from a text file.
The detailed requests
You shall update the UML class diagram by adding new classes, methods, and attributes. Please make
sure your implementation is consistent with your UML class diagram.
The DEP class shall contain JavaFX components, such as Label, TextField, Button, ListView, etc.
With the GUI, a user can interact with the applications.
After initialization, the applicant shows lists of department numbers, employee numbers, project
numbers, works on information, and the pie chart of department budgets.
If a user clicks an item in a list, the details of the item are displayed in the text fields below that list.
If a user clicks a button Add, the application validates the developer and the project that selected
from the lists. If the developer hasn’t worked on the project, then pop up a dialog to get the hours,
and add the new works-on in the container workson and the list of workson in the GUI.
Display the validate messages in a text field of message.
If a user clicks a button Delete, the application pops up a confirmation dialog and deletes the
selected works-on record if it is confirmed. If a user clicks a button Save, the application saves the works-on information from the container
workson to a text file workson.txt and display a message about how many records have been
saved.
The system shall be able to handle the exceptions during the interaction between the user and the
system. The exceptions may include invalid information when loading departments, employees,
projects and workson.
See the Processing examples below for more details.
Testing files
Download files departments.txt, employees.txt, projects.txt and workson.txt
from the Moodle site.
Compilation and testing
Compile your program by using the javac command.
javac --module-path "the-path-of-javafx-lib" --add-modules
javafx.controls DEP.java
Process your program by using the java command.
java --module-path "the-path-of-javafx-lib" --add-modules
javafx.controls DEP
The path of JavaFX lib is the path where you have installed the JavaFX library (.jar files). For example,
If a JavaFX library path is C:\MyApps\javafx-sdk-20.0.1\lib, then replace "the-path-ofjavafx-lib"
with "C:\MyApps\javafx-sdk-20.0.1\lib".
Test your program for all the events. See the examples of the processing results below for more details.
Note: Some important data, such as selected items, messages are emphasized in red rectangles of the screen
shots.
Processing examples
When the application starts, it loads data and stores them into the containers, then shows lists of
departments, employees, projects, works-on and the pie chart of department budgets like the GUI below.
If a user clicks an item of a list, the application displays the details of the item below the list.
If a user clicks a button Add, the application validates the employee, project and works on information.
If a developer, project and works-on are valid, the application pops a dialog to get hours, and add the new
works-on to the list and the container workson.
If a user clicks a button Delete, the application pops a dialog to confirm the deletion, then delete the
selected works-on data from both container workson and the list of works-on.
If a user clicks a button Save, the application saves the works-on records into a file workson.txt and
display message such as 7 workson records are saved.
Deliverables
(1) UML class diagram (1 mark): Use the UMLet application tool to draw the class diagram. The class
diagram shall
contains at least the classes mentioned above.
contains the class name, fields, and methods definitions for each class.
use correct and sufficient UML notations.
specify the associations between classes.
specify the multiplicities for both sides of the associations.
Remember to use the CSIT213 palette!
Use the option File‐>Export as… to export a class diagram into a file in BMP format. Do not delete an
exported file. You will use it as one of the solutions for your task.
Insert the BMP files into a Word file assignment3Report.docx.
(2) Implementation (12 marks): Implement the application according to the UML class diagrams and the
processing examples described above. The program shall
be consistent with the UML class diagrams.
follow the conventions for naming all classes, variables, and methods.
provide sufficient comments.
use proper blank spaces, indentation, and braces to make your code easy to read and understand.
follow the specified implementation requests.
be able to show the GUI and handle all events that required.
(3) Compilation and test (2 marks): Compilation and test your Java program by using the command line
interface.
Please carefully compile your program. Make sure your program can pass the compilation by using
the javac command.
Test your program by using the java command.
Test your program for all the activities. See the examples of the processing results above for more
details.
Please do not define the package in your program (a special alert for students who use IDE to
complete the assignment).
Copy and paste the compilation and testing results into the Word file assignment3Report.docx.
When ready convert the Word file assignment3Report.docx into a pdf file
assignment3Report.pdf.
Submission
Note that you have only one submission. So, make absolutely sure that you submit the correct files with the
correct contents and correct types. No other submission is possible!
Submit the files DEP.java, DataIO.java, Department.java, Employee.java,
Project.java, WorksOn.java, and assignment3Report.pdf through Moodle in the
following way:
(1) Access Moodle at http://moodle.uowplatform.edu.au/
(2) To login use a Login link located in the right upper corner of the Web page or in the middle of the
bottom of the Web page
(3) When logged select a site CSIT213 (S223) Java Programming
(4) Scroll down to a section Assignments and submission
(5) Click on a link Assignment 3 submission
(6) Click on the button Add Submission
(7) Upload a file DEP.java into an area You can drag and drop files here to add
them. You can also use a link Add…
(8) Repeat step (7) for the files DataIO.java, Department.java, Employee.java,
Project.java, WorksOn.java and assignment3Report.pdf.
(9) Click on the checkbox with a text attached: By checking this box, I confirm that
this submission is my own work, … in order to confirm the authorship of your submission
(10) Click on a button Save changes
End of specification
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写dts207tc、sql编程语言代做
2024-12-25
cs209a代做、java程序设计代写
2024-12-25
cs305程序代做、代写python程序...
2024-12-25
代写csc1001、代做python设计程...
2024-12-24
代写practice test preparatio...
2024-12-24
代写bre2031 – environmental...
2024-12-24
代写ece5550: applied kalman ...
2024-12-24
代做conmgnt 7049 – measurem...
2024-12-24
代写ece3700j introduction to...
2024-12-24
代做adad9311 designing the e...
2024-12-24
代做comp5618 - applied cyber...
2024-12-24
代做ece5550: applied kalman ...
2024-12-24
代做cp1402 assignment - netw...
2024-12-24
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!