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