Question: For the recently concluded term exams, it is that day today where the Math teacher will distribute the corrected answer sheet to every student and

For the recently concluded term exams, it is that day today where the Math teacher
will distribute the corrected answer sheet to every student and also call out the marks
that the student has secured.
One of the students is a Math prodigy and is really quick at performing the
calculations. When the mark is called out for each student, she would perform the
calculation as to what is the 50th percentile of the class.
You are required to simulate the same calculation using heap data structure and
calculate the 50th percentile after every time the teacher calls out the mark of a
student.
Do not import any heap libraries. You are required to write your own functions. Marks as called out by the teacher ={65,70,72,88,90,96,54,68,84,100,45,62,
76,88,94

Step by Step Solution

3.57 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To calculate the 50th percentile using a heap data structure you can follow these steps 1 Create a m... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!