Advertisement
desislava_topuzakova

02. Beehive Role

Jun 10th, 2020
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.05 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02._Beehive_Role
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int intelligence = int.Parse(Console.ReadLine());
  10.             int strength = int.Parse(Console.ReadLine());
  11.             string gender = Console.ReadLine();
  12.  
  13.             if (intelligence >= 80 && strength >= 80 && gender == "female")
  14.             {
  15.                 Console.WriteLine("Queen Bee");
  16.             }
  17.             else if (intelligence >= 80)
  18.             {
  19.                 Console.WriteLine("Repairing Bee");
  20.             }
  21.             else if (intelligence >= 60)
  22.             {
  23.                 Console.WriteLine("Cleaning Bee");
  24.             }
  25.             else if (strength >= 80 && gender == "male")
  26.             {
  27.                 Console.WriteLine("Drone Bee");
  28.             }
  29.             else if (strength >= 60)
  30.             {
  31.                 Console.WriteLine("Guard Bee");
  32.             }
  33.             else
  34.             {
  35.                 Console.WriteLine("Worker Bee");
  36.             }
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement