16. (20pt) You've volunteered to write a test harness to support your colleagues writing a math function. They ha given
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
16. (20pt) You've volunteered to write a test harness to support your colleagues writing a math function. They ha given
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) {
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!