Advertisement
Guest User

Untitled

a guest
May 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. //this is the updated but not yet finished version. Just to be saved for backup
  2. package computer.sc;
  3. import java.util.Scanner;
  4. /**
  5. *
  6. * @author Dain Wareing
  7. */
  8. public class ComputerSc {
  9.  
  10. /**
  11. * @param args the command line arguments
  12. */
  13. public static void main(String[] args) {
  14. // TODO code application logic here
  15.  
  16.  
  17. int userControl = -1;
  18. while (userControl == -1) {
  19.  
  20. Scanner userInput = new Scanner (System.in);
  21.  
  22. System.out.println("Menu items press 1");
  23. userControl = userInput.nextInt();
  24.  
  25. if (userControl == -1) {
  26. System.out.println("Menu items press 1");
  27.  
  28. } else if (userControl == 1) {
  29. System.out.println("Set the Generation 0 values");
  30. } else if (userControl ==2)
  31. System.out.println("Display the Generation 0 values");
  32. }
  33. int juvenile;
  34. int adult;
  35. int senile;
  36.  
  37. int birthRate;
  38. int survivalRate;
  39.  
  40. Scanner userInput = new Scanner(System.in);
  41.  
  42. System.out.println("Input the values for the Juveniles");
  43. juvenile = userInput.nextInt();
  44.  
  45. System.out.println("Input the values for the Adults");
  46. adult = userInput.nextInt();
  47.  
  48. System.out.println("Input the values for the Seniles");
  49. senile = userInput.nextInt();
  50. int Juvenile = 10;
  51.  
  52.  
  53. System.out.println("------------------------------------------------------------");
  54. System.out.println(" Juvenile Adult Senile");
  55. System.out.println("Number of Greenflies " + Juvenile +" " + adult +" " + senile );
  56. System.out.println("Survival rate " + 1 +" "+ 1 +" " + 0 );
  57. System.out.println("------------------------------------------------------------");
  58.  
  59.  
  60.  
  61. }
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement