Question: Task 1 : Declare a constant named YEAR, and initialize YEAR with the value 2 0 5 0 . Task 2 : Edit the statement
Task : Declare a constant named YEAR, and initialize YEAR with the value
Task : Edit the statement myNewAge myCurrentAge currentYear so it uses the constant named YEAR.
Task : Edit the statement cout "I will be myNewAge in endl; so it uses the constant named YEAR.
Task : All instances of inline, hardcoded have been replaced with the YEAR constant.
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
