Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read the problem and instructions carefully to answer both questions 8 and 9 . A student taking a human nutrition class obtains the following grades

Read the problem and instructions carefully to answer both questions 8 and 9.
A student taking a human nutrition class obtains the following grades in a scale
from 0 to 10 : tests (6.5), quizzes (5.0), final exam (7.3), papers (4.5), motivation
(9.3), and homework (8.2).
Of the final grade, these activities are worth: tests (20%), quizzes (5%), final
exam (30%), papers (10%), motivation (20%), and homework (15%),
respectively.
Pick the code below that will create a dataframe that correctly captures this
information.
Choose ALL that apply.
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights -c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame(grades, weights)
grades -c(7.3,4.5,9.3,8.2,6.5,5.0)
weights - c(0.3,0.1,0.2,0.15,0.2,0.05)
student_data - data.frame(weights, grades)
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights -c(0.05,0.15,0.3,0.1,0.2,0.20)
student_data - data.frame(grades, weights)
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights - c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame( weights, grades)
Using the dataframe created in Question 8, what code will produce the
student's final grade? Check all that apply.
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights - c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame(grades, weights)
weighted.mean(student_data$grades, student_data$weights)
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights - c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame(weights, grades)
weighted.mean(student_data[[1]], student_data[[2]])
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights - c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame(weights, grades)
weighted.mean(student_data[[2]], student_data[[1]])
grades -c(6.5,5.0,7.3,4.5,9.3,8.2)
weights - c(0.2,0.05,0.3,0.1,0.2,0.15)
student_data - data.frame(grades, weights)
weighted.mean(student_data[[1]], student_data[[2]])
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions