In terms of concept, it’s a simple assignment where a runner is keeping track of their running activities. Each run is characterized by two attributes:
distance (in kms) and
time (in seconds). Each instance of a
Run object also holds references to two other
prev: Run (if any) before the instance.
next: Run (if any) after the instance.
Thus, we can track runs from earliest to latest using
next, or latest to earliest using
Your task is to complete the nine methods in the class
IMPORTANT: All methods except
addToFront require correct implementation of
addToEnd as a pre-requisite.
For some methods, such as
size(), etc., it doesn’t matter which object in the list the methods is called on, the result should be the same.
For example, if there is a list of 20 runs starting at
r, each of the following should return 20:
You can, and if using recursion, will need to, add helper methods. You can add instance variables and class (static) variables as well.
A document to help you with the concept of the need to traverse to the first node, and for a helper method (for a good chunk of the methods) is provided in a4help.pdf at the bottom of the page.
Tests for the following methods are NOT supplied:
You need to write your own tests to check the correctness of your implementation.
Maximum marks for each method are provided in the tests corresponding to the methods. For full marks, you need to solve this assignment purely recursively. So, if you use a loop, even once, in any method, your marks will be reduced by 30% automatically. We hope the following table makes the situation clear for you.
|Number of times loops used||Raw Mark||Final Mark|
If it doesn’t, the following flowchart might help:
Drag the file
Run.java into the submission box. You got this!
You cannot use any external library. The use of ANY function from outside the
Run class will result in an automatic zero
The post write your own tests to check the correctness of your implementation. appeared first on Best Custom Essay Writing Services | EssayBureau.com.
Quality Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account.
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. We will always strive to deliver on time.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
If you are looking for exceptional academic writing services, then you are in the right place. Studyacer offers customised academic assignments and academic papers for students at all levels.
Writing an essay can be a challenge. However, we know what every student needs. And we purpose to deliver. Here at StudyAcer, we do all we can to help with academic essays and assignments. We have a dedicated team of professional essay writers.
We understand students need satisfactory results. Our cheap assignment writing service helps and never leaves any doubt. We always strive to ensure the ultimate and best results. It is our joy to offer a cheap reliable essay writing service.
Have you been asking yourself, where can get a pre written research papers for sale? Worry no more, the fact that you have a term paper that is due tonight and you haven’t touched it. At Study Acer it is our responsibility to get your paper on time.