// This is a sample introduction to C++ program
// It calculates you age in seconds
// Enjoy


//The following line let's us do output to the standard output

#include <iostream>   
#include <string>

using namespace std;

const int MULTIPLIER = 365*24*60*60;   	// To later convert to seconds 
int age_in_seconds;    	// Get this from the user
int age_in_years;  	// Calculate this to output to the user

string name;

int main()
{

  //Get information from the user

  cout << "Please enter your name: "; 
  cin >> name;

  cout << "Hi " << name << ", enter your age in years at your last birthday: ";
  cin >> age_in_years;

  //Perform the calcuation

  age_in_seconds = age_in_years*MULTIPLIER;  

  // Now output the results

  cout << "Your age in seconds is: " << age_in_seconds << endl;
  cout << "See how useful C++ is?" << endl;

  return 0;
}
