Answer:
//Program was implemented using C++ Programming Language
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
int main()
{
int givenYear; // Declare givenYear as integer
cout<<"Enter a Given Year: "; // Prompt telling the user to enter any year
cin>>givenYear; // This line accepts input for variable givenYear
// Check if givenYear is greater than or equal to 2101
if(givenYear >= 2101)
{
cout<<"Distant Future";
}
// Check if givenYear is greater than or equal to 2001 but less than 2101
else if(givenYear >= 2001)
{
cout<<"21st Century";
}
// Check if givenYear is greater than or equal to 1901 but less than 2001
else if(givenYear >= 1901)
{
cout<<"20th Century";
}
// Check if givenYear is less than 1901
else
{
cout<<"Long ago";
}
return 0;
}
Explanation: