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
Answer:
If the following answer is helpful please mark as brainliest. This is the answer:
Explanation:
print("What is your name?")
name=input()
print("And where do you live", name)
location=input()
print("I've never been to", location)
Answer:
Refer below.
Explanation:
Because we are inserting commands to beq, we will need an execution of the ALU, and then a register write. This result in and increase cycle time of the PC relative branch:
440+90=530ps.
As it is the longest time to execute, so its a critical path