Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is the updated but not yet finished version. Just to be saved for backup
- package computer.sc;
- import java.util.Scanner;
- /**
- *
- * @author Dain Wareing
- */
- public class ComputerSc {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- int userControl = -1;
- while (userControl == -1) {
- Scanner userInput = new Scanner (System.in);
- System.out.println("Menu items press 1");
- userControl = userInput.nextInt();
- if (userControl == -1) {
- System.out.println("Menu items press 1");
- } else if (userControl == 1) {
- System.out.println("Set the Generation 0 values");
- } else if (userControl ==2)
- System.out.println("Display the Generation 0 values");
- }
- int juvenile;
- int adult;
- int senile;
- int birthRate;
- int survivalRate;
- Scanner userInput = new Scanner(System.in);
- System.out.println("Input the values for the Juveniles");
- juvenile = userInput.nextInt();
- System.out.println("Input the values for the Adults");
- adult = userInput.nextInt();
- System.out.println("Input the values for the Seniles");
- senile = userInput.nextInt();
- int Juvenile = 10;
- System.out.println("------------------------------------------------------------");
- System.out.println(" Juvenile Adult Senile");
- System.out.println("Number of Greenflies " + Juvenile +" " + adult +" " + senile );
- System.out.println("Survival rate " + 1 +" "+ 1 +" " + 0 );
- System.out.println("------------------------------------------------------------");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement