SAS Assessment Test
Question [2 of 4]
Copy and run the GROCERY data set from the yellow box below.
Copy and run the GROCERY data set from the yellow box below.
The GROCERY data set contains 3 variables:
- ITEM: Item no.
- PRICE: Price of the items
- DISCOUNT: Percentage of discount for each item.
Write a SAS program to calculate the updated price based on the discount offered for each item.
The calculation should be as follow:
New = Old x (1 - Discount/100)
Round the updated price to 2 decimal places.
Create any data set or variables if necessary.