Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.Design;
- using System.Globalization;
- using System.Reflection;
- using System.Runtime.ConstrainedExecution;
- using System.Security.Cryptography;
- namespace SomeExcercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- int degrees = int.Parse(Console.ReadLine());
- string timeOfDay = Console.ReadLine();
- string outfit = "";
- string shoes = "";
- switch (timeOfDay)
- {
- case "Morning":
- if (degrees >= 10 && degrees <= 18)
- {
- outfit = "Sweatshirt";
- shoes = "Sneakers";
- }
- else if (degrees > 18 && degrees <= 24)
- {
- outfit = "Shirt";
- shoes = "Moccasins";
- }
- else if (degrees > 24)
- {
- outfit = "T-Shirt";
- shoes = "Sandals";
- }
- break;
- case "Afternoon":
- if (degrees >= 10 && degrees <= 18)
- {
- outfit = "Shirt";
- shoes = "Moccasins";
- }
- else if (degrees > 18 && degrees <= 24)
- {
- outfit = "T-Shirt";
- shoes = "Sandals";
- }
- else if (degrees > 24)
- {
- outfit = "Swim suit";
- shoes = "Barefoot";
- }
- break;
- case "Evening":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- }
- Console.WriteLine($"It's {degrees} degrees, get your {outfit} and {shoes}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment