I used that the species, gender, family, class, Filo, kingdom
The animal with two legs and four only could be the superiors, and they are the mammallians and the kingdom reptillian (less the snake - but the snake has vestigial legs),
The animals with 6 and 8 legs are the insects, and the majority has 6 legs but the spiders;
Scanner tec_tec = new Scanner(System.in);
String type;
String exemple;
System.out.println("How many legs has the type of animal that you want the information?");
int legs = tec_tec.nextInt();
switch(legs){
case 2 :
type = "The animal is biped";
exemple = "Has the primates and the birds";
break;
case 4 :
type = "The animal is quadruped";
exemple = "All the mammalians like the felines but the primates, and the herbivores; also the reptillians";
break;
case 6 :
type = "Insects, almost all but the spider";
exemple = "Ants, bettles, flies";
break;
case 8 :
type = "Spiders";
exemple = "The only in the animal kingdom with 8 legs are the spiders";
break;
default:
type = "There is no such specie in the animal kingdom, unless you are talking of centiped but I bet you don't hit the number";
exemple = "void";
}
System.out.println(type);
System.out.println(exemple);
Rute Bezerra de Menezes Gondim
No comments:
Post a Comment