The following is a dataset listing peak air temperatures in degrees Fahrenheit, recorded on 20 consecutive days:
87, 90, 89, 87, 85, 89, 90, 85, 91, 87, 89, 83, 87, 91, 84, 89, 93, 91, 87, 88
Write a clear, thoroughly commented R program that does the following:
1. Create a reasonably named vector of those temperatures
2. Convert those temperatures to degrees Centigrade (you may need to look up the formula for this conversion), and store those converted temperatures in a new, reasonably-named vector. IMPORTANT: Don’t “hard-code” the values; that is, don’t just type the converted values into a new vector one at a time; have R make the vector for you.
3a. Create a reasonably named variable containing the mean temperature in degrees Centigrade for the dataset. Don’t hard-code this value; that is, don’t just compute the mean and then type in the number; have R compute the mean and assign that value to the variable name directly (in a single step).
3b. Create a reasonably named variable containing the standard deviation of the temperature in degrees Centigrade for the dataset. Don’t hard-code.
4a. Create a reasonably named vector containing the temperatures in degrees Centigrade for the first 10 days only. Don’t hard-code; that is, don’t just type 10 values into a new vector; have R make the vector for you. HINT: Use indexing!
4b. Create a reasonably named vector containing the temperatures in degrees Centigrade for the last 10 days only. Don’t hard-code.
5a. Create a reasonably named variable containing the mean temperature in degrees Centigrade in the first 10 days only. Don’t hard-code.
5b. Create a reasonably named variable containing the mean temperature in degrees Centigrade in the last 10 days only. Don’t hard-code.
6. Create a variable called didTempGoUp, which is a TRUE or FALSE value indicating whether the mean temperature was higher in the last 10 days than in the first 10 days. Don’t hard-code; have R figure out whether it’s true or false and assign that value to didTempGoUp (in a single step).
7. Create a reasonably named vector of all the temperatures in the dataset (in degrees Centigrade), ordered from smallest to largest. Don’t hard-code.
8. Create a histogram of all the temperatures (in degrees Centigrade), with yellow-colored bins and an appropriately-labeled x-axis. Give the histogram an appropriate title. TIP: If your title is too long to fit nicely, use \n to insert a line-break within the title; for example:
'Here’s the first line\nHere’s the second line'
(notice that no spaces are needed before or after the \n).
EXTRA CREDIT: Create a reasonably named vector containing the temperatures converted to z-scores. Remember, the z-score is the difference between the given value and the mean, as a number of standard deviations.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme