1.8 Employee salaries and job class are listed here. Write a program to create a SAS data set (call it anything you wish) containing the employee ID (EMPID), the salary (SALARY), the job class (JCLASS), and a new variable called BONUS, computed as follows: BONUS is 10% of salary for job class 1, 15% of salary for job class 2, and 20% of salary for job class 3 (the CEO and president of the company). Once you have the bonus amount, add it to salary to create one more variable called NEW SALARY. Use PROC PRINT to list the contents of the data set. Here is the data you can use: 137 28000 1 214 98000 3 199 150000 3 355 57000 2 Notice that the columns don't line up. You may make JCLASS a character or a numeric variable. Make sure the SAS statements you write using JCLASS are compatible with which type you chose. Look in the SAS LOG to make sure there are no "character to numeric" or "numeric to character" conversion messages.

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.2: Representing Data
Problem 22PFA
icon
Related questions
Question
1.8 Employee salaries and job class are listed here. Write a program to create a SAS data set
(call it anything you wish) containing the employee ID (EMPID), the salary (SALARY), the
job class (JCLASS), and a new variable called BONUS, computed as follows: BONUS is
10% of salary for job class 1, 15% of salary for job class 2, and 20% of salary for job class 3
(the CEO and president of the company). Once you have the bonus amount, add it to salary
to create one more variable called NEW SALARY. Use PROC PRINT to list the contents
of the data set. Here is the data you can use:
137 28000 1
214 98000 3
199 150000 3
355 57000 2
Notice that the columns don't line up. You may make JCLASS a character or a numeric
variable. Make sure the SAS statements you write using JCLASS are compatible with which
type you chose. Look in the SAS LOG to make sure there are no "character to numeric" or
"numeric to character" conversion messages.
Transcribed Image Text:1.8 Employee salaries and job class are listed here. Write a program to create a SAS data set (call it anything you wish) containing the employee ID (EMPID), the salary (SALARY), the job class (JCLASS), and a new variable called BONUS, computed as follows: BONUS is 10% of salary for job class 1, 15% of salary for job class 2, and 20% of salary for job class 3 (the CEO and president of the company). Once you have the bonus amount, add it to salary to create one more variable called NEW SALARY. Use PROC PRINT to list the contents of the data set. Here is the data you can use: 137 28000 1 214 98000 3 199 150000 3 355 57000 2 Notice that the columns don't line up. You may make JCLASS a character or a numeric variable. Make sure the SAS statements you write using JCLASS are compatible with which type you chose. Look in the SAS LOG to make sure there are no "character to numeric" or "numeric to character" conversion messages.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Functions and Change: A Modeling Approach to Coll…
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt