Question: Please write a program in SAS STUDIO With explanatio. THANK YOU! 4. Elvis Presley was born on January 8, 1935 and died August 16, 1977.

Please write a program in SAS STUDIO With explanatio. THANK YOU!

Please write a program in SAS STUDIO With explanatio. THANK YOU! 4.

4. Elvis Presley was born on January 8, 1935 and died August 16, 1977. Based on this information, complete the following: a. Using DATALINES in a SAS data step, read in his birth date as 08JAN1935 and the date of his death as 08-16- 1977. Use a calculation in your data step to determine the number of days Elvis lived. Print out both dates as SAS dates with the number of days Elvis lived. b. A few people believe that Elvis is still living (Elvis Lives!) How old would Elvis be on the date for which this assignment is due (Sept. 30, 2021)? Express your answer in terms of years and days (assume 365.25 days per year). Your output should have a variable named Years with the number of years printed beneath and a variable named Days with the number of days printed beneath (the Days value should be less than 365 and a whole number). [Hint the Floor function rounds down a value and can be used to determine the number of whole years lived]

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 Mathematics Questions!