/* 10/30/2017 Programming Process: 1. Understand problem 2. Develop and algorithm (use pseudocode) 3. Code in Java 4. Debug 5. Test -- Put together datasets for which the program behaves differently. Try each data set, sometimes this is called a "test suite" We can also call the method inside of a loop to test it on many different values. We also spoke about Encapsulation and Generalization (be sure to read DM text in sections 7.3 and 7.4 */ import java.util.Scanner; /** * This class tests the findmax method. */ public class TestFindMax { /** main method */ public static void main(String[] args) { findMax(1,2,3); // just because it works for one call, // does NOT mean that the method works // Really want to check all possible paths of execution findMax(3,2,1); // if we try every possible permutation of 3 numbers // we should get every path // put 6 different calls here } } /** findMax of 3 values * @param 3 values * @return maximum of 3 parameters */ public static double findMax(double x, double y, double z) { double max=0; // there is code here that someone wrote to find max of 3 #'s return max; } }