Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedThe 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

What is the principle of equivalence?

Answered: 1 week ago