首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写EECS2101、代做Java编程设计
项目预算:
开发周期:
发布时间:
要求地区:
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 1 of 9
Contents
Instructions: .................................................................................................................................... 2
Important Reminders.................................................................................................................. 2
Academic Honesty ...................................................................................................................... 2
Learning Outcomes and Objectives................................................................................................ 3
Lab Learning Objective................................................................................................................ 3
Important pre-lab work you need to do before going to the lab................................................... 4
Getting Started................................................................................................................................ 4
Lab Structure................................................................................................................................... 5
Lab Restrictions:.............................................................................................................................. 6
Lab Exercise..................................................................................................................................... 7
A recursive helper method ......................................................................................................... 7
Infer Class and Method Specifications from JUnit Tests ............................................................ 8
Submit your work by using the course eClass................................................................................ 9
Submission Requirements: Header Comments.......................................................................... 9
Check List: ................................................................................................................................... 9
Submit The Following File:.......................................................................................................... 9
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 2 of 9
Instructions:
Important Reminders • You can submit your lab work in eClass any time before 23:59 on Sunday (January 28,
2024) of the week the lab is due. Your last submission will overwrite the previous ones,
and only the last submission will be graded.
• The deadline is strict, with no excuses: you receive 0 for not making your electronic
submission in time. Emailing your solutions to the instructors or TAs will not be
acceptable.
• To submit your work, you need to use the York eClass.
• Your submission will be graded by JUnit tests given to you (if any) and additional JUnit
tests covering some other input values. This is to encourage you to take more
responsibility for the correctness of your code by writing more JUnit tests.
• Developing and submitting a correct solution for this lab without compilation errors is
essential. Hence, you must take a reasonable amount of time to test your code in
different ways. If you submitted a solution with a small mistake in terms of syntax or do
not comply with lab instructions, then you may receive a 0 as a grade for the
implementation of this lab.
• There will be a 40% penalty on your lab final grade if your submitted code does not
compile due to minor compilation errors, given that TAs can fix these minor
compilation errors. You will receive a zero if your code contains major compilation
errors that TAs cannot fix.
Academic Honesty • Students are expected to read the Senate Policy on Academic Honesty. See also the
EECS Department Academic Honesty Guidelines.
• All labs are to be completed individually; no group work is allowed. Do not discuss
solutions with anyone other than the instructor. Do not copy or look at specific
solutions from the net. If you are repeating the course, you cannot submit the solution
you developed in previous terms or for other purposes. You should start from scratch
and follow the instructions.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 3 of 9
Learning Outcomes and Objectives This lab's purpose is to implement various recursive methods without using any loop statements.
This programming lab aims to provide students with a comprehensive understanding of recursion
and problem-solving techniques. Throughout the lab, you will grasp the fundamental concepts
of recursion, including its definition, base cases, and termination conditions.
You will learn to design and implement recursive solutions by breaking down intricate problems
into smaller manageable subproblems and then combining their solutions to solve the larger
challenge. This lab will enable you to cultivate a recursive mindset and recognize recurring
patterns in various problems. Through practical exercises, you will gain proficiency in designing
and debugging recursive functions, working with strings and numbers, and applying recursive
thinking to real-world scenarios. Additionally, you will enhance your critical thinking abilities by
analyzing problem requirements and evaluating solution efficiency.
Lab Learning Objective
• Designing recursive algorithms.
• Construct recursive solutions to given problems.
• Correctly implement base cases and recursive cases.
• Debugging recursive programs.
• Testing your code thoroughly using JUnit test cases.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 4 of 9
Important pre-lab work you need to do before
going to the lab a. http://wiki.eclipse.org/The_Official_Eclipse_FAQs
b. Testing using Eclipse IDE
a. Video: Java Unit Testing with JUnit - Tutorial - How to Create And Use
Unit Tests
c. Read about debugging using Eclipse IDE
a. https://www.eclipse.org/community/eclipse_newsletter/2017/june/artic
le1.php
b. Video: How to set breakpoints to debug code in Java using Eclipse Debug
mode
c. Video: How To Debug Java Code The Right Way - Eclipse Debugger Full
Tutorial
Feel free to find online resources on these and share them with your classmate on the discussion
forum
Getting Started
1. Start Eclipse.
2. Download the starter code "Lab1.zip" from the eClass course site
3. Import the test project by doing the following:
1. Under the File menu, choose Import...
2. Under General, choose Existing Projects into Workspace and press Next
3. Click the Select archive file radio button, and click the Browse... button. You may
have to wait about 10 seconds before the file browser appears.
4. In the file browser that appears, navigate to your home directory.
5. Select the file Lab1.zip and click OK
6. Click Finish.
4. All files you need for this lab should now appear in Eclipse.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 5 of 9
Lab Structure
After successfully importing the starter code/project "Lab1.zip"
The lab folder/directory structure is as follows:
• src/lab1/: directory contains Java files: RecursiveMethods.java.
• src/lab1/: directory contains Java files (JUnit test cases):
JunitTest_RecursiveMethods.java. These files contain several JUnit test cases that can
help to test your code.
It should be noted that you need to run the JUnit tester
JunitTest_RecursiveMethods.java after you complete the RecursiveMethods.java class
to check your work. Nonetheless, passing all given tests does not guarantee full marks
for this lab. Therefore, you are required to write additional tests to ensure the
correctness of your implementations.
• doc/: directory contains Java documentation for the lab in HTML format. You'll see there
is a file called index.html. Clicking on this file shows the lab/project documentation in your
browser.
You do not have to include JavaDoc comments.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 6 of 9
Lab Restrictions:
• IMPORTANT: In this lab, you are NOT allowed to use any
kind of loop statement (such as for-loop or white-loop).
Violating this requirement will result in a mark of zero.
• For the JUnit test cases, the class JunitTest_RecursiveMethods.java given to you.
o Do not modify the test methods given to you.
o You are allowed to add new test cases by creating new test methods.
• For each method which you are required to implement, derived from the JUnit test
methods:
o No System.out.println statements should appear in it.
o No Scanner operations (e.g., input.nextInt()) should appear in it.
Instead, declare the method's input parameters as indicated by the JUnit tests.
• You are NOT allowed to add any "import" statement other than those already given in
the starter files.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 7 of 9
Lab Exercise
A recursive helper method
You may consider adding private recursive helper methods for some of the public recursive
methods in the RecursiveMethods class.
For example, the method fibArray can be implemented using a private recursive method like
so:
public int[] fibArray(int n) {
if(n == 2) {
int[] seq = {1, 1};
return seq;
}
else {
int[] seq = new int[n];
seq[0] = 1;
seq[1] = 1;
fibArrayHelper(2, seq); // fibArrayHelper recursively fills in the rest of seq
return seq;
}
}
private void fibArrayHelper(int i, int[] seq) {
//recursively fills in seq starting at index i
}
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 8 of 9
Infer Class and Method Specifications from JUnit Tests
You may have noticed that the above "overview" descriptions are not as precise as the class
specifications and method implementations. In fact, unlike the previous labs, we will not provide
detailed specifications in this handout. To obtain the precise specification, you need to carefully
analyze the test cases in the provided JUnit tests to understand the expected behaviors of each
method.
In professional software development, test cases often play a vital role in specifying software
requirements. This is called Test-Driven Development (TDD). Read more about it here:
https://en.wikipedia.org/wiki/Test-driven_development.
EECS2101 -Winter 2024- Lab01
Due Date: Sunday, January 28, 2024, before 11:59 PM.
Page 9 of 9
Submit your work by using the course eClass
Submission Requirements: Header Comments
To ensure proper identification and authenticity of your work, every file you submit for this lab
assignment must include specific information in the form of comments at the top of the file. This
information is crucial for assessing your work and must be included in every file you submit.
Each file must start with a comment section containing the following details:
• Full Name: Your complete name as registered in the course.
• Yorku Email: Your official York University email address.
• Date: The date when you completed the work on the file.
• Authenticity Declaration: A statement declaring the authenticity of your submission.
Here is the format you should use:
//Full Name : [Your Full Name]
//Yorku Email : [Your Yorku Email]
//Date : [Date of Completion]
//Authenticity Declaration:
//I declare this submission is the result of my own work and has not been
//shared with any other student or 3rd party content provider. This submitted
//piece of work is entirely of my own creation.
Check List: Before submitting your files for this lab, you must ensure you completed the following.
There is No compilation error generated from your implementation for this lab.
The RecursiveMethods.java file contains the implementation for this lab.
Submit The Following File:
1) You need to submit one file, RecursiveMethods.java.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
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
软件定制开发网!