Advertisement
Guest User

Untitled

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