Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- using namespace std;
- #include <iomanip>
- #include <math.h>
- #include <cmath>
- int main()
- {
- int degrees;
- string time;
- cin >> degrees;
- cin >> time;
- string Sweatshirt = "Sweatshirt";
- string Sneakers = "Sneakers";
- string Shirt = "Shirt";
- string Moccasins = "Moccasins";
- string Tshirt = "T-Shirt";
- string Sandals = "Sandals";
- string Swimsuit = "Swim Suit";
- string Barefoot = "Barefoot";
- if (degrees >= 10 && degrees <= 18)
- {
- if (time == "Morning")
- {
- cout << "It's " << degrees << " degrees, get your " << Sweatshirt << " and " << Sneakers << "." << endl;
- }
- else if (time == "Afternoon")
- {
- cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
- }
- else
- {
- cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
- }
- }
- if (degrees > 18 && degrees <= 24)
- {
- if (time == "Morning")
- {
- cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
- }
- else if (time == "Afternoon")
- {
- cout << "It's " << degrees << " degrees, get your " << Tshirt << " and " << Sandals << "." << endl;
- }
- else
- {
- cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
- }
- }
- if (degrees >= 25)
- {
- if (time == "Morning")
- {
- cout << "It's " << degrees << " degrees, get your " << Tshirt << " and " << Sandals << "." << endl;
- }
- else if (time == "Afternoon")
- {
- cout << "It's " << degrees << " degrees, get your " << Swimsuit << " and " << Barefoot << "." << endl;
- }
- else
- {
- cout << "It's " << degrees << " degrees, get your " << Shirt << " and " << Moccasins << "." << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement