Question: This is a modification to the 0 4 Assignment 2 program. Changes are highlighted. Create a C / C + + program that does the
This is a modification to the Assignment program. Changes are
highlighted.
Create a CC program that does the following tasks.
Create a Named Constant and assign your name to it
Create a Named Constant named YEARFUTURE assign it the value
Create a variable named currentYear and assign the current digit year to it
Create a variable named myAge and assign your current age in years to this
variable. Since your age will never be a negative number, use a data type to
reflect this.
Create a variable name agelnFuture.
Compute your age in the yearFuture and assign it to the variable agelnFuture.
A myAge YEARFUTURE currentYear;
Display the following output using the variables in the program.
should refer to a data item
My Name is XXXXX XXXX and I will be ## in the year
Deliverable is a CPP file. The code must have comments in addition to heading
comments.
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
