You are on page 1of 1

1. Create an array to store the marks of a subject for ‘n’ students in a class.

Store the marks and print them one by one.


2. Write a function to return the highest mark from the above array.
3. Write a function to return the lowest mark from the above array.
4. Write a function that returns the average mark of the class.
5. Write a function that counts the number of students who have passed in the
subject (marks above 50).
6. Write a function that counts the number of students who have failed in the
subject. (marks less than 50).
7. Identify the size occupied by the array.
8. Write a function that returns the marks of a student (given rollno) from the
array.
9. Arrange the marks in descending order.
10. Write a program to find the highest 3 marks from the array.

You might also like