Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java Instructions Grading on the curve is a method of grading that is based on the belief that letter grades for any given class should

java image text in transcribed
image text in transcribed
image text in transcribed
Instructions Grading on the curve is a method of grading that is based on the belief that letter grades for any given class should be distributed along abell curve. Typically, after a test is marked. the average score becomes an average grade, possibly a Cor B+. Scores failing above and below this average are graded accordingly. While this method of grading has both proponents and opponents, we are going to pretend to apply this form of making to a set of assignments. You will receive a set of integer scores for a particular assignment. As grades are determined by where they lie on the bell curve, we are interested in finding the minimum grade needed to be in the top of marks. For example, if we grade on the bell curve, the top 20% of these marks will receive the grade A. You se to determine the minimum grade required for a student to be in the top XX on the assignment. Write the body of the program Details Input The program reads the following an integer X representing the precentile mark that we are interested in for this data set an integer representing the number of student marks in the data set to follow a data set consisting of Ninteger 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 calculate Minimum Mark that takes in an array and integer X percentile. The method should determine the minimum mark required (based on the artay data provided to be in the top Xpercent of that data set Output The calculate Minimum Mark method should return the minimum mark that was calculated. This will be output in the Sample input/output: Sample input Sample output 20 10 31 32 33 34 35 36 37 38 39 40 In the example above, the 20 is X, and the 10 is N. 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 the grade group is 39. 6. import java.util.; 8. public class POD { //PLEASE START YOUR WORK HERE //PLEASE END YOUR WORK HERE public static void main(String[] args) { Winstantiate new scanner to read from the console Scanner in new Scanner(System.in); 1/Declare and initialize variables int percent ToFind - in.nextInto; final int N = in.nextInto: into gradeData = new int [N]; //Obtain grade data set for (int i-e; iN; 1++) 28 - 29 gradeData[i] - in.nextInt(); System.out.println(calculateMinimunMarkCgradeData, percent ToFind)): 33 34 }

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

More Books

Students also viewed these Databases questions

Question

7. Wh31 do you think a

Answered: 1 week ago