Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Picture
SAS Assessment Test

Question [2 of 4]

Copy and run the GROCERY data set from the yellow box below.
Picture

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.
Next
Already a member? Go to member's area.