Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Outline: In this assignment, you will develop a Console based Grading applicatio

ID: 3638905 • Letter: O

Question

Outline:
In this assignment, you will develop a Console based Grading application. This application will calculate the grade of 11 students based on their scores in exams and homework. It will also calculate median of the exam and homework scores.

Operation:
The application does the following:
1. generates random exam score in the range [0, 200] for 11 students and stores it in an array of integers. See the Implementation Details below for information about how to generate random numbers in Java.
2. generates random homework scores in the range [0,100] for 11 students and stores it in an array of integers.
3. computes the total score of each student based on the following formula:
totalScore = (75 x exam/ 200) + (25 x hw/ 100)
4. determines the grade the student earns given the following grading scheme. The grading scheme is: A: >= 80, B: [60, 80), C: < 60. Note that B:[60, 80) means a student gets a B if his score is >= 60, but strictly less than 80.
5. displays the students’ exam, homework, total scores and grade on the screen in the same format as shown in the sample output below.
6. calculates the median of all exam scores and the median of all homework scores and displays them in the format shown in the sample output below. (Do not sort the array to compute this). Hint: Because there are 11 students in this case, the 6th highest value will be the median.
Implementation Details
To implement this application you will use arrays and functions.
? All variables/arrays must be declared inside some function. Do not declare variables at class level.
? You will write at least the following functions to accomplish the task of the application. You may write other functions to accomplish other subtasks of the application, if you like.
1. computeGrade: it will compute and return the grade of one student
2. computeMedian: it will take an array of integers as input, compute the median of the numbers in the array and return the computed median.
? The following code will generate 2 random integers in the range 0 to 10
java.util.Random r = new java.util.Random( ); // this line must appear only once // in your code and must be added // before the loop(s) that is used to
// generate the random numbers.
int n1 = r.nextInt(11); // generates a random number between 0 and 10 // and stores in variable n1
int n2 = r.nextInt(11); // generates another random number between 0 and 10 // and stores in variable n1

Explanation / Answer

Hi! Cramster Terms & Conditions were changed recently (I hope you have read them). Now, experts have to send the answers to askers' inbox after you rate them. That is because of people copying from older threads which have public answers. Hence we can only send the answer after you rate. So please give me a Lifesaver rating and I'll send the solution to your inbox or e-mail. You've got no other option to get the answer, because no one can give you the answer over here. Even you might be banned for rating a user that gave the answer directly on your question. You need not worry as I have the solution ready in my notebook. Hope you rate me :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote