Computer Science, asked by ranaprachi666, 8 months ago

You are the class representative and your class advisor always requests your help to
prepare the result analysis after each internal assessment. One of the tasks that your class
advisor has assigned to you is to find whether a student has scored a more than 30 marks in a
course. Given the scores of the 'n' students in the class, write a program to find whether any
student has scored marks more than 30 or not in a course. Use arrays to store the marks of
the students and assume that the maximum number of students in a class is 40. Display how
many students got marks more than 30 and 0 on the screen.

Answers

Answered by jadonnikhil115
3

Answer:

Mid sem marks of a particular subject is announced , since you are curious in knowing your position in class so you decided to make a rank list . You are given the name , scholoar number and marks of every student in your class. You have to come up with accurate rank list i.e student having maximum marks at the top and if two students are having same marks then the student having lexicographically smaller name comes first , if both name and marks of the student collide then student having smaller scholar number comes first.

Input:

First line of input contains N - Total number of students in class

Next N line contains name of student , scholar number and marks scored in exam .

Output:

Print the ranklist of students as explained above.

Constraints

1 <= N <= 1000

1 <= length of name <= 10

1 <= scholar number <= 1000

0 <= marks <= 30

PLS MARK BRAINLEIST AND FOLLOW

Similar questions