Question: age and years _ to _ add are read from input. calculate _ future _ age ( ) has two parameters my _ age and
age and yearstoadd are read from input. calculatefutureage has two parameters myage and years, and outputs the sum of myage and years. Call calculatefutureage to output the sum of age and yearstoadd without modifying age.
Click here for exampleEx: If the input is:
then the output is:
Age in years:
Age now:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
