Question: Need Help ASAP!!!! Thank you!!! AP Java FRQ: Gradebook Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java. Notes:

Need Help ASAP!!!! Thank you!!! AP Java FRQ: Gradebook Directions: SHOW ALLYOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java.Notes: Assume that the classes listed in the Quick Reference have beenimported where needed. Unless otherwise noted in the question, assume that parametersNeed Help ASAP!!!! Thank you!!!

AP Java FRQ: Gradebook Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java. Notes: Assume that the classes listed in the Quick Reference have been imported where needed. Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied. In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined in that question. Writing significant amounts of code that can be replaced by a call to one of these methods may not receive full credit. This question involves using one- and two-dimensional arrays of integers to make a points- based gradebook. You will write three static methods, all of which are in a class named SradeBook (not shown). The first method returns the total of the values of a one-dimensional array which is a single student's grade based on total points; the second method returns an array that represents the total of the rows of a two-dimensional array which are the total points- grades for all students in the class; and the third method analyzes how many grades are above a certain threshold and returns the number of students who are passing a class. Consider a one- dimensional array that holds a single student's quiz grades (out of 10) for a class where the teacher uses a total points system for grading. Each column represents a quiz grade and each row represents a student. For this problem, assume that there are a total of 5 Consider a one- dimensional array that holds a single student's quiz grades (out of 10) for a class where the teacher uses a total points system for grading. Each column represents a qui:z grade and each row represents a student. For this problem, assume that there are a total of 5 quizzes, so a maximum total points score is 50. (a) Write a static method gradetotal that calculates and returns the total of the entries in a one-dimensional array. The following example shows an array arr1 and the value returned by a call to gradeTotal arrl: Value returned by gradeTotal (arr1): 44 0 1 2 3 4 10 8 9 710 Complete method gradetatal below. /**Returns the total of the entries in the one-dimensional array arr. / (b) Write a static method slasstotas hat calculates the totals of each of the rows in a given two-dimensional array and returns these totals in a one-dimensional array to display the total-point grade for each student. The method has one parameter, which is a two-dimensional array arr2D of int values. The array is in row-major order: arr2D[r] [c] is the entry at row r and column c. The method returns a one-dimensional array with one entry for each row of arr2D such that each entry is the total of the corresponding row in arr2D. Recall that each row of a two-dimensional array is a one-dimensional array. For example, if class1 is the array represented by the following table, the call (classl) returns the array 158, 38, 47, 7 class1 4 5 0 10 10 10 10 2 3 Assume that gradetatal works as specified, regardless of what you wrote in part (a). You must use gradeTotal appropriately to receive full credit. Complete method classTotals below. /** Returns a one-dimensional array in which the entry at index j is the total of the entries of row j of the two-dimensional array arr2D. */ (c) Write a static method that determines how many students' grades are at or above a certain number of total points, in this case 30. The method has one parameter: a two-dimensional array arr2D of int, values. The method should return um for the total number of row totals that are at or above 30. In the arrays shown below, the call clasS classl 0 4 0 10 10 10 10 2 Assume that gradeTotal and glassTotals work as specified, regardless of what you wrote in parts (a) and (b). You must use glassTotals appropriately to receive full credit. Complete method numpassing below. /** Returns aum for the total number of rows in arr2D that have a total of 30 or more. */

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!