Question: This is an old computer game from the 7 0 ' s . I believe the board game Master Mind was inspired by this game.

This is an old computer game from the 70's.I believe the board game Master Mind was inspired by this game. It is guessing game where you are trying to guess a secret 4 digit "code".After the user enters a 4 digit guess, the program should reply with how many digits are the correct number and in the correct order, these are called Bulls and signified with a B. If a digit guess is correct, but in the wrong order (location) then it, this is called a Cow, and signified with a C.
It is claimed that you should be able to solve it in 7 games.....see if you can.
For turn-in run the program and play until you have won. Then copy your output, and place it below your program as a comment. Your program output could look like this for a secret code of 5268:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!