CS计算机代考程序代写 Java Exercise 1

Exercise 1
Exercise 1
Points 1
Before you start to do your weekly exercise, please make sure that you already go through this week’s lecture slides and tutorial document (can be found in Modules).
What are the exercises?
Please go to Module 1 on canvas and open tutorial 1. In this weekly exercise, you are going to finish Question 7 of tutorial 1. Assume you get the following requirement from your client TrainLink:
TrainLink has decided to develop a cargo freighting service between regional centres of Australia. A cargo train will deliver cargo from each station on its itinerary. An itinerary contains a list of stations to visit, with the train starting at the first station and ending at the last.
They also provide you the basic test cases as listed in the tutorial.
What are you expected to do?
1. Please write Java code to implement your client’s requirement. Note that, in order to do so, you need to first read through the given test code from your client to find out all classes you need to define and implement in your code. If you are not familiar with the given Java code, you need to learn it by yourself before you continue this exercise.
2. Please use the test code to check your solution and answer the following questions in your report: What functionalities are/aren’t currently being tested?
Have all code paths been executed? Suggest what components have not been tested and what branches have been executed.
What kind of cases are the current batch of test cases not considering?
Implement a few more test cases to increase your code coverage and to ensure as much functionality is tested
What are you expected to submit?
You need to submit two files, including a zip file with all source code and build.gradle, and a pdf file with screenshot of program results (after you run gradle test) and your answers to the above 4 questions.
You can submit your solution any time before the due. Please note that, late submission will not be acceptable. 1 mark is awarded to you only if
You make a decent effort at the exercises AND You complete ALL questions.
1/3

Exercise
11/16/2020 Exercise 1
Criteria
Ratings
Pts
Description of criterion
1.0 pts Full Marks
a solid attempt at all required questions has been made
0.5 pts Half Marks
an attempt at some required questions has been made, or there are major flaws in the answer
0.0 pts No Marks
a poor or minimal attempt has been made
1.0 pts
Total Points: 1.0