Question: import java.util.*; /** * Code for Problem 1 of HW2 * @author */ public class ArraySum { /** Gets the sum of the numbers in

import java.util.*;
/**
* Code for Problem 1 of HW2
* @author
*/
public class ArraySum {
/**
Gets the sum of the numbers in "dataset".
@return sum of the numbers
*/
public int getSum(ArrayList
// COMPLETE THIS METHOD
}
/**
Gets the sum of the positive numbers in "dataset".
@return sum of the positive numbers
*/
public int getSumPositive(ArrayList
// COMPLETE THIS METHOD
}
/**
Gets the maximum value in the array list "dataset".
@return maximum value of "dataset"
*/
public int getMaximum(ArrayList
{
// COMPLETE THIS METHOD
}
}
Appendix A: Scanned Textbook Problems - P7.7 A theater seating chatt is implemented as a two-dimensional array of ticket prices, like this 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 20 20 20 20 20 20 10 10 10 10 20 20 20 20 20 20 10 10 10 10 20 20 20 20 20 20 10 10 20 20 30 30 40 40 30 30 20 20 20 30 30 40 50 50 40 30 30 20 30 40 50 50 50 50 50 50 40 30 Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available. When a user specifies a price, find any seat with that price
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
