Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Test Times Class You will write the TestTimes.java class which will implement the TestTimesInterface. The interface may be downloaded from Test TimesInterface java The

image text in transcribed
1. Test Times Class You will write the TestTimes.java class which will implement the TestTimesInterface. The interface may be downloaded from Test TimesInterface java The Test Times 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. 2. Linear Search Class You will write the Linear Search.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. 3. Binary Search Class You will write the Binary Search.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: 1. TestTimes.java 2. Linear Search.java 3. Binary Search.java The Driver.java will implement the Driver Interface. The interface may be downloaded from Driverinterface.java Please note that, in addition to implementing the Driverinterface, you are also required to write your own public static main(String[] args)method in Driver.java that tests all of your classes and methods before submitting your assignment on mimir. Please make sure that all your java classes are in the default package. Please submit the completed programming assignment on the Mimir Platform Website. You must submit your Java programs as a zip file of only the classes specified above. 1. Test Times Class You will write the TestTimes.java class which will implement the TestTimesInterface. The interface may be downloaded from Test TimesInterface java The Test Times 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. 2. Linear Search Class You will write the Linear Search.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. 3. Binary Search Class You will write the Binary Search.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: 1. TestTimes.java 2. Linear Search.java 3. Binary Search.java The Driver.java will implement the Driver Interface. The interface may be downloaded from Driverinterface.java Please note that, in addition to implementing the Driverinterface, you are also required to write your own public static main(String[] args)method in Driver.java that tests all of your classes and methods before submitting your assignment on mimir. Please make sure that all your java classes are in the default package. Please submit the completed programming assignment on the Mimir Platform Website. You must submit your Java programs as a zip file of only the classes specified above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

How does selection differ from recruitment ?

Answered: 1 week ago