Requirements of Java Homework for Oversea Students

This artical is used to describe homework requirements for my oversea students.

General Requirments

Homeowrk Format for Submission

Your homework should be placed in a consistent directory as described below:
StudentID_Name/WWeekNumber/classname.java,
where StudentID is your student ID, Name is your name, WWeekNumber is the number of the week with a ‘W’ placed at the beginning and classname.java is the name of a sample java file. For example, if Daria submits her last week’s homework, the format should be as follows:
2019290026_Daria/W14/DecToHex.java,
where 2019290026_Daria/W14 is a folder path, i.e. DecToHex.java is in the folder 2019290026_Daria/W14.
Since it is a directory, you should compress it into a zip file.

Notes

  • Directory names for a single studuent should always be the same so that I can place all your homework in the same folder.
  • Any related materials, such as document, input and/or output data etc. are welcome (please place them in the same folder alongwith the homework).

Week 12 (Chapter 4)

HW1: Read through the whole slides.
HW2: Test methods in Math class introduced in the slides by writing Java code.
HW3: Finish at least one case study in the slides.

Week 13 (Chapter 5)

Not assigned.

Week 14(Chapter 6)

Write a method to convert a decimal number into a hexadecimal number.

Week 15 (Chapter 7)

Write a method that reverses an array of integers.
Example
int[] arr1 = {1, 3, 5, 2};
int[] arr2 = reverseArray(arr1);
for(int v: arr2)
System.out.print(v + “,”)
Output: 2, 5, 3, 1,
In the above example, the method “reverseArray” is the target method.

Week 16 (Chapter 7)

Write a program to implement binary search.

发布了326 篇原创文章 · 获赞 94 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/weixin_43145361/article/details/103468642