Lab Homework 5

You are to complete this homework before attending the sixth lab.

Solve chapter 5 exercise 6 (makeGuesses, page 369). First solve it in PracticeIt. Then copy and paste the following code into jGRASP and copy your solution from PracticeIt into the program to complete it:

// This program tests the makeGuesses method.

import java.util.*;

public class MakeGuessTest {
   public static void main(String[] args) {
      makeGuesses();
   }

   // include your solution to the makeGuesses method here
}

Working on this problem will help prepare you for the homework assignment. Remember that for these warm-up exercises you can talk to each other about how to solve it and even look at each other's solutions. Then you should work on the weekly programming assignment by yourself.