Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modify the design and code an updated version of the Review Project to be a program that will process information for some of the top
Modify the design and code an updated version of the Review Project to be a program that will process information for some of the top indoor arenas in the United States using JavaDB with PostgreSQL. Arena profiles contain information about the venue, as well as current major Tenant sports team that plays home games in the indoor arena. Arena profiles will be read from the text file IndoorArenas.txt Download the attached text file.
Instructions
The Arena class will need to be updated to include an accessor that returns the aggregate Tenant field. The Tenant class will remain unmodified from the Review Project.
Demonstrate your design in a demo program that will use loops to read the Arena information from the text file using the same functionality as the Review Project except for the ArrayLists which will be replaced by doing the steps in the next instruction.
The demo program will also include methods that will do the following:
Create a database named ArenasDB
ArenasDB will contain a table named Arenas that will have the following fields and properties:
Venue CHAR Primary Key
City CHAR
State CHAR
MaxCapacity INT
YearOpened INT
TeamName CHAR
Sport CHAR
League CHAR
Each line of the IndoorArenas.txt file will be used to create an instance of an Arena object, and the information from the instance of that object will be used to create the Rows of the Arenas table
Define a method that will be used to drop existing Arenas tables on each execution of the program
Define a method that will use SQL statements to display all of the rows and columns of the Arenas table to the console See Sample output section in this document
You must use objectoriented principles in this project. All data in the Arena and Tenants classes should remain encapsulated.
Once again, The IndoorArenas.txt file should not be edited. Your program should be able to process the text file as is
Be sure to throw FileNotFoundExceptions on any method that uses the IndoorArenas.txt file, and use trycatch blocks to catch any SQL Exceptions within methods
A separate driver program must be used to demonstrate your classes. Demo code must not be added to the Arena andor Tenant classes.
Document your source code with single and multiline comments
Sample Run of the Program:Modify the design and code an updated version of the Review Project to be a program that will process information for some of the top indoor arenas in the United States using JavaDB with PostgreSQL. Arena profiles contain information about the venue, as well as current major Tenant sports team that plays home games in the indoor arena. Arena profiles will be read from the text file IndoorArenas.txt Download the attached text file.
Instructions
The Arena class will need to be updated to include an accessor that returns the aggregate Tenant field. The Tenant class will remain unmodified from the Review Project.
Demonstrate your design in a demo program that will use loops to read the Arena information from the text file using the same functionality as the Review Project except for the ArrayLists which will be replaced by doing the steps in the next instruction.
The demo program will also include methods that will do the following:
Create a database named ArenasDB
ArenasDB will contain a table named Arenas that will have the following fields and properties:
Venue CHAR Primary Key
City CHAR
State CHAR
MaxCapacity INT
YearOpened INT
TeamName CHAR
Sport CHAR
League CHAR
Each line of the IndoorArenas.txt file will be used to create an instance of an Arena object, and the information from the instance of that object will be used to create the Rows of the Arenas table
Define a method that will be used to drop existing Arenas tables on each execution of the program
Define a method that will use SQL statements to display all of the rows and columns of the Arenas table to the console See Sample output section in this document
You must use objectoriented principles in this project. All data in the Arena and Tenants classes should remain encapsulated.
Once again, The IndoorArenas.txt file should not be edited. Your program should be able to process the text file as is
Be sure to throw FileNotFoundExceptions on any method that uses the IndoorArenas.txt file, and use trycatch blocks to catch any SQL Exceptions within methods
A separate driver program must be used to demonstrate your classes. Demo code must not be added to the Arena andor Tenant classes.
Document your source code with single and multiline comments
Sample Run of the Program:
INDOORARENA.TXT ATTACHED BELOW:
The Palace of Auburn Hills
Auburn Hills
Michigan
Detroit Pistons
Basketball
NBA
United Center
Chicago
Illinois
Chicago Bulls
Basketball
NBA
BB&T Center
Sunrise
Florida
Florida Panthers
Hockey
NHL
Scottrade Center
St Louis
Missouri
St
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