#include <iostream>
#include <string>
using namespace std;
int main()
{
string username;
string color;
int age;
cout << "Hello, Whats your name?\n>> ";
cin >> username;
cout << "\n" << username << ", And how old are you?\n>> ";
cin >> age;
cout << "\nWhat is your favorite color?\n>> ";
cin >> color;
cout << "\nHello " << username << "!\nAge: " << age << "\nYour Color: " <<
color << "\n\n";
enum
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
};
int dayToday;
cout << "Select a day (0 for Sunday, 6 for Saturday)\n>> ";
cin >> dayToday;
if (dayToday == 0)
{
cout << "\nYou selected: Sunday";
}
else if (dayToday == 1)
{
cout << "\nYou selected: Monday";
}
else if (dayToday == 2)
{
cout << "\nYou selected: Tuesday";
}
else if (dayToday == 3)
{
cout << "\nYou selected: Wednesday";
}
else if (dayToday == 4)
{
cout << "\nYou selected: Thursday";
}
else if (dayToday == 5)
{
cout << "\nYou selected: Friday";
}
else if (dayToday == 6)
{
cout << "\nYou selected: Saturday";
}
else
{
cout << "\n This is not a day!";
}
string TasksForTheDay[3];
[Link]();
cout << "\n\nEnter three tasks for the day:\n>> ";
getline(cin, TasksForTheDay[0]);
cout << ">> ";
getline(cin, TasksForTheDay[1]);
cout << ">> ";
getline(cin, TasksForTheDay[2]);
cout << "\nYour tasks for today are: \n";
cout << "- " << TasksForTheDay[0] << endl;
cout << "- " << TasksForTheDay[1] << endl;
cout << "- " << TasksForTheDay[2] << endl;
typedef string motivationalMsg;
motivationalMsg Messages[7];
Messages[0] = "Do one thing every day that scares you.";
Messages[1] = "Believe you can and you're halfway there.";
Messages[2] = "Believe you can and you're halfway there.";
Messages[3] = "Difficulties strengthen the mind, as labor does the body.";
Messages[4] = "Life is really simple, but we insist on making it complicated.";
Messages[5] = "Happiness depends upon ourselves.";
Messages[6] = "Light tomorrow with today!";
cout << "\nYour quote is: ";
if (dayToday == 0)
{
cout << Messages[0];
}
else if (dayToday == 1)
{
cout << Messages[1];
}
else if (dayToday == 2)
{
cout << Messages[2];
}
else if (dayToday == 3)
{
cout << Messages[3];
}
else if (dayToday == 4)
{
cout << Messages[4];
}
else if (dayToday == 5)
{
cout << Messages[5];
}
else if (dayToday == 6)
{
cout << Messages[6];
}
string FavoriteActivity;
cout << "\n\nWhat is your favorite activity?\n>> ";
getline(cin, FavoriteActivity);
int HoursSpent[3];
cout << "\n\nHow many hours did you spend on the tasks you've written before:\
n>> ";
cin >> HoursSpent[0];
cout << ">> ";
cin >> HoursSpent[1];
cout << ">> ";
cin >> HoursSpent[2];
int TotalHours = HoursSpent[0] + HoursSpent[1] + HoursSpent[2];
int HoursLeft = 24 - TotalHours;
cout << "\n\nTotal hours spent: " << TotalHours;
cout << "\nHours remaining: " << HoursLeft;
if (HoursLeft < 8)
{
cout << "Must've been a busy day..";
}
else if (HoursLeft > 8)
{
cout << "You've got time to rest";
}
return 0;
}