// Framework File for COP 3330 Program #4
// Note: This must be filled in by the student and most of the code is here.

import java.util.*;

class Inventory {

	final public static int TOTAL_ROWS = 26;
	final public static int REGION_ROWS = 13;
	final public static int REGION_COLS = 20;

	private Ticket[][] seats;
	private boolean[][] sold;
	private int numColSections;
	private int numRegions;
	private int numSold;
	private int totalRevenue;
	
	// Pre-condition: The dimension of prices is 2 by n, corresponding to an arena with
	//                26 rows and 20n seats, with sections numbered 1 to 2n. The first
	//                n sections are rows A-M, and the last n sections are rows N-Z.
	//                prices[i][j] is the initial cost of every ticket in section n*i+j+1.
	// Post-condition: Initializes the inventory to be 26 rows and 20n columns of tickets,
	//                 set to the price indicated in the prices array, and setting no
	//                 tickets as sold.
	public Inventory(int[][] prices) {
	
		/*** Fill in code. ***/
	}
	
	// Returns the current number of total tickets sold in the inventory.
	public int getNumSold() {
		/*** Fill in code. ***/
	}
	
	// Returns the total revenue collected from the original ticket sales.
	public int getTotalRevenue() {
		/*** Fill in code. ***/
	}
	
	// Returns the number of available seats in the section with number secNum.
	// Note: if an invalid section number is given, 0 should be returned automatically.
	public int numAvailable(int secNum) {
	
		/*** Fill in code. ***/

	}
	
	// Returns true iff we can buy numTickets tickets from region number region.
	// Note: Should return false if numTickets < 0.
	public boolean canBuy(int region, int numTickets) {

		/*** Fill in code. ***/

	}
	
	// Pre-condition: Should only be called if numTickets number of tickets can be bought from
	//                the region with the region number region.
	// Post-condition: Executes the purchase, marking numTickets tickets (in the order described
	//                 in program 3) as sold in section with the number secNum. For each ticket
	//                 sold, a single line should be printed with the String representation of
	//                 a Ticket object. Use the sample input/output to determine this representation.
	public void buySeats(int secNum, int numTickets) {
	
		/*** Fill in code. ***/
		
	}
	
	// Returns a String representation of the current object.
	// Note: This is the full string that gets printed for option #2, including the header
	//       "Here is the current seating chart:" and all of the newlines.
	public String toString() {
		
		/*** Fill in code. ***/
		
	}
}