Page 1 of 1

16. (20pt) You've volunteered to write a test harness to support your colleagues writing a math function. They ha given

Posted: Sat May 14, 2022 7:12 pm
by answerhappygod
16 20pt You Ve Volunteered To Write A Test Harness To Support Your Colleagues Writing A Math Function They Ha Given 1
16 20pt You Ve Volunteered To Write A Test Harness To Support Your Colleagues Writing A Math Function They Ha Given 1 (29.21 KiB) Viewed 33 times
16. (20pt) You've volunteered to write a test harness to support your colleagues writing a math function. They ha given you a stub of their code, and the mathematical function that should be followed. Be sure to select and des test cases to verify the function operates exactly as required. (CL0-2) public class Step { public static int function(int num) { f(x) = -*, *<0 // TODO calculate and return f(x) (Z is the set of all integers) } 2x, *20*EZ public class TestHarness { public static void main(String[] args) {