Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class RevisedFootballProject {
  3.  
  4. /**
  5. * @param args
  6. */
  7. public static void main(String[] args) {
  8. // TODO Auto-generated method stub
  9. Scanner input= new Scanner(System.in);
  10.  
  11. System.out.print("What is the down? ");
  12. int down = input.nextInt();
  13.  
  14. System.out.print("What is the yard line? ");
  15. int yardline = input.nextInt();
  16.  
  17. System.out.print("Number of yards scored this play: ");
  18. int yardnumber = input.nextInt();
  19.  
  20. int currentyardline = yardline + yardnumber;
  21.  
  22. int yardstonext = 10;
  23. yardstonext = ;
  24. if (yardstonext < 1)
  25. {
  26. yardstonext = yardstonext * -1;
  27. down = 1;
  28. }
  29. if (yardstonext < 10)
  30. {
  31. down++;
  32. }
  33. System.out.println(+ down + " down and " + yardstonext + " to go. ");
  34.  
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement