首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写 program、代做 Java 设计程序
项目预算:
开发周期:
发布时间:
要求地区:
Task 1:
In this assignment, you will write the code that manages the product categories on any website, such as Alibaba (Use another website). To get started:
• Create a new Java project called Project1 in IntelliJ.
• In the src directory, create a new class called AssignmentOne.
• In the AssignmentOne class, create the main method.
Assessment Brief
2
Module 1 - Advanced class design
The following part of the assessment covers the content in Module 1.
Part 1 – Creating abstract classes and interfaces
Go to the website you choose and explore all the different categories of products that they sell. While you are doing this, have a look at the different product categories as they go from more general to more specific. At the top level of the Inheritance hierarchy, you need a generic product. In your Java project:
• Create a new interface called Product with at least two generic methods that are suitable for ALL product categories on the the website you choose.
Alibaba sells physical and digital products. Therefore, in the inheritance hierarchy, under products, you would need to handle physical products and digital products. In your Java project:
• Create an abstract class called PhysicalProduct that implements the interface called Product.
• Create an abstract class called DigitalProduct that implements the interface called Product.
The PhysicalProduct and DigitalProduct abstract classes must have the following at a minimum that are suitable for ALL physical OR digital product categories on the Alibaba website:
• At least two instance variables
• A default constructor
• A second constructor that sets all the instance variables
• At least one abstract method
• At least one non-abstract method
• Any other methods or variables that you feel are necessary for the class to be usable in the program
Part 2 – Using abstract classes and interfaces
On the Alibaba website, choose one physical product category and one digital product category. In your project:
• Create one concrete class that extends the PhysicalProduct abstract class.
• Create one concrete class that extends the DigitalProduct abstract class.
The classes should match the physical product category and digital product category you chose on the Alibaba site and have the following at a minimum:
Assessment Brief
3
• At least two instance variables (one of these variables must be a boolean as a boolean instance variable is required in a later section of the assignment)
• A default constructor
• A second constructor that initialises all the instance variables (including the instance variables in the abstract superclass)
• A method that prints the Product details, e.g. "The product details are:" followed by all instance variables formatted for readability
(including the instance variables in the abstract superclass)
• Any other methods or variables needed so that your products match the physical product category and digital product category you
chose on the Alibaba site.
For each class, in the class comments, you MUST provide a link to the product category on Alibaba that you based
your class on. In the main method:
• Add the following comment - // Part 2 – Using abstract classes and interfaces
• Create an object for the concrete class that extends the PhysicalProduct abstract class using the constructor that sets all instance
variables.
• Create an object for the concrete class that extends the DigitalProduct abstract class using the constructor that sets all instance
variables.
• Add the following code - System.out.println(" -------------------- ");
Part 3 – Polymorphism
In the AssignmentOne class, write a method called demonstratePolymorphism that takes one parameter. The parameter type can be either a: • Product
• PhysicalProduct • DigitalProduct
In the main method:
• Add the following comment - // Part 3 – Polymorphism
• Add a second comment that explains how you are going to use the method you just created to demonstrate your understanding of
polymorphism
• Write the code to create an object and use the method you just created to demonstrate your understanding of polymorphism
• Add the following code - System.out.println(" -------------------- ");
Assessment Brief
4
NOTE: Do not remove the code in the main method for Part 2 (or any other part of the assignment). You can comment it out when you are developing; however, when you submit your assignment, the main method must contain all the code required for all parts of the assignment, i.e., your marker should be able to run your main method, and all parts of your assignment should run in one go.
Module 2 – Generics and lambdas
The following part of the assessment covers the content in Module 2.
In Part 2 of this assessment, you created a concrete class that extends the PhysicalProduct abstract class. For the remainder of this
assessment, this class will be referred to as yourClass as, in theory, all students should have a different name for this class.
Part 4 – Generic classes
In this part of the assignment, you are going to write the code for an ArrayList that can store instances (objects) of yourClass. In the main method, write the code to:
• Add the following comment - // Part 4 – Generic classes
• Declare an ArrayList
• Add at least 5 instances of yourClass to the ArrayList
• Add the following code - System.out.println(" -------------------- ");
Part 5 – Generic methods
In this part of the assignment, you are going to sort the ArrayList that we created in part 4.
In yourClass, implement the Comparable interface. When you implement the compareTo() method from the Comparable interface, you must use at least two instance variables in the comparison.
Once you have implemented the Comparable interface in the main method:
• Add the following comment - // Part 5 - Generic methods
• Write the code to sort the ArrayList that you created in Part 4.
• Add the following code - System.out.println(" -------------------- ");
Assessment Brief
5
Part 6 – Wildcards
In the AssignmentOne class, create a method called DemonstrateWildcards that takes an ArrayList generic parameter extends T>. In the method, call one of the methods from PhysicalProduct abstract class.
In the main method:
• Add the following comment - // Part 6 - Wildcards
• Add a second comment that explains how you are going to use the method you just created to demonstrate your understanding of wildcards
• Write the code to create an object and use the method you just created to demonstrate your understanding of wildcards
• Add the following code - System.out.println(" -------------------- ");
Part 7 – Simple lambda expressions
In the AssignmentOne class, create a method called DemonstrateLambdas that takes an ArrayList of yourClass and a Predicate as a parameter. In the method, test the Boolean instance variable from yourClass and print a suitable message based on whether it is true or false. In the main method:
• Add the following comment - // Part 7 - Simple lambda expressions
• Write the code to pass the Arraylist that you created in Part 4 to the DemonstrateLambdas method
• Add the following code - System.out.println(" -------------------- ");
Assessment Brief
6
Task 2
In this assignment, you will write the code that could form part of a management system for a school.
To get started:
• Create a new Java project called Project2 in IntelliJ.
• In the src directory, create five classes called:
o Person
o Staff
o Member
o Classroom
o AssessmentTwo
In the system you are creating:
• The Staff class is used to track the School staff, e.g., trainers, reception, etc.
• The Member class is used to track the School members.
• The Classroom class is used to track the classes offered at the School, e.g., Math, English, OOP, etc.
In the Person class:
• Add at least 3 instance variables suitable for a person
• Add a default constructor and a second constructor that sets the instance variables using parameters
• Add getters and setters for all Person instance variables
In the Staff class:
• Extend the Person class
• Add at least 2 instance variables suitable for School staff
Assessment Brief
7
• Add a default constructor and a second constructor that sets the instance variables (Staff and Person) using parameters
• Add getters and setters for all Staff instance variables •
In the Member class:
• Extend the Person class
• Add at least 2 instance variables suitable for a School member
• Add a default constructor and a second constructor that sets the instance variables (Member and Person) using parameters
• Add getters and setters for all Member instance variables
In the Classroom class:
• Add at least 3 instance variables suitable for a Clasrooms. One of these instance variables must be of type Staff, i.e. used to track the trainer running the Classroom.
• Add a default constructor and a second constructor that sets the instance variables using parameters.
• Add getters and setters for all Classroom instance variables.
In the AssessmentTwo class add the following code:
public class AssessmentTwo {
public static void main(String[] args) { }
public void partOne(){
}
public void partTwo(){
}
public void partThree(){
}
public void partFour(){
}
public void partFive(){
}
public void partSix(){
}}
Assessment Brief
8
Module 3 - Advanced Collections
The following part of the assessment covers the content in Module 3.
Part 1 – Lists
The Classroom class is missing the ability to store a collection of Members who have signed up for the Classroom. For this part of the assignment:
• Using a LinkedList, update Classroom so that a Classroom object can store a collection of Members (i.e. datatype Member) who have signed up for the
Classroom.
In addition to adding a LinkedList, you need to add the following methods to Classroom that work with the LinkedList:
• A method to add a Member to the Classroom.
• A method to check if a Member is in the Classroom.
• A method to remove a Member from the Classroom.
• A method that returns the number of Members in the Classroom.
• A method that prints the details of all Members signed up for the Classroom (you must use an Iterator or you will get no marks).
Note: Make sure all the above methods print suitable success/failure messages. Demonstration
In the partOne method in the AssessmentTwo class:
• Create a new Classroom object.
• Using the methods you created:
o Addaminimumof5MemberstotheLinkedList. o CheckifaMemberisintheLinkedList.
o RemoveaMemberfromtheLinkedList.
o PrintthenumberofMembersintheLinkedList. o PrintallMembersintheLinkedList.
Assessment Brief
9
Part 2 – Collection Class
There is no way to sort the Members who have signed up for a Classroom. For this part of the assignment:
• Create a class (you can choose the name) that implements the Comparator interface. When you implement the compare method from the Comparator interface, you must use a minimum of two of the instance variables in your comparison.
• Create a method in the Classroom class that sorts the LinkedList using the sort(List list, Comparator c) method in the Collections class. Note: You MUST use the Comparator interface. You CAN NOT use the Comparable interface.
Demonstration
In the partTwo method in the AssessmentTwo class:
• Create a new Classroom object.
• Using the methods you created:
o Addaminimumof5MemberstotheLinkedList.
o PrintallMembersintheLinkedList.
o SorttheLinkedList
o PrintallMembersintheLinkedListagaintoshowthattheLinkedListhasbeensorted.
Part 3 – Queue Interface
As most School classes would have a maximum number of members that can sign up, the program needs the ability to keep track of Members who are waiting to join the School class and the order in which they joined the waiting list, i.e., first in first out.
For this part of the assignment:
• Using a Queue, update the Classroom class so that a Classroom can store Members (i.e., Member objects) who are waiting to join the Classroom.
In addition to adding a Queue, you need to add the following methods to the Classroom class that work with the Queue:
• A method to add a Member to the Queue.
• A method to remove a Member from the Queue.
• A method that prints all the details for all Members in the Queue in the order they were added.
Note: Make sure all the above methods print suitable success/failure messages. Assessment Brief
10
• •
Demonstration
In the partThree method in the AssessmentTwo class:
Create a new Classroom object. Using the methods you created:
o Addaminimumof5MemberstotheQueue.
o Remove a Member from the Queue. Print all Members in the Queue.
Assessment Brief
11
Submission
Submission ZIP file via USB drive (U盘) (Name+ Complete student number + Assignment 1) You are required to submit Three items for this assessment, including:
• Project 1
• Project 2
• A 10 minutes video explain Project 1 and Project 2
Assessment Criteria
• Java code compiles with Java 17 LTS.
• Use of correct coding style, including the use of comments.
• Accuracy of coding.
• Use of suitable coding structures.
• Correct submission and naming conventions of assessment items as required.
Assessment Brief
12
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做 program、代写 c++设计程...
2024-12-23
comp2012j 代写、代做 java 设...
2024-12-23
代做 data 编程、代写 python/...
2024-12-23
代做en.553.413-613 applied s...
2024-12-23
代做steady-state analvsis代做...
2024-12-23
代写photo essay of a deciduo...
2024-12-23
代写gpa analyzer调试c/c++语言
2024-12-23
代做comp 330 (fall 2024): as...
2024-12-23
代写pstat 160a fall 2024 - a...
2024-12-23
代做pstat 160a: stochastic p...
2024-12-23
代做7ssgn110 environmental d...
2024-12-23
代做compsci 4039 programming...
2024-12-23
代做lab exercise 8: dictiona...
2024-12-23
热点标签
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
软件定制开发网!