Question: TestTimes Class You will write the TestTimes.java class which will implement the TestTimesInterface , The interface may be downloaded from TestTimesInterface.java The TestTimes class will
- TestTimes Class You will write the TestTimes.java class which will implement the TestTimesInterface , The interface may be downloaded from TestTimesInterface.java The TestTimes class will contain an array of 10 long values and a counter of how many values have been added using addTestTime(long testTime). Every time a new test time is added, the counter is incremented.
- LinearSearch Class You will write the LinearSearch.java class which will inherit from TestTimes.java and implement the Search Interface using a linear search algorithm. The interface may be downloaded from SearchInterface.java Please note that your search method must measure the run time and add it to the TestTimes class by using the addTestTime() method.
- BinarySearch Class You will write the BinarySearch.java class which will inherit from TestTimes.java and implement the Search Interface using a binary search algorithm. The interface may be downloaded from SearchInterface.java Please note that your search method must measure the run time and add it to the TestTimes class by using the addTestTime() method.
- Driver Class You will write the Driver.java class to test your implementations of:
- TestTimes.java
- LinearSearch.java
- BinarySearch.java
The Driver.java will implement the Driver Interface . The interface may be downloaded from DriverInterface.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
