You can download the completed assignments here:
Most of these are not very straight-forward to run on your system. The 13.1 is simple. It is just a SQL file full of the SQL for that assignment.
The PHP assignment (13.2) is also pretty straight-forward. You run it just like you would a normal PHP program. It connects to the "cars" database. If you do not already have the cars database set up, here is an SQL file to create it:
In the PHP, Java, and ASP assignments, I have the the credentials set up as "localhost" "root" and an empty password. This is the default for WAMP or XAMPP. If your system is set up differently, you will need to change the connection strings in those projects.
For the JDBC project (13.3), if you are using NetBeans, then you should do a project import. Choose to import an existing Eclipse Project. Select the radio button for importing a project rather than a workspace. Then you just select the 13.3 folde ran dimport the project.
Whether you are using Netbeans or Eclipse, you will need to make certain that your web server has access to the MySQL JDBC driver. I have included it in the lib folder, which inside of WebContent -> WEB-INF. If you are using Apache Tomcat, you should copy this JAR file and then paste it into the lib folder of your Apache installation.
If you are using Glassfish as your server, you may not need to copy the JAR file over.
If you do not successfully make the JAR file (driver) available to the web server, you will receive an error about not being able to find a driver. This should not be a concern when turning in the project, as your instructor will already have the server set up correctly. This is just a concern while you are testing on your local system.
For the ASP project, you must have the MySQL ODBC Driver installed on your computer for it to work. You can go here
to download the connector. I would recommend that you install both the 64bit and 32bit versions because sometimes the 64bit version does not play well with other software. Make sure you download version 3.51.30, as this is the version used in the code for the ASP project. Once you have successfully installed the ODBC driver, it will run just like any ASP project.
Keep in mind that both the JDBC and the ASP projects are connecting to your MySQL server. So make certain that you keep your WAMP or XAMPP running when testing these, and make sure that the database connection credentials are correct for your system. They are currently set to "localhost", user "root", and no password XXXXX connecting to a database called cars.
Now for the Ruby and Rails projects. You may have attempted to download some stuff based on text book instructions for this. For windows, there is a much easier installation option that will work (whereas the books instructions will likely not work for you).
and download Rails FTW. It is the first download option. When installing, make sure all three checkboxes are checked. One great thing is that this will add ruby and rails to your system path so that you can use it on the command line.
One this is installed, you can test 14.3 and 14.6
You simply go to the folder on the command line (CMD) and type in ruby filename.rb where filename is XXXXX XXXXX of the file. It will run the these two ruby projects.
Rails is more involved. Now that you have Rails FTW installed, you must install the Development Kit. You can download it here
After you have downloaded the development kit, run it. It will ask you to extract the file to a directory. Select a directory where they have no chance of ever being deleted because you will need them.
After the extraction is done, bo back to command line (type CMD into the search dialog in the start menu or search tool in widows 8, and press enter).
Navigate to the directory where you extracted the dev kit files.
first run this line:
ruby dk.rb init
then run this line:
ruby dk.rb install
Once that is done, you are ready to run rails.
To do that, you need to navigate to the project folder for each project. First, navigate into the 15.4/describeBryant folder. Once you are in that folder, run the command:
This command will make sure that all libraries are installed on your system to run this project.
When that process finishes, you will need to run:
This starts the WebBrick web server, which is the web server for rails. It runs on port 3000. So you can now test this project by going to:
Once you have viewed that, go back to the command line and press CTRL-C to stop the rails server. Then navigate to the second project in 15.5/bryant155
Once again, run
Just to make certain all requirements are instaleld. Then run:
Then you can test this one by going to:
Enter numbers and press enter and you will get the product.
Sorry for the tons of instructions. However, running JDBC, ODBC, and Rails is much more involved then simply opening a project. You must get your environment set up correctly. Alternatively, you can simply turn in the code that I have provided you. I assure you that it is all functional and meets the requirements.
Let me know if you have any issues. I'm here to help.
Please remember to rate my answer. Thank you so much!