Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Summertime

JOHNYTHEWINNER Feb 2nd, 2020 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # include <iostream>
  2. using namespace std;
  3. #include <iomanip>
  4. #include <math.h>
  5. #include <cmath>
  6.  
  7.  
  8.  
  9. int main()
  10. {
  11.     int degrees;
  12.     string time;
  13.     cin >> degrees;
  14.     cin >> time;
  15.     string Sweatshirt = "Sweatshirt";
  16.     string Sneakers = "Sneakers";
  17.     string Shirt = "Shirt";
  18.     string Moccasins = "Moccasins";
  19.     string Tshirt = "T-Shirt";
  20.     string Sandals = "Sandals";
  21.     string Swimsuit = "Swim Suit";
  22.     string Barefoot = "Barefoot";
  23.     if (degrees >= 10 && degrees <= 18)
  24.     {
  25.         if (time == "Morning")
  26.         {
  27.             cout << "It's " << degrees << " degrees, get your " << Sweatshirt << " and " << Sneakers << "." << endl;
  28.         }
  29.         else if (time == "Afternoon")
  30.         {
  31.             cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
  32.         }
  33.         else
  34.         {
  35.             cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
  36.         }
  37.     }
  38.     if (degrees > 18 && degrees <= 24)
  39.     {
  40.         if (time == "Morning")
  41.         {
  42.             cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
  43.         }
  44.         else if (time == "Afternoon")
  45.         {
  46.             cout << "It's " << degrees << " degrees, get your " << Tshirt << " and " << Sandals << "." << endl;
  47.         }
  48.         else
  49.         {
  50.             cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
  51.         }
  52.     }
  53.     if (degrees >= 25)
  54.     {
  55.         if (time == "Morning")
  56.         {
  57.             cout << "It's " << degrees << " degrees, get your " << Tshirt << " and " << Sandals << "." << endl;
  58.         }
  59.         else if (time == "Afternoon")
  60.         {
  61.             cout << "It's " << degrees << " degrees, get your " << Swimsuit << " and " << Barefoot << "." << endl;
  62.         }
  63.         else
  64.         {
  65.             cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
  66.         }
  67.     }
  68.  
  69.  
  70.  
  71.     return 0;
  72. }
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