radostina92

Untitled

May 4th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.87 KB | None | 0 0
  1. using System;
  2.  
  3. namespace SummerOutfit
  4. {
  5.     class SummerOutfiit
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int degrees = int.Parse(Console.ReadLine());
  10.             string partOfDay = Console.ReadLine();
  11.  
  12.             string clothes = "";
  13.             string shoes = "";
  14.  
  15.             if (degrees >= 10 && degrees <= 18)
  16.             {
  17.                 if (partOfDay == "Morning")
  18.                 {
  19.                     clothes = "Sweatshirt";
  20.                     shoes = "Sneakers";
  21.                 }
  22.                 else if (partOfDay == "Afternoon" || partOfDay == "Evening")
  23.                 {
  24.                     clothes = "Shirt";
  25.                     shoes = "Moccasins";
  26.                 }
  27.                
  28.             }
  29.             else if (degrees > 18 && degrees <= 24)
  30.             {
  31.                 if (partOfDay == "Afternoon")
  32.                 {
  33.                     clothes = "T-Shirt";
  34.                     shoes = "Sandals";
  35.                 }
  36.                 else if (partOfDay == "Morning" || partOfDay == "Evening")
  37.                 {
  38.                     clothes = "Shirt";
  39.                     shoes = "Moccasins";
  40.                 }
  41.             }
  42.             else if (degrees >= 25)
  43.             {
  44.                 if (partOfDay == "Morning")
  45.                 {
  46.                     clothes = "T-Shirts";
  47.                     shoes = "Sandals";
  48.                 }
  49.                 else if (partOfDay == "Afternoon")
  50.                 {
  51.                     clothes = "Swim Suit";
  52.                     shoes = "Barefoot";
  53.                 }
  54.                 else if (partOfDay == "Evening")
  55.                 {
  56.                     clothes = "Shirt";
  57.                     shoes = "Moccasins";
  58.                 }
  59.             }
  60.             Console.WriteLine($"It's {degrees} degrees, get your {clothes} and {shoes}.");
  61.         }
  62.     }
  63. }
Add Comment
Please, Sign In to add comment