Question: please answer all attentionfor the first question,0 COMPUTER SCIENCE complete the grading students' function below the function is expected to return an INTEGER ARRAY the

please answer all
please answer all attentionfor the first
attentionfor the first question,0
please answer all attentionfor the first
please answer all attentionfor the first
COMPUTER SCIENCE
complete the grading students' function below
the function is expected to return an INTEGER ARRAY
the function accepts INTEGER_ARRAY grades as parameter
The code should be written in Python.
please answer all attentionfor the first
please answer all attentionfor the first
8-10.uakace 10-1 ANX--0. ancree. aexse. avix- DaxseemXKA NASxsasactsANSXSD Proan n wi/ADACH 1. [10 marks) The probability density function of a random variable X is such that follows: f c(1 - (xl), for 0 t) = 1/4. 7. [20 marks] A box contains 2 coins and pi (i = 1,2) denotes the probability of a head when the ith coin is tossed. Suppose p = 1/4,p2 = 1/2. Suppose that one coin is selected at random from the box and when it is tossed three times, two head are obtained. Work out the probability that it is the ith coin that has been selected (i = 1,2). If a tail has been obtained on the first toss of the selected coin and the same coin is tossed again, what would be the probability of obtaining a head this time? 6:55 Done grading-English.pdf Hackerland University has the following grading policy: Every student receives a grade in the inclusive range from 0 to 100. Any grade less than 40 is a failing grade. Sam is a professor at the university and likes to round each student's grade according to these rules . If the difference between the grade and the next multiple of 5 is less than 3, round grade up to the next multiple of 5. If the value of grade is less than 38, no rounding occurs as the result will still be a failing grade. Examples grade = 84 round to 85 (85 - 84 is less than 3) grade = 29 do not round (result is less than 40) grade = 57 do not round (60 - 57 is 3 or higher) Given the initial value of grade for each of Sam's n students, write code to automate the rounding process. Function Description Complete the function grading Students in the editor below. gradingstudents has the following parameter(s): int grades in the grades before rounding Returns int[n), the grades after rounding as appropriate Input Format The first line contains a single integer, 72, the number of students. Each line i of the n subsequent lines contains a single integer, grades[i] Constraints .13ns60 .0 grades[i] t) = 1/4. 7. [20 marks] A box contains 2 coins and pi (i = 1,2) denotes the probability of a head when the ith coin is tossed. Suppose p = 1/4,p2 = 1/2. Suppose that one coin is selected at random from the box and when it is tossed three times, two head are obtained. Work out the probability that it is the ith coin that has been selected (i = 1,2). If a tail has been obtained on the first toss of the selected coin and the same coin is tossed again, what would be the probability of obtaining a head this time? 6:55 Done grading-English.pdf Hackerland University has the following grading policy: Every student receives a grade in the inclusive range from 0 to 100. Any grade less than 40 is a failing grade. Sam is a professor at the university and likes to round each student's grade according to these rules . If the difference between the grade and the next multiple of 5 is less than 3, round grade up to the next multiple of 5. If the value of grade is less than 38, no rounding occurs as the result will still be a failing grade. Examples grade = 84 round to 85 (85 - 84 is less than 3) grade = 29 do not round (result is less than 40) grade = 57 do not round (60 - 57 is 3 or higher) Given the initial value of grade for each of Sam's n students, write code to automate the rounding process. Function Description Complete the function grading Students in the editor below. gradingstudents has the following parameter(s): int grades in the grades before rounding Returns int[n), the grades after rounding as appropriate Input Format The first line contains a single integer, 72, the number of students. Each line i of the n subsequent lines contains a single integer, grades[i] Constraints .13ns60 .0 grades[i]

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 General Management Questions!