Question: Input The program reads in the following: an integer X representing the percentile mark that we are interested in for this data set an integer

Input

The program reads in the following:

an integer X representing the percentile mark that we are interested in for this data set

an integer N representing the number of student marks in the data set (to follow)

a data set consisting of N integer scores obtained by students on an assignment

Processing

Note that the main method has been provided for you. You are to write a method called calculateMinimumMark that takes in an array and (integer X) percentile. The method should determine the minimum mark required (based on the array data provided) to be in the top X percent of that data set.

Output

Input The program reads in the following: an integer X representing theThe calculateMinimumMark method should return the minimum mark that was calculated. This will be output in the main method. Write this in JAVA!

Examples Sample input 20 10 31 32 33 34 35 36 37 38 39 40 data set Sample output 39 Note that there are 10 scores in the input. That means that to be in the top 20% of grades, you must be one of the top 2 marks. The minimum grade you can have to be in that grade group is 39

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!