Question: /JavaCS1/src/jobtimer/TestJobTimer.java /JavaCS1/src/jobtimer/JobTimer.java /JavaCS1/src/jobtimer/AddTimer.java #1 #2 #3 The classes at the links below give timing information for 10 million addition operations. JobTimer is an abstract class,
/JavaCS1/src/jobtimer/TestJobTimer.java /JavaCS1/src/jobtimer/JobTimer.java /JavaCS1/src/jobtimer/AddTimer.java
#1

#2

#3

The classes at the links below give timing information for 10 million addition operations. JobTimer is an abstract class, AddTimer is a subclass of JobTimer that provides an implementation for the doJob method involving repeated additions, and TestJobrimer s a driver class that exercises the AddTimer code. JavaCS1/src/jobtimerTestJobTimer.java JavaCS1src/jobtimerf JobTimerjava JavaCS1/src/jobtimeriAddTimer,java Now we want to create a new subclass of JobTiner, the MultTimer class, to time the "ob" of multiplication. In the box below write the code that will complete the daJob method with multiplication. public class MultTimer extends JobTimer ( /how many times should the operation be performed public long numOperations 10000000; implementation of the abstract method public void doJob(X long k 0; int result = 0, operand = 12345 while(k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
