+ 1

sb help me with this ?

Grade Analysis You have a dataframe that includes grades of students. Your program needs to take a number as input, and output the number of students who have a grade greater than the given input. For example, for the input 89, the output should be: [1] 3 as 3 students have grades greater than 89.

15th Sep 2021, 10:37 AM
Mostafa Alafif
Mostafa Alafif - avatar
2 Answers
+ 2
Mostafa Alafif Where is your code?
15th Sep 2021, 11:41 AM
A͢J
A͢J - avatar
+ 2
Please, firstly show your attempt. After that ask what problem is. Thanks for understanding. Also, you can use these steps: 1- take all given grades of student. (I think it'salready given) 2- take an input a grade for comparing other grades. 2- use a loop to compare the input with all given grades. 3- use if statement in the loops and count how many grades greater or smaller than the grade which as input. 4- print number that is counted. Happy coding!
15th Sep 2021, 2:19 PM
mesarthim
mesarthim - avatar