Calculate the number of colors issued per year. Add a comment to your code stating in which year the largest number of colors were issued.
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
Download the SAS data set named CRAYONS from Canvas and save it to your local machine. This data set contains information on standard Crayola crayon colors. The variables in this file are crayon number, color name, hexadecimal code, RGB triplet, pack added, year issued, and year retired.
- In a comment in your code, describe two different ways that you could view the variable attributes in this SAS data set.
- Using one of the methods described in part a), review the names, labels, and attributes of the variables in the SAS data set CRAYONS. Record the label and length for the variable Color as a comment in your program.
- Calculate the number of colors issued per year. Add a comment to your code stating in which year the largest number of colors were issued.
- Sorting the crayons by color using their names would be ineffective due to the uniqueness of the names, but the information found in the RGB triplets can be used instead. Sort the crayon data by RGB triplet.
- Print the sorted data showing only columns for the variables color name and RGB triplet.
Problem 2 (20 Points).
Download the SAS data set named SFF from Canvas and save it to your local machine.
The World Health Organization (WHO) collected data in countries across the world regarding the outbreak of swine flu cases and deaths in 2009. The SAS data set called SFF includes information on cases and deaths per country by month during the epidemic.
- Review the names, labels, and attributes of the variables in the SAS data set SFF. Record the name and length of the character variables as a comment in your program.
- Count the number of countries within each continent.
- Count the number of countries per continent that reported no cases during the first month of the outbreak (April) versus the number of countries per continent that had at least one case. Do the same for the last month of the outbreak (August).
- To find potential errors in the data, create a report for countries that reported a first death date, but reported no first case date. This output should include only the variables continent, country, first case date, last reported number of cases, and first death date.
- Add code that will organize the report from part d) so that the countries on the same continent are grouped together, and make sure that dates are presentable.
Attachments:
Related Questions
. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 1
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of
. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 2
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of