Answered step by step
Verified Expert Solution
Question
1 Approved Answer
By using JAVA single linked list Create a Trial class to keep track of a Simple Harmonic Motion trials and their results. A Simple Harmonic
By using JAVA "single linked list"
Create a Trial class to keep track of a Simple Harmonic Motion trials and their results. A Simple Harmonic Motion Trial have the following variables:
- Mass (float):
- Distance (integer):
- day (integer): each Trial in one day
- Elongation (integer) - Springtype (string)
- The class should use simple basics of a single linked list to keep the trials. The Triallinkedlist class should support the following methods:
1. add (trail): insert trail to the end of the list 2. get (day): get the trail with the given day 4. remove (day): remove the trail in the given day 5. print (day): list all trails in a given day
- Write a Main class which tests all the methods of your Triallinkedlist class.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started