

This must be coded in a manner similar to the printSections method in the MySQLandJDBC notes however, you should indent the column headings and column data four spaces to improve readability. Make certain you check for null values where appropriate and print "-". Create a printCustomers(title, resultSet) instance method which prints the title, a column heading, and the data for each tuple. Please, remember that this is a Maven project, which, as explained in class, will be in charge of obtaining all dependencies. Open the project in Intellij (or you can make it work in another environment by importing the different classes).
SQLITESTUDIO CONNECTION ZIP FILE
Download the zip file attached in the folder of the problem statement. Make sure you exit from the SQLiteStudio app to avoid that the database file has only access. The first rental should use 200.00 Increase the amount by 10.00 for each of the rentals (i.e., use 200, 210, 220). (You will need to use String and setString, instead of Date) Parameter 4 to a totalCost using set Double. Assuming i is your counter variable in the for. Set the substitution parameters as follows: Parameter 1 to 1999. Use a Java for statement to iterate through the strPropertyIdMarray until a value of "END" is encountered. This should be done outside the for statement of the next step. Create a prepare Statement which does an insert into Rental using substitution parameters for each attribute. Display updated values Peace Use statement to get the customers (as was done in step a.) and printCustomers("Customers after I was added", resultSet). Use the default case, since it is possible that the numbers for MySQL could differ than the ones for SQLite. Show a message that it was not possible to be inserted as "Error inserting customer:" + customerNumber.

catch to print an error if there was a duplicate as was done in our notes Example #14.
SQLITESTUDIO CONNECTION UPDATE
SQLITESTUDIO CONNECTION CODE
P3Program.java contains your java source code which uses jdbc. P3Main.java contains a static main method for invoking your P3Program connecting to the database that you should have filled as explained below.

Two of them are partially coded: MySqlUtility.java java code which can print the result set and meta data. You should notice that it has already coded the following classes. Source Directory Download the compressed file under the name "Pgm3.zip". Use JDBC to connect your Java program to your database and perform a variety of select, insert, update, and delete operations Download your empty database with right click and save as using the following link.o Populate each of those tables using SQL scripts

o Create an additional index on the Rental table. In this assignment, you will use SQLiteStudio and JDBC: Use SQLite Studio utility (if you haven't already done it): o Connect to your database o create the property, Customer, and Rental tables in your database using SQL scripts.
