Skip to content

Sgreid7/JurassicPark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jurassic Park

A simple console application that help manages a zoo full of Dinosaurs.

Includes

Featured Code

while (isRunning)
      {
        Console.WriteLine("Please select one of the options below:");
        Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        Console.WriteLine("(VIEW) all dinosaurs, (ADD) a new dinosaur, (REMOVE) a dinosaur, (TRANSFER) a dinosaur to a new enclosure,");
        Console.WriteLine("(HEAVIEST) to view the top three heaviest dinosaurs, (DIET) to view dinosaur diets, or (QUIT) the program.");

        var input = Console.ReadLine().ToLower();
        switch (input)
        {
          case "view":
            dinoTracker.View(dinoTracker.Dinosaurs);
            break;

          case "add":
            dinoTracker.Add();
            break;

          case "remove":
            dinoTracker.Remove();
            break;

          case "transfer":
            dinoTracker.Transfer();
            break;

          case "heaviest":
            dinoTracker.Heaviest();
            break;

          case "diet":
            dinoTracker.DietSummary();
            break;

          case "quit":
            Console.WriteLine("You have chosen to quit the program. Thanks for coming to Jurassic Park, we hope to see you again. Safe travels!");
            isRunning = false;
            break;
        }
      }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages