SW-Con 1 Solutions Updated 
SW-Construction 1 (Object Oriented Programming)
2. Semester: International Datamatician Course (Advanced Computer Studies)
 
Solutions Links to examples and exercises

 
Keyboard
KeyIn

CalendarCalculator

Library2007.zip


The keyboard class. Save in working folder compile! 
The KeyIn class for graphic I/O using JOptionPane

Calculates todays date. Uses Calendar and java.sql.Date.
Library with borrower collection and handlers


Library2007 VS. 3.0.zip Library with borrower collection, handlers and filing
Leonardo.zip Iterative and recursive calculation of Leonardo numbers
Leonardo with static medthods
Exception class for Leonardo class
Leonardo throwing exception

Library2007 VS. 4.0.zip

Library with borrowers, adults, children
BorrowerSpecialisationGUI for the 3 kind of borrowers
Sub class AdultBorrower
Sub class ChildBorrower

Normal.zip

Stack using ArrayList
Stack using LinkedList
GUI for stacking Strings
Comparator.zip New Borrower implements Comparable
3 different implementations of Comparator
Test class with sorting

Library2007 VS. 5.0.zip

Library with borrowers, adults, children and items
New classes: ItemcatalogGUI, ItemCatalog, Item

TMC_Ping
TMC_PingPong
Thread Ping class
Ping and Pong classes extending Thread
Library2007 VS. 6.0.zip
Library with borrowers, adults, children and items
New classes: super GUI class LibraryGUI
LendHandler A handler class facade to LendCollection
Library2007 VS. 7.0.zip Library with borrowers, adults, children and items
New classes: Lend, LendCollection, LendGUI
   

Video.sql

SQL-semtences for create, inser/update/searchi Video

Hotel_DDL.sql
HotelDML.sql
Hotel_Select.sql
SQL-sentences for creating HotelDB
SQL-sentences for inserting/updating HotelDB
selct-sentences for HotelDB
   

HotelAdm
HotelInsertQuery

Java program for estanlishing connection to a DB
Java program for SQL-statements
   
Borrower.zip Borrower class: extra constructor and 
toDBString for insert
toDBUpdateString for update
LibraryDB Vs. 1.0 2007.zip Library DB with Borrower, lend and item Tables
SQL-scripts and Java application programs

LibraryOODesign Vs.1.0
LibraryOODesign Vs.1.1
Library DB Diagram Vs 1.0
Library RDB Forms
Library OOD to RDB

Library lend design model diagram first version 1.0
Library lend design model diagram second version 1.1
Library Database model diagram version 1.0
Lirbary RDB Forms filled out. Result of class discussion.
Library considerations on implementation in RDB Result of class discussion

DMC_Library
DMC_Connector
CMC_BorrowerSQL
LibraryCMCBorrower
CMC_FindLateLends
LibraryCMCLend

LibraryDB Vs. 2.0 2007.zip

Special database facade class to Library Database
Super class to all CMC-classes. Uses DMC_Library.
Controller class for standard sql-sentences on Borrower table.
Application class utilising CMC_BorrowerSQL
Controller class for a special sql-sentence on Lend Table
Application class utilising CMC_FindlateLends 

All LibraryGUI on RDB with CMC-classes and DBFacade Classes

DMC_LibrarySingleton
CMC_BorrowerSingleSQL
LibraryCMCBorrowerSingle

LibraryDB Vs. 2.0 2007.zip

Special database Singleton facade class to Library Database.
Controller class for standard sql-sentences on Borrower table.
Application class utilising CMC_BorrowerSingleSQL

All LibraryGUI on RDB with CMC-classes and DBFacade Classes

Trial Exam 1
Assignment 1
Assignment 2AB
Assignment 2CD
Assignment 3
Assignment 4
Assignment 5ABCD
Assignment 6
The text of the exam paper
Solutions !
 
 
 
 
 
 
 
Trial Exam 2
Assignment 1
Assignment 2AB
Assignment 2CD
Assignment 3
Assignment 4
Assignment 5AB
Assignment 5CD
The text of the exam paper
Solutions !
 
 
 
 
 
 
Exam 2004 01 07 .zip file with the solutions

Michael's favourites
          Maze


Solutions acknowledged to my great students
Solution made by  by longest spanning path
Maintenance by claudius@rhs.dk