128k views
4 votes
The following SAS program is submitted: data test; set sasuser.employees; if 2 le years_service le 10 then amount = 1000; else amount = 0; amount_per_year = years_service / amount; run; What is the value of the variable AMOUNT_PER_YEAR if an employee has been with the company for one year?

a) 0
b) 500
c) 1
d) 1000

User ITroubs
by
8.1k points

1 Answer

3 votes

Final answer:

If an employee has been with the company for one year, their AMOUNT_PER_YEAR would be 1 since AMOUNT would be 1000.

Step-by-step explanation:

The value of the variable AMOUNT_PER_YEAR if an employee has been with the company for one year can be determined by analyzing the given SAS program. In the program, the variable AMOUNT is set to 1000 if the years_service is between 2 and 10 (inclusive). Otherwise, AMOUNT is set to 0. The variable AMOUNT_PER_YEAR is then calculated by dividing the years_service by the AMOUNT. So, if an employee has been with the company for one year, their AMOUNT_PER_YEAR would be 1 since AMOUNT would be 1000.

User AnthonyI
by
7.7k points

No related questions found