Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use R programming to solve this Problem 1. The following table shows four students' grades for K353, A327, and K350 in Spring 2021. Table 1:
Use R programming to solve this
Problem 1. The following table shows four students' grades for K353, A327, and K350 in Spring 2021. Table 1: Student Grades K353, A327, and K350 have 3, 1.5, and 3 credit hours, respectively. Table 2 shows the IU grading system. Table 2: IU Grading System 1. [1 point] Create a text vector with name stu name that includes the information in the column Name in Table 1. 2. [1.5 point] Store course credit hours in a vector named credit hours. Use a statistical function in R to sum up the vector elements. Store the result in a variable with name total credit. 3. [1.5 point] Using Table 2, store grades for each of the K353, A327, and K350 in three vectors named grade_K353, grade_A327, and grade_K350, respectively. 4. [1.5 point] Multiply the vector of grades for each course with its corresponding element of the vector credit hours. Save the results in three vectors named weighted_grade_K353, weighted_grade_A327, and weighted_grade_K350. 5. [1 point] Add the three vectors obtained in part 4 in a vector named total weighted grades. 6. [1 point] Divide total weighted grades by total credit and store the result in a vector named stu GPA (Please note that stu GPA should be a vector of size 4). 7. [1 point] Apply a statistical function to stu GPA to find the average GPA of all four students and assign that to a variable with the name avg GPA. For each of these requirements, create a logical vector that shows if students meet the requirement or not. Name your vectors GPA check and intern check. You should use relational operations to obtain the GPA check, but intern check should be hard-coded by you based on the problem information. If a student meets the criteria, the corresponding element should be TRUE. 9. [1.5 point] Combine the GPA check and intern check to create a logical vector named stu excellence that shows if a student is excellent or not. For excellent students, the corresponding element should be TRUE. 10. [2 point] Create a data frame that contains the stu name, stu GPA, intern check, and stu excellence columns. Name your data frame stu information
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started