Final answer:
To find the highest and lowest marks obtained by students of batch size 10, you can use a simple algorithm. Initialize two variables to the first student's marks, and then compare the marks of the remaining students,
Step-by-step explanation:
The correct answer is option 'D'.
To find the highest and lowest marks obtained by students of batch size 10, you can use the following algorithm:
- Initialize two variables, 'highest' and 'lowest', to the first student's marks.
- For each remaining student, compare their marks with the current highest and lowest values. If their marks are higher than the current highest value, update the 'highest' variable. And if their marks are lower than the current lowest value, update the 'lowest' variable.
- At the end of the iteration, you will have the highest and lowest marks obtained by the students.
Here is a simple flowchart representation of the algorithm:
By following this algorithm, you will be able to find the highest and lowest marks obtained by students of batch size 10.