Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please complete lab 14, I included lab 13 so you can use it to complete lab 14. thank you. Here is the lab 13 code
Please complete lab 14, I included lab 13 so you can use it to complete lab 14. thank you.
Here is the lab 13 code for reference. if needed can be used to write new code with the added requirements of 14.
Lab 13 code
import java.util.*;
class Test { public static void main (String[] args) { String[] name = new String[4]; double[][] grade = new double[4][3]; getGrades(name,grade); displayGrades(name,grade); } public static void getGrades(String[] name,double[][] grade) { Scanner input = new Scanner(System.in); for(int i=0;i
Appleton Baker Closer Demsey Test #1 92 63 89 90 Test #2 88 73 0 89 Test #3 72 57 92 100 Average Your code will calculate & show this Column. LAB 13 Your COMPLETE program must meet the following basic requirements: Write the JAVA code that declares an array to store 4 student's last names. Write the JAVA code that declares an array to store each student's 3 test grades. Has the following 3 methods Method Name Description 1 getGrades Reads data from keyboard and stores the values in the designated arrays: 1) students and 2) grades Enter student 1 name: Appleton Enter Appleton test 1 grade: 92 Enter Appleton test 2 grade: 88 Enter Appleton test 3 grade: 72 2 displayGrades displays the gradebook on the screen, which should include their name, test grades for each test and test average (example: Appleton 92.0 88.0 72.0 84.00) * In main.... // declare 2 arrays (note I will let you figure this out) getGrades(students,grades); displayGrades(students,grades); LAB Test #1 Appleton 92 Baker 63 Closer 89 Demsey 90 Test Averages 83.50 Test #2 88 73 0 89 Test #3 72 57 92 100 80.25 Average Your code will calculate & show this Column. 75.41 14 62.50 MODIFY Lab 13 and add the following basic requirements: If needed, change the declaration of both arrays to include an extra row. This row will store the Test Averages Store the value "Test Averages in 'students' array. (Example - students[4] = "Test Averages"; ) Update the displayGrades' method to show the last row/Test Averages (highlighted in yellow above). Add a method "compute TestAverages which computes and stores the test average for each test (highlighted in yellow above). Run your program and show that the all the above has been updated and/or added. Method Name Description 1 computeTestAverages NEW METHOD computes and stores the test average for each test, in the last row of the grades' 2D array (highlighted in yellow above) 2 displayGrades EDIT METHOD to show the last row/Test Averages (highlighted in yellow above). * In main.... // declare 2 arrays (note I will let you figure this out) getGrades(students,grades); computeTestAverages(grades); displayGrades(students,grades)
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