The document outlines 10 steps to analyze student mark data stored in an array, including functions to find highest, lowest, average marks, counts of passing/failing students, identify array size, retrieve a student's mark, sort marks in descending order, and find the top 3 highest marks.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
34 views1 page
Array Programs
The document outlines 10 steps to analyze student mark data stored in an array, including functions to find highest, lowest, average marks, counts of passing/failing students, identify array size, retrieve a student's mark, sort marks in descending order, and find the top 3 highest marks.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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.