Question: java netbean, just need this segment of code minus part 5 1. Create a private method called calculateTotal, that will take an int array as

java netbean, just need this segment of code
java netbean, just need this segment of code minus part 5 1.
Create a private method called calculateTotal, that will take an int array
minus part 5

1. Create a private method called calculateTotal, that will take an int array as input and return an int as total for all numbers in the array private int calculateTotal(int[] scores) { -- } ii. Create another private method called determineletter Grade, that will take a double as average score and return a char as letter grade. private char determineletter Grade(double avgScore) {} Let's can use the same criteria as lab3 Above (include) 90: A| Above (include) 80: B Above (include) 70: C Below (not include) 70: F i Now let's add one public method to reportGradeForLabs public void reportGrade Fortabal} This method will I + Call calculate Total method to get the total score for labs + Calculate average lab score by using the total score and the length of labScores array + Call determineletterGrade method to get the letter grade for labs. + Print out the average score and the letter grade for lab. iv. Add another public method to reportGrade ForExams public void reportGrade ForExams() {...} This method will do the same as reportGradeForLabs, but use the int array for exams (examScores) for the calculation. V Now let's get rid of the old reportAverageScoreAndGradeForLabs method

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!