Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

https://findtheinvisiblecow.com/ make a program to find the cow Rules : The Prog

ID: 3597008 • Letter: H

Question

https://findtheinvisiblecow.com/ make a program to find the cow Rules : The Program will automatically open up your browser and type in the website. The Program will automatically start the game and find the cow. Points will be taken off if your program has a chance of clicking ad before find the cow. Extra Credit: The Program will follow all the rules above and continue by recognizing that the program found the cow already , and automatically start the game again. Then it will find the cow again, and go in a loop.

Explanation / Answer

Classes needed:

//***************************************

// This is the test class for the

// Bulls and Cows

//

// Your application must use this main method

//****************************************

public class BullsandCows{

public static void main(String[] args){

Game g = new Game();

[url removed, login to view]()

}

//***********************************

// This is a template for your Oracle

// class

//

//***********************************

public class Oracle{

private String solution;

public Oracle(){

// your code here for setting up

// an Oracle object

}

public int getBulls(String guess){

// your code here for

// determining the number

// of bulls the String

// guess should earn

}

public int getCows(String guess){

// your code here for

// determing the number

// of cows the String

// guess should earn

// any other methods you might want

// in this class can go here

}

//**********************************************

// This is the Game class for the Bull and Cows

// program. You will need to modify this template

//

//**********************************************

public class Game{

private int turns;

private Oracle computer;

private Scanner input;

// you may need more instance variables here

public Game(){

// your code for the Game constructor goes here

}

public void play(){

// your code for the Game play method goes here

}

// any other methods you may need go here

}