Using the knowledge in computational language in C++ it is possible to write a code that will calculate the age of someone through the difference of years.
<h3>Writing code in C++ has:</h3>
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>int main()</em>
<em>{</em>
<em>//Declare variables</em>
<em>int myCurrentAge=29;</em>
<em>int myNewAge;</em>
<em>const int YEAR = 2050; //Declare constant YEAR=2050</em>
<em>int currentYear=2014;</em>
<em>myNewAge=myCurrentAge+(YEAR-currentYear); //calculate new age</em>
<em>cout<<"My Current Age is "<<myCurrentAge<<endl;</em>
<em>cout<<"I will be "<<myNewAge<<" in "<<YEAR<<"."<<endl; //display values on console</em>
<em>return 0;</em>
<em>}</em>
See more about C++ at brainly.com/question/19705654
#SPJ1