How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask TheDoctor Your Own Question

TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1485
Experience:  M.S. in Internet Information Systems
59032869
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

Assignment 4 Chapter 13: Exercise 13.1 p.610 Exercise

Resolved Question:

Assignment 4

Chapter 13:
Exercise 13.1 p.610
Exercise 13.2 p. 610
Exercise 13.3 p. 610
Exercise 13.8 p. 610

13.1 Use MySQL to create a database of information about used trucks for sale, similar to the cars database used in this chapter. Make up equipment that characterizes trucks. Get the raw data from the ad section of your local newspaper. Instead of using the states in the cars database, divide your town into four sections and use them.

13.2 Modify and test the program access_cars.php to handle UPDATE and INSERT SQL commands, as well as SELECT .

13.3 Modify and test the program JDBCServlet.java to handle UPDATE and INSERT SQL commands, as well as SELECT .

13.8 Write and test an ASP.NET source document and code-behind file that together request a name of a table in a database from the user and return the number of rows in the table.

Chapter 14:
Exercise 14.3 p. 653
Exercise 14.6 p. 653

14.3 Write, test, and debug (if necessary) a Ruby program with the following specification:
Input: Three names, on separate lines, from the keyboard.
Output: The input names in alphabetical order. Do not use arrays.

14.6 Write, test, and debug (if necessary) a Ruby program with the following specification
Input: A list of numbers from the keyboard.
Output: The median of the input numbers.

Chapter 15
Exercise 15.4 p. 685
Exercise 15.5 p. 685

**15.4 Build a simple Rails application that returns a static document to a requesting browser, where the static document is a brief description of you.

15.5 Build a Rails application that accepts two integer values, produces the product of the two values, and returns the product to the client.

I also will need to submit screen shots of the working code.
Submitted: 1 year ago.
Category: Homework
Expert:  TheDoctor replied 1 year ago.
Hello again! Thank you for requesting me.

I will contact you once this is complete.

Thank you
Expert:  TheDoctor replied 1 year ago.
Hello again!

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).

Go here 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:

bundle install

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:

rail s

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:

localhost:3000/describe/bryant

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

bundle install

Just to make certain all requirements are instaleld. Then run:

rails s

Then you can test this one by going to:

localhost:3000/multiply/numbers

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!
Expert:  TheDoctor replied 1 year ago.
Hello again!

I realize that this was a ton of instructions. It was also a ton of work. If you have difficulty testing anything, let me know and I will do my best to help you.

Please remember to rate my answer. Thank you again!
Customer: replied 1 year ago.


Hey thanks again for all your work great job once again! side note do you do web design like on a website?

Expert:  TheDoctor replied 1 year ago.
Hello again,

I do web development and have worked on many different web sites. I am not permitted to list any of them. However, if you require assistance, you can certainly enter a new question, remembering to start it with **For TheDoctor**

Please remember to rate my answer. Thank you.
Customer: replied 1 year ago.

ok thanks so if I ask for you to do some website edits I can do it through here? I would just have to give you the server info and what needs to be done?


 

Expert:  TheDoctor replied 1 year ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1485
Experience: M.S. in Internet Information Systems
TheDoctor and 8 other Homework Specialists are ready to help you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience
 
 
 

Related Homework Questions