Sentry Page Protection
Exercise (1-9)
Run the code in the yellow box before working on this exercise:
Run the code in the yellow box before working on this exercise:
The PHONEBILL data set contains 4 variables related to the mobile phone usage:
- BillNo: Bill Number
- Minutes: Number of minutes used
- Messages: Number of text messages sent and received
- Data: The amount of data used (in MB)
The $30 monthly plan includes 200 minutes, 25 text messages and 1000 MB data usage.
Below is the additional charges incurred when the usage exceeds the monthly limit:
- Minutes: $0.1 per minute when over 200 minutes
- Messages: $0.5 per message when over 25 messages
- Data: $0.05 per MB when over 1000 MB
Write a SAS program to calculate the total amount for each bill.