Advertisement
feagans

Untitled

Apr 20th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class assignment8 {
  2.  
  3. public static void main(String[] args) {
  4. int round = 1;
  5.  
  6. while(round < 4){
  7. double secretPrice = getSecretPrice();
  8. double[] playerGuess = getPlayerGuess();
  9.  
  10. for(int i = 0; i < playerGuess.length; i++){
  11. if (playerGuess[i] > secretPrice) {
  12. bustPlayers++;
  13. } else {
  14. String compareGuesses = processCompareGuess();
  15. }
  16. round++;
  17.  
  18. }
  19. }
  20. displayResults();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement