Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started