View difference between Paste ID: Pgm8jG09 and aEVM6LEn
SHOW: | | - or go back to the newest paste.
1
//create a function named yearsTillRetiring,
2
 
3
//create a constant named age to which you assign the participant's age, use the function participantAge() from the previous task
4
 
5
//create a constant named retirement to which you will assign a number symbolizing the age remaining until retirement
6
 
7
//add a conditional statement to display e.g. Alex retires in 40 years where Alex and 40 are variables
8
//for a person who is already retired should display, for example, Alex is already retired 
9
 
10
//call the function yearsTillRetiring() passing the necessary parameters to it