public static Scanner input = new Scanner(System.in);
public static int birdtype,fishtype,reptype,numero,numbera=1;
public static void main(String[] args) {
System.out.println("Hello! \n Welcome to YSJ's virtual zoo :) \n Please choose one of the categories. \n 1.Mammals \n 2.Reptiles \n 3.Fish \n 4.Birds \n(Enter corresponding number)");
numbera = input.nextInt();
if(numbera==1){
System.out.print("Which mammal would like to learn about: \n 1.Tiger \n 2.Elephant \n 3.Gorilla \n 4.Giraffe \n 5. Panda \n Enter 10 to display what each of the mentioned animals eat");
numero = input.nextInt();
if (numero==1){
System.out.print("The tiger (Panthera tigris) is the largest living cat species and a member of the genus Panthera. It is most recognisable for its dark vertical stripes on orange-brown fur with a lighter underside. It is an apex predator, primarily preying on ungulates such as deer and wild boar \n Lifespan: 8 – 10 years (In the wild)\n Speed: 49 – 65 km/h (Adult, In Short Bursts)\n Height: 70 – 120 cm (Adult, At Shoulder)Diet: \n CarnivoreMass: Male: 90 – 310 kg (Adult), Female: 65 – 170 kg (Adult) ");
}
else if (numero==2){
System.out.print("Elephants are the largest existing land animals. Three species are currently recognised: the African bush elephant, the African forest elephant, and the Asian elephant. Elephantidae is the only surviving family of the order Proboscidea; extinct members include the mastodons. The family Elephantidae also contains several extinct groups, including the mammoths and straight-tusked elephants. African elephants have larger ears and concave backs, whereas Asian elephants have smaller ears, and convex or level backs. Distinctive features of all elephants include a long proboscis called a trunk, tusks, large ear flaps, massive legs, and tough but sensitive skin. The trunk is used for breathing, bringing food and water to the mouth, and grasping objects. Tusks, which are derived from the incisor teeth, serve both as weapons and as tools for moving objects and digging. The large ear flaps assist in maintaining a constant body temperature as well as in communication. The pillar-like legs carry their great weight. \n Speed: African bush elephant: 40 km/h \n Length: Asian elephant: 5.5 – 6.5 m \n Gestation period: Asian elephant: 18 – 22 months, African bush elephant: 22 months \n Mass: Asian elephant: 4,000 kg, African bush elephant: 6,000 kg, African forest elephant: 2,700 kg \n Lifespan: Asian elephant: 48 years, African bush elephant: 60 – 70 years, African forest elephant: 60 – 70 years \n Height: Asian elephant: 2.8 m, African bush elephant: 3.2 m");
}
else if(numero==3){
System.out.print("Gorillas are ground-dwelling, predominantly herbivorous great apes that inhabit the tropical forests of central Sub-Saharan Africa. The genus Gorilla is divided into two species: the eastern gorillas and the western gorillas, and either four or five subspecies. They are the largest living primates. The DNA of gorillas is highly similar to that of humans, from 95 to 99% depending on what is included, and they are the next closest living relatives to humans after chimpanzees and bonobos. \n Lifespan: 35 – 40 years \n Height: Western gorilla: 1.6 m \n Scientific name: Gorilla \n Gestation period: Western gorilla: 257 days Encyclopedia of Life \n Mass: Western gorilla: 160 kg, Eastern gorilla: 140 – 210 kg \n Speed: Western gorilla: 40 km/h, Eastern gorilla: 40 km/h");
}
else if(numero==4){
System.out.print("The giraffe (Giraffa) is an African artiodactyl mammal, the tallest living terrestrial animal and the largest ruminant. It is traditionally considered to be one species, Giraffa camelopardalis, with nine subspecies. However, the existence of up to nine extant giraffe species has been described, based upon research into the mitochondrial and nuclear DNA, as well as morphological measurements of Giraffa. Seven other species are extinct, prehistoric species known from fossils.The giraffe's chief distinguishing characteristics are its extremely long neck and legs, its horn-like ossicones, and its distinctive coat patterns. It is classified under the family Giraffidae, along with its closest extant relative, the okapi. Its scattered range extends from Chad in the north to South Africa in the south, and from Niger in the west to Somalia in the east. \n Height: Northern giraffe: 4.6 – 6.1 m \n Eats: Acacia \n Gestation period: Northern giraffe: 15 months \n Mass: Northern giraffe: 800 kg Encyclopedia of Life \n Speed: 60 km/h (Maximum, Sprint)\n Habitats: Savanna, Grassland, Woodland");
}
else if(numero==5){
System.out.print("The giant panda, also known as the panda bear or simply the panda, is a bear native to South Central China. It is characterised by its bold black-and-white coat and rotund body. The name (giant panda) is sometimes used to distinguish it from the red panda, a neighboring musteloid. \n Lifespan: 20 years (In the wild) \n Trophic level: Herbivorous Encyclopedia of Life \n Mass: Female: 70 – 100 kg (Adult) \n Height: 60 – 90 cm (Adult, At Shoulder) \n Scientific name: Ailuropoda melanoleuca \n Gestation period: 95 – 160 days");
}
else if(numero==10){
System.out.print("1.Tigers mainly eat sambar deer, wild pigs, water buffalo and antelope.(carnivore) \n 2.Elephants eat roots, grasses, fruit, and bark. \n 3.Gorillas stick to a mainly vegetarian diet, feeding on stems, bamboo shoots and fruits. \n 4.Giraffe are predominantly browsers and mainly eat leaves and buds on trees and shrubs. They will also eat herbs, climbers and vines, and prefer flowers and fruit when in season. \n 5.Pandas eat bamboo");
}
}
else if(numbera==2){
System.out.print("Which Reptile would like to learn about: \n 1.Snake \n 2.Crocodile \n 3.Tortoise \n Enter 10 to display what each of the mentioned animals eat");
reptype = input.nextInt();
if (reptype==1){
System.out.print("Snakes are elongated, limbless, carnivorous reptiles of the suborder Serpentes. Like all other squamates, snakes are ectothermic, amniote vertebrates covered in overlapping scales. \n Lifespan: Acrochordus arafurae: 9 years \n Speed: Sidewinder: 29 km/h \n Scientific name: Serpentes \n Kingdom: Animalia \n Diet: Carnivore \n Length: Acrochordus arafurae: 1.5 m, Barbados threadsnake: 10 cm");
}
else if(reptype==2){
System.out.print("Crocodiles or true crocodiles are large semiaquatic reptiles that live throughout the tropics in Africa, Asia, the Americas and Australia. Crocodylinae, all of whose members are considered true crocodiles, is classified as a biological subfamily. \n Scientific name: Crocodylinae \n Lifespan: Saltwater crocodile: 70 years, Nile crocodile: 70 – 100 years \n Speed: Saltwater crocodile: 24 – 29 km/h, American crocodile: 32 km/h, Nile crocodile: 30 – 35 km/h \n Mass: Saltwater crocodile: 1,000 kg, American crocodile: 400 – 500 kg, Nile crocodile: 220 – 750 kg \n Length: Saltwater crocodile: 4.3 – 5.2 m, American crocodile: 4.1 – 4.8 m, Nile crocodile: 4.2 m \n Clutch size: Saltwater crocodile: 40 – 60, American crocodile: 30 – 70, Nile crocodile: 25 – 80");
}
else if(reptype==3){
System.out.print("Tortoises are reptile species of the family Testudinidae of the order Testudines. They are particularly distinguished from other turtles by being exclusively land-dwelling, while many other turtle species are at least partly aquatic. \n Speed: Leopard tortoise: 1 km/h \n Scientific name: Testudinidae \n Family: Testudinidae; Batsch, 1788 \n Higher classification: Testudinoidea \n Kingdom: Animalia");
}
else if(reptype==10);
System.out.print("1.All snakes are carnivores. Their diet depends on the species. Some eat warm-blooded prey (e.g., rodents, rabbits, birds), while others eat insects, amphibians (frogs or toads), eggs, other reptiles, fish, earthworms, or slugs. \n 2.In the wild, crocodiles eat insects, fish, small frogs, lizards, crustaceans and small mammals. In captivity, do not feed crocodiles chicken or beef only. Food needs to be chopped to a size that is easy to eat. Live food, such as fish and insects, can be placed in the water to encourage the crocodile to hunt. \n 3.Tortoises like a variety of plant-based foods. Depending on the species of your tortoise, about 80% of your pet tortoise's daily diet should be fresh vegetables like kale, dandelions, mustard and collard greens.");
}
else if(numbera==3){
System.out.print("Which type of Fish would you like to learn about: \n 1.Black Arowana \n 2.Blue Discus \n 3.Jaguar Cichlid \n Enter 10 to display what each of the mentioned animals eat");
fishtype = input.nextInt();
if (fishtype==1){
System.out.print("The black arowana is a South American freshwater bony fish of the family Osteoglossidae. Black arowanas are sometimes kept in aquariums, but they are predatory and require a very large tank. It is generally common, but large numbers are caught as food and for the aquarium fish trade. \n Scientific name: Osteoglossum ferreirai \n Order: Osteoglossiformes \n Higher classification: Osteoglossum \n Conservation status: Least Concern (Population stable) Encyclopedia of Life \n Rank: Species \n Phylum: Chordata");
}
else if(fishtype==2){
System.out.print("Symphysodon aequifasciatus, the blue discus or brown discus, is a species of cichlid native to rivers of the eastern and central Amazon Basin downriver from the Purus arch. \n Scientific name: Symphysodon aequifasciatus \n Higher classification: Discus \n Order: Cichliformes \n Rank: Species \n Phylum: Chordata \n Family: Cichlidae");
}
else if(fishtype==3){
System.out.print("Parachromis Managuensis is a large species of cichlid native to freshwater habitats in Central America, where found from Honduras to Costa Rica. The scientific name refers to Lake Managua in Nicaragua from where the holotype was obtained. \n Family: Cichlidae \n Scientific name: Parachromis managuensis \n Higher classification: Parachromis \n Class: Actinopterygii \n Order: Cichliformes \nPhylum: Chordata");
}
else if(fishtype==10){
System.out.print("1.Black arowana can be fed a combination of specialist cichlid or arowana pellets or flakes alongside a range of fresh, frozen or live meaty foods. Suitable foods include minnows, krill, ghost shrimp, large insects, spiders, tubifex worms and mealworms. \n 2.blue discus eat a considerable amount of plant material and detritus, but also forage along the bottom looking for worms and small crustaceans. They are omnivores and will thrive on Aqueon Tropical Flakes, Color Flakes, Spirulina flakes, Tropical Granules, Algae Rounds and Shrimp Pellets. \n 3.The jaguar cichlid prefers food like earthworms, crickets and tadpoles. ");
}
}
else if(numbera==4){
System.out.print("Which type of Bird would you like to learn about: \n 1.Parrots \n 2.Penguins \n 3.Owls \n Enter 10 to display what each of the mentioned animals eat");
birdtype = input.nextInt();
if (birdtype==1){
System.out.print ("Parrots, also known as psittacines, are birds of the roughly 398 species in 92 genera comprising the order Psittaciformes, found mostly in tropical and subtropical regions. The order is subdivided into three superfamilies: the Psittacoidea, the Cacatuoidea, and the Strigopoidea. \n Scientific name: Psittaciformes \n Clutch size: Hyacinth macaw: 1 – 4 \n Higher classification: Psittacopasserae \n Lifespan: Kakapo: 40 – 80 years, Hyacinth macaw: 50 years \n Mass: Kakapo: 2 – 4 kg, Hyacinth macaw: 1.2 – 1.7 kg, Buff-faced pygmy parrot: 12 g \n Length: Hyacinth macaw: 100 cm, Buff-faced pygmy parrot: 8.6 cm");
}
else if(birdtype==2){
System.out.print("Penguins are a group of aquatic flightless birds. They live almost exclusively in the Southern Hemisphere, with only one species, the Galápagos penguin, found north of the Equator. Highly adapted for life in the water, penguins have countershaded dark and white plumage and flippers for swimming. \n Eaten by: Sea lions \n Scientific name: Spheniscidae \n Speed: Emperor penguin: 6 – 9 km/h \n Lifespan: Emperor penguin: 20 years, Little penguin: 6 years \n Height: Emperor penguin: 1.1 – 1.3 m, Little penguin: 30 – 35 cm, Galapagos penguin: 49 – 53 cm \n Mass: Emperor penguin: 23 kg, Little penguin: 1.5 kg, Galapagos penguin: 2.5 kg");
}
else if(birdtype==3){
System.out.print("Owls are birds from the order Strigiformes, which includes over 200 species of mostly solitary and nocturnal birds of prey typified by an upright stance, a large, broad head, binocular vision, binaural hearing, sharp talons, and feathers adapted for silent flight. \n Scientific name: Strigiformes \n Higher classification: Neognathae \n Order: Strigiformes; Wagler, 1830 \n Class: Aves \n Mass: Barn owl: 430 – 620 g, Snowy owl: 2 kg \n Length: Barn owl: 32 – 40 cm, Snowy owl: 63 – 73 cm");
}
else if(birdtype==10)
{
System.out.print("1.Parrots are omnivores, which means that they can eat both meat and vegetation. Most parrots eat a diet that contains nuts, flowers, fruit, buds, seeds and insects. Seeds are their favorite food. They have strong jaws that allow them to snap open nutshells to get to the seed that's inside. \n 2.Penguins eat krill (a shrimp-like crustacean in the family Euphausiidae), squids, and fishes. Various species of penguins have slightly different food preferences, which reduce competition among species. \n 3.Owls diet includes invertebrates (such as insects, spiders, earthworms, snails and crabs), fish, reptiles, amphibians, birds and small mammals. The main food largely depends on the species of Owl.");