Advertisement
Guest User

Untitled

a guest
Oct 28th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp22
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int degrees = int.Parse(Console.ReadLine());
  14. string timeofday = Console.ReadLine();
  15.  
  16. string Outfit = "";
  17. string Shoes = "";
  18.  
  19. if (degrees >= 10 && degrees <= 18)
  20. {
  21. if (timeofday == "Morning")
  22. Outfit = "Sweatshirt";
  23. Shoes = "Sneakers";
  24. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  25. }
  26.  
  27. else if (timeofday == "Afternoon")
  28. {
  29. Outfit = "Shirt";
  30. Shoes = "Moccasins";
  31. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  32. }
  33.  
  34. else if (timeofday == "Evening")
  35. {
  36. Outfit = "Shirt";
  37. Shoes = "Moccasins";
  38. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  39. }
  40. if (degrees > 18 && degrees <= 24)
  41. {
  42. if (timeofday == "Morning")
  43. {
  44. Outfit = "Shirt";
  45. Shoes = "Moccasins";
  46. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  47. }
  48. else if (timeofday == "Afternoon")
  49. {
  50. Outfit = "T-Shirt";
  51. Shoes = "Sandals";
  52. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  53. }
  54. else if (timeofday == "Evening")
  55. {
  56. Outfit = "Shirt";
  57. Shoes = "Moccasins";
  58. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  59. }
  60. if (degrees >= 25)
  61. {
  62. if (timeofday == "Morning")
  63. Outfit = "T-Shirt";
  64. Shoes = "Sandals";
  65. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  66. }
  67. else if (timeofday == "Afternoon")
  68. {
  69. Outfit = "Swim Suit";
  70. Shoes = "Barefoot";
  71. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  72. }
  73. else if (timeofday == "Evening")
  74. {
  75. Outfit = "Shirt";
  76. Shoes = "Moccasins";
  77. Console.WriteLine("It's {0} degrees, get your {1} and {2}.", degrees, Outfit, Shoes);
  78. }
  79. }
  80. }
  81. }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement