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 04 Assignment 2 program. Changes are
highlighted.
Create a C/C++ program that does the following tasks.
Create a Named Constant and assign your name to it.
Create a Named Constant named YEAR_FUTURE assign it the value 2050.
Create a variable named currentYear and assign the current 4 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 +(YEAR_FUTURE - currentYear);
Display the following output - using the variables in the program. (2050
should refer to a data item)
My Name is XXXXX XXXX and I will be ## in the year 2050.
Deliverable is a CPP file. The code must have comments in addition to heading
comments.
 This is a modification to the 04 Assignment 2 program. Changes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!