Submit the dataEntry . java file along with the tables created inside MySQL (as
ID: 3600323 • Letter: S
Question
Submit the dataEntry.java file along with the tables created inside MySQL (as a .csv file) in a single .zip file.
Install JDBC and Eclipse. 10 points.
(INSERT data into the database) Use the attached schema to implement the corresponding tables.
Foreign keys are omitted, but you are expected to identify and implement them correctly.
Populate the database using the uploaded data files.
Here are the data files for the assignment. You can download it from my google drive:
https://drive.google.com/drive/folders/0BycHCqxSw_g9dVVra3VpR1VTcHc?usp=sharing
Plavers plaver id tagreal name nationality birthday game race Teams team id name founded disbanded Members player team start date end date Tournaments tournament id name region major Matches match id date tournament playerA playerB scoreA scoreB offline Earnings tournamentplayer prize money positionExplanation / Answer
include "FlashDrive.h"
using namespace std;
using namespace cs52;
void main( )
{
cs52::FlashDrive drive1( 10, 0, false );
cs52::FlashDrive drive2( 20, 0, false );
drive1.plugIn( );
drive1.formatDrive( );
drive1.writeData( 5 );
drive1.pullOut( );
drive2.plugIn( );
drive2.formatDrive( );
drive2.writeData( 1 );
drive2.pullOut( );
cs52::FlashDrive combined = drive1 + drive2;
cout << "this drive's filled to " << combined.getUsed( ) << endl;
cs52::FlashDrive other = combined – drive1;
cout << "the other cup's filled to " << other.getUsed( ) << endl;
if (combined > other) {
cout << "looks like combined is bigger..." << endl;
}
else {
cout << "looks like other is bigger..." << endl;
}
if (drive2 > other) {
cout << "looks like drive2 is bigger..." << endl;
}
else {
cout << "looks like other is bigger..." << endl;
}
if (drive2 < drive1) {
cout << "looks like drive2 is smaller..." << endl;
}
else {
cout << "looks like drive1 is smaller..." << endl;
}
}