Question 8
Create a bar graph to show the sum of sales grouped by months using “monSal” provided in
question 13. Your bar graph should have:
• "Month" as the label for the x-axis,
• "Total Sales" as the label for the y-axis,
• "Total Sales of Each Month in 2019" as the label for the graph
• Names for each of the bars according to their factor ordered chronologically (this is
discussed in a video and uses one simple option in your plotting command)
Question 9
Create a histogram using sales from “monSal” provided in question 13. Your histogram should
have:
• "Sales" as the label for the x-axis and
• "Histogram of Sales in 2019" as the label for the graph.
Question 10
Import the file attached to this quiz, named “Q10.csv” into R, while assigning it to the new
variable named “Q10”
Assume that the first column is X and the second column is Y.
In either way discussed in the videos, calculate the R2
value and save it to the new object “D”
(I’m also surprised that I hadn’t used that variable name yet!)
Question 11
Run an ordinary linear regression of the variable Y on X and assign this model to the variable
“XY”. Save the following objects with the names indicated in quotations, while being sure to
round your answers to the 3rd decimal digit: [Note: you can round them by yourself. You do not
need to run a code for it]
• “Ixy” = The intercept value
• “Bxy” = The coefficient on the covariate
• “CCxy” = The correlation coefficient
Question 12
Create a scatterplot using the data from the previous question that has:
• X on its horizontal axis, labeled "Regressor"
• Y on its vertical axis, labeled "Regressand"
• Graph labeled "Simple Linear Regression Model"
• A red regression line
Question 13
Create a vector with forty elements: starting with 2.8 to 18.4 with increments of 0.4 (each
element is 0.4 greater than the element before it). Assign this vector to the variable “J”.
Create a for loop named “loop13” to transform each element to be the natural log of the original
value times its position in the vector. For example, the last element should be transformed into
ln(18.4×40)=6.60123 and the first element should be transformed into ln(2.8×1)= 1.029619 –
save this new vector of transformed values to “Jnew” (don’t forget the help function, ?)
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