Question: Any help appreciated. Needs to be done in Java please. A new Stadium has just opened and needs a system for selling tickets for the

Any help appreciated. Needs to be done in Java please.

Any help appreciated. Needs to be done in Java please. A new

"Stadium" has just opened and needs a system for selling tickets for

the NBA playoffs. You will be given some files which must be

used to design such a system. The Model: Each seat in the

stadium is identified by 3 pieces of identifcation as follows: the section

A new "Stadium" has just opened and needs a system for selling tickets for the NBA playoffs. You will be given some files which must be used to design such a system. The Model: Each seat in the stadium is identified by 3 pieces of identifcation as follows: the section number (1- 4), the row letter (A to Z) and the seat number within the row and section (1 to 9). A seat must be identified by all three pieces of information. The stadium is essentially arranged as a grid (i.e., two dimensional array) containing seats. The grid is fixed at 35 rows by 27 columns in size (i.e., use static variables for the size). Not all of the locations in the grid represent seats. Some of the locations represent aisles and the rink itself. The seat costs are as follows: section 1 = $74, section 2 = $47 section 3 $32 and section 4- $19 Get the following text files from the webpage: "sections.txt", "rows.txt" and "numbers.txt". The "sections.txt" file contains a layout of characters representing the section numbers for all seats Notice that some characters are spaces, dashes or vertical bars. These are aisle and rink locations and so they do not contain seats. The "rows.txt" file contains a similarly laid out set of characters representing the row letters. The "numbers.txt" file contains yet another arrangement of numbers representing the seat numbers. Note that the files are merely stored as characters Create a Seat class to represent each seat (with at least section, row and number instance variables) Create a Stadium class as well to represent the stadium which should maintain a 2 dimensional array of Seat objects. When a Stadium is created (ie., in the constructor), it should read in the three text files and build up the Seat information according to the information in the files. That is, for each of the 35 x 27 characters, you'll have to create a Seat object and set its instance variables to the A new "Stadium" has just opened and needs a system for selling tickets for the NBA playoffs. You will be given some files which must be used to design such a system. The Model: Each seat in the stadium is identified by 3 pieces of identifcation as follows: the section number (1- 4), the row letter (A to Z) and the seat number within the row and section (1 to 9). A seat must be identified by all three pieces of information. The stadium is essentially arranged as a grid (i.e., two dimensional array) containing seats. The grid is fixed at 35 rows by 27 columns in size (i.e., use static variables for the size). Not all of the locations in the grid represent seats. Some of the locations represent aisles and the rink itself. The seat costs are as follows: section 1 = $74, section 2 = $47 section 3 $32 and section 4- $19 Get the following text files from the webpage: "sections.txt", "rows.txt" and "numbers.txt". The "sections.txt" file contains a layout of characters representing the section numbers for all seats Notice that some characters are spaces, dashes or vertical bars. These are aisle and rink locations and so they do not contain seats. The "rows.txt" file contains a similarly laid out set of characters representing the row letters. The "numbers.txt" file contains yet another arrangement of numbers representing the seat numbers. Note that the files are merely stored as characters Create a Seat class to represent each seat (with at least section, row and number instance variables) Create a Stadium class as well to represent the stadium which should maintain a 2 dimensional array of Seat objects. When a Stadium is created (ie., in the constructor), it should read in the three text files and build up the Seat information according to the information in the files. That is, for each of the 35 x 27 characters, you'll have to create a Seat object and set its instance variables to the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!