import java.util.Random; import javax.swing.JOptionPane; /** * A class to play the game of Bagels * @author your name */ public class Bagels { // instance variable declarations go here // creates a random number generator object private static Random r = new Random(); /** * Creates a Bagels object */ public Bagels() { // NOTE: Since the secret number is initialized in a separate method, // the constructor body may be left empty (unless you have other // instance vars to initialize) } /** * Conducts a game and prints the results */ public void play() { // write method body here } // Generates three random single digit ints. The first cannot be zero // and all three will be different. Called by public method play() private void generateSecretNumber() { // write method body here } // Evaluates the user's guess and prints the guess and hints to System.out. // Called by public method play() private void evaluateGuess() { // write method body here } // Returns a value of true or false indicating whether the current // guess is a winner. Called by public method play() private boolean isWinner() { // write method body here // NOTE: this return statement is here only so the class skeleton // will compile. Feel free to use or discard return false; } }