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
The 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 39Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started