Question: Write a code which will assign grades for the courses with respect to the exam score obtained: Score 9 0 % grade 5 Score 8

Write a code which will assign grades for the courses with respect to the exam score obtained:
Score 90% grade 5
Score 80% grade 4
Score 70% grade 3
Score 60% grade 2
Score 50% grade 1
Score 50% grade 0
Using the following piece of code 30+round(70*rand(20,1)) generate twenty random score values (note they will range between 30 and 100), and calculate their respective grades. Calculate the mean grade.
Then plot them as points, in such a way that x axis contains just given score's index (location in the score vector), and y axis contains the grade value, buteach of the six grade categoriesis shown with adistinctmarker style. Incluse a horizontal line representing the overall mean grade. I need the answer in r code please.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!