The University of Western Ontario s1

The University of Western Ontario s1

<p> THE UNIVERSITY OF WESTERN ONTARIO FACULTY OF ENGINEERING DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING</p><p>SE352b Software Engineers Design Tools Winter 2006</p><p>Lab Tutorial # 4</p><p>How to get credit for this lab 1. This lab needs to be completed during the lab sessions on Mar. 15th, Mar.22th, and Mar. 29th. 2. For problem 1, demo the Java program to TA. 3. For problem 2, submit a one page report explaining your observations. 4. For problem 3, demo the C or C++ program to TA.</p><p>Notes: 1. You may use MS Access as your data base. 2. For problem 1, your program needs to use Java JDBC APIs for accessing the database. 3. For problem 3, your program must talk directly to the Microsoft ODBC to access the Access DB. You may find the following links helpful. http://www.coding-zone.co.uk/cpp/articles/090101accessodbc.shtml http://www.northbound-train.com/perl/article/Article.html http://www.ocelot.ca/magazine.htm http://java.sun.com/docs/books/tutorial/jdbc/index.html</p><p>Problem 1: Develop a Java program: a) Create the following tables in a local MS Access database. Populate the tables with data. b) Create and display two views:</p><p>View 1: Column list includes Course Number, Course Name and Credit, where each course’s lecture hours are less than 35 hours. View 2: Column list includes Course Number, Lecture Hours, and Faculty. </p><p>Course Table Course Number Course Name Credit CS1303 Intro to Computer Science 3 CS 3320 Data Structure 4 MATH 325 Optimization 3 Economics 151 Microeconomics 2 Instructor Table Instructor ID Instructor Name Faculty C101 King Computer Science M102 Anderson Math E103 Stone Economics</p><p>Instructor and Course Table Instructor ID Course Number Lecture Hours C101 CS1303 36 C101 CS 3320 34 M102 MATH 325 33 E103 Economics 151 30</p><p>Problem 2: Try the following two scenarios using SQL statements, and explain the results in each step using transaction concepts in lecture notes. Scenario 1:  SELECT the Credit of Course CS1303  UPDATE the Credit of Course CS1303 to 2  SELECT the Credit of Course CS1303  COMMIT (Can you hear a clunk from your hard disk, why?)  SELECT the Credit of Course CS1303 Scenario 2:  SELECT the Credit of Course CS1303  UPDATE the Credit of Course CS1303 to 5  SELECT the Credit of Course CS1303  ROLLBACK  SELECT the Credit of Course CS1303</p><p>Problem 3: Develop a C or C++ program that creates the Course Table in problem 1. You need to program to ODBC APIs directly. </p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us