Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is all one question. DTD Ameritrade Naviance Calc BC Book Comp Sci Big Java Overview (Java Pla. Repl.it - Home AP Computer Science 2-D

This is all one question.
image text in transcribed
image text in transcribed
DTD Ameritrade Naviance Calc BC Book Comp Sci Big Java Overview (Java Pla. Repl.it - Home AP Computer Science 2-D Array Programming Assignment Write a program that calculates the test average for each student and the average for each test. TestScores File Create a class TestScores that has a calcStudentAverage(int row), calcTestAverage(), and calcCurvedAverage( ). There should be a default constructor and a constructor that has a 2-D array of test scores as a parameter. The class should contain one instance field, the array of test scores. calcCurvedAverage() - If every test score increases from the last test score for the entire quarter, the student earns the highest/last test score for his/her test average for the quarter. Otherwise, the average (mean) is calculated by calling the calcStudentAverage(int row). The calcStudentAverage(int row) method will return the average of one student's test scores. The calcCurvedAverage() method will return a 1D array of student test averages. The calcTestAverage() method returns a 10 array of test averages. Navince CBC BC BOOK Comp Sci Big Java Overview (Java Pla.. Replit - Home TestScoresTester File Your program will create and assign the 2-D array of test scores in the test/client file called TestScoresTester. Each row represents the test scores for a single student and each column represents test scores for the same test. Pass the array of test scores to the class through the constructor. Call the calcCurvedAverage) and calcTestAveragel ) methods in the test file. Use the returned values and the original array to create the output. Examples of 2-D Arrays: int[]] tests = {(80,90,100), 188, 98, 87). 178, 89, 92).........): int[] tests = [192, 84). 179, 85). (85, 90) ..........); Example of Output Test Averages Test 1 Test 2 Test 3 Average Student #1 80 70 90 80 Student #2 78 88 98 98 Student #3 75 85 80 80 Test Average 77 81 89 Your program should output the test average for each student and the average for each test. The output should be organized in a format that is easy to interpret

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions