User Tools

Site Tools


bagels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
bagels [2021/05/24 13:59] frchrisbagels [2021/05/24 14:25] frchris
Line 4: Line 4:
  
 The computer picks a 3-digit number at random in which no two digits are the same. The user must guess the number. If the human has a correct digit in the correct position then the computer displays “Fermi”. If the human has a correct digit in the wrong place then the computer displays ‘Pico’. If none of the human’s digits are in the computer’s number then the computer displays ‘Bagels’. Keep track of the number of guesses it takes for the human guess the computer’s number. The computer picks a 3-digit number at random in which no two digits are the same. The user must guess the number. If the human has a correct digit in the correct position then the computer displays “Fermi”. If the human has a correct digit in the wrong place then the computer displays ‘Pico’. If none of the human’s digits are in the computer’s number then the computer displays ‘Bagels’. Keep track of the number of guesses it takes for the human guess the computer’s number.
 +
 +{{ ::picofermibagel.java |PicoFermiBagel.java}} starter code.
  
 What else? What else?
bagels.txt · Last modified: 2021/06/01 11:17 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki