SHARE
TWEET

PB with C# Summer outfit (100/100 Judge)

petrov_93 Feb 27th, 2020 (edited) 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _03_Summer_outfit
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double degrees = double.Parse(Console.ReadLine());
  10.             string timeOfDay = Console.ReadLine();
  11.             string outfit = "";
  12.             string shoes = "";
  13.             if (degrees >= 10 && degrees <= 18)
  14.             {
  15.                 if (timeOfDay == "Morning")
  16.                 {
  17.                     outfit = "Sweatshirt";
  18.                     shoes = "Sneakers";
  19.                 }
  20.                 else if (timeOfDay == "Afternoon" || timeOfDay == "Evening")
  21.                 {
  22.                     outfit = "Shirt";
  23.                     shoes = "Moccasins";
  24.                 }
  25.             }
  26.             else if (degrees > 18 && degrees <= 24)
  27.             {
  28.                 if (timeOfDay == "Morning")
  29.                 {
  30.                     outfit = "Shirt";
  31.                     shoes = "Moccasins";
  32.                 }
  33.                 else if (timeOfDay == "Afternoon")
  34.                 {
  35.                     outfit = "T-Shirt";
  36.                     shoes = "Sandals";
  37.                 }
  38.                 else if (timeOfDay == "Evening")
  39.                 {
  40.                     outfit = "Shirt";
  41.                     shoes = "Moccsins";
  42.                 }
  43.             }
  44.             else if (degrees >= 25)
  45.             {
  46.                 if (timeOfDay == "Morning")
  47.                 {
  48.                     outfit = "T-Shirt";
  49.                     shoes = "Sandals";
  50.                 }
  51.                 else if (timeOfDay == "Afternoon")
  52.                 {
  53.                     outfit = "Swim Suit";
  54.                     shoes = "Barefoot";
  55.                 }
  56.                 else if (timeOfDay == "Evening")
  57.                 {
  58.                     outfit = "Shirt";
  59.                     shoes = "Moccasins";
  60.                 }
  61.             }
  62.             Console.WriteLine($"It's {degrees} degrees, get your {outfit} and {shoes}.");
  63.         }
  64.     }
  65. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top