System.IO Namespace Imports System.IO
|
|
- Ἀμήνὄφις Χατζηιωάννου
- 9 χρόνια πριν
- Προβολές:
Transcript
1 System.IO Namespace Imports System.IO ίνει την δυνατότητα να δουλέψεις µε αρχεία και δεδοµένα: DriveInfo,Directory,DirectoryInfo,File,FileInfo,FileSystemObject FileStream Path StreamReader/StreamWriter Controls OpenFileDialog SaveFileDialog FolderBrowserDialog Ολα τα Dialog Control έχουν την µέθοδο ShowDialog() Επιλογή Αρχείου- OpenFileDialog Βάζοντας πάνω στην φόρµα ένα OpenFileDialog control και καλώντας την OpenFileDialog1.ShowDialog(), θα εµφανιστεί το παραπάνω παράθυρο, στο οποίο διακρίνονται δυο βασικές ιδιότητες το Filename και το φίλτρο επιλογής τύπου αρχείου (Filter). If (OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK) Then MsgBox( File name given: + OpenFileDialog1.Filename ) Τo Filename property περιέχει όλο το path. Η απάντηση στον διάλογο µπορεί νάναι της µορφής π.χ. Windows.Forms.DialogResult.OK [1]
2 Filter Property - Φίλτρο Σε ζεύγη (περιγραφή pattern), που µεταξύ τους χωρίζονται µε π.χ. Text files (*.txt) *.txt All files (*.*) *.* "Databases files (*.mdb;*.mda;*.mde) *.mdb;*.mda;*.mde" multiple pattern µε ; OpenFileDialog1.Filter = "Text files (*.txt) *.txt All files (*.*) *.*" OpenFileDialog1.FileName = "" Πολλές άλλες Properties.. Set InitialDirectory, RestoreDirectory. Εvents FileOK event HelpRequest event 1.Ανάγνωση Αρχείου ( My.Computer.FileSystem sr = New StreamReader(filename) File.OpenText My.Computer.FileSystem.OpenTextFileReader) Ανάγνωση αρχείου κειµένου Υπάρχουν διάφοροι τρόποι για ανάγνωση αρχείου, οι δύο πιο γνωστοί είναι µε την χρήση του My Namespace και του component My.Computer.FileSystem (µε µεθόδους ανάγνωσης ReadAllBytes και ReadAllText). της κλάσης StreamReader (µε µεθόδους ανάγνωσης Read, ReadLine και ReadToEnd). My.Computer.FileSystem component / ReadAllText Ολο τo κείµενο του επιλεχθέντος αρχείου µπορεί να αναγνωστεί (µε µιας) και να επιστραφεί σε ένα String που µπορεί να αντιγραφεί π.χ. µέσα σε ένα textbox control (µε ιδιότητες ScrollBars=Both, Multiline=True), όπως πιο κάτω: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_ Handles Button1.Click Dim s As String [2]
3 If (OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK) Then s = My.Computer.FileSystem.ReadAllText(OpenFileDialog1.FileName) TextBox1.Text = s MsgBox("An error occurred." & vbcrlf & ex.message) End End Sub ( ιαβάζοντας ένα text αρχείο µε το Μy.Computer.FileSystem.ReadAllText και ΟpenFileDialog ) The ReadAllText method copies the entire contents of the specified text file to a string variable or object (in this case, a string variable named s), so in terms of performance and coding time, ReadAllText is faster than reading the file one line at a time (όπως µε την ReadLine του StreamReader βλέπε πιο κάτω) (ReadAllText -> Insert Snippet / Fundamentals Collections, Data Types, File System, Math / File System Processing Drives, Folders, And Files / Read Text From A File ) The StreamReader Class / ReadΤοEnd ReadLine Imports System.IO Μέθοδοι ανάγνωσης Read, ReadLine, ReadToEnd(), διαβάζει το stream και το επιστρέφει σε µια µεταβλητή String. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_ System.EventArgs) Handles Button1.Click Dim sr As StreamReader If (OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK) Then sr = New StreamReader(OpenFileDialog1.FileName) 'sr=file.opentext(openfiledialog1.filename) 'Reads the stream from the current position to the end of the stream. TextBox3.Text = sr.readtoend() MsgBox("An error occurred." & vbcrlf & ex.message) End sr.close() End Sub ( ιαβάζοντας ένα text αρχείο µε StreamReader1.ReadToEnd και ΟpenFileDialog ) You can also use a combination of the My namespace and the StreamReader class. Dim sr As StreamReader Dim AllText, LineOfText As String sr =My.Computer.FileSystem.OpenTextFileReader(OpenFileDialog1.FileName) 'sr = File.OpenText(OpenFileDialog1.FileName) Do Until sr.endofstream 'read lines from file LineOfText = sr.readline() 'add each line to the AllText variable AllText = AllText & LineOfText & vbcrlf Loop [3]
4 TextBox1.Text = AllText 'display file sr.close() ( ιαβάζοντας ένα text αρχείο µε StreamReader1.ReadLine και ΟpenFileDialog και ΜyNamespace) Mπορείτε να χρησιµοποιήσετε το OpenFileDialog control µε την συνάρτηση FileOpen (αριθµός αρχείου, διαδροµή, κατάσταση) - αριθµός και τα LineInput, EOF και FileClose Dim All As String =, Line As String= FieOpen(1,OpenFileDialog1.FileName,OpenMode.Input) Do Until EOF(1) Line= LineInput(1) All = All & Line & vbcrlf Loop FileClose(1) ( ιαβάζοντας ένα text αρχείο µε FileOpen και ΟpenFileDialog ) µπορείτε επίσης να χρησιµοποιήσετε το OpenFileDialog control µε την συνάρτηση PrintLine Tέλος µπορείτε και να διαβάσετε ένα υπάρχον text αρχείο σας χωρίς χρήση διαλόγου OpenFileDialog: Dim lfile As String = "C:\Documents and Settings\All Users\allfiles.txt" ' Create an instance of StreamReader to read from a file. Dim SR As StreamReader = New StreamReader(lfile) Dim str As String 'Read and display the lines from the file until the end of the file Do str = SR.ReadLine If Not str = String.Empty Then ListBox1.Items.Add(str) Loop Until str Is Nothing SR.Close() MsgBox("Reading file error... " + vbcrlf + ex.message()) End ( ιαβάζοντας ένα text αρχείο µε StreamReader και εµφανίζοντας τις γραµµές του σε ένα ListBox ) Aνάθεση Ονόµατος Αρχείου- SaveFileDialog SaveFileDialog παρόµοιο µε OpenFileDialog ίνει δυνατότητα απαγόρευσης overwritings. Εvents FileOK event Private Sub SaveFileDialog1_FileOk(ByVal sender As Object, ByVal e As_ System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk If MessageBox.Show("Are you sure:", "SUR", MessageBoxButtons.YesNo) =_ Windows.Forms.DialogResult.No Then e.cancel = True End Sub HelpRequest event [4]
5 2. Σώσιµο Αρχείου ( My.Computer.FileSystem sw = New StreamWriter(filename) File.CreateText My.Computer.FileSystem.OpenTextFileWriter) Aποθήκευση αρχείου κειµένου My.Computer.FileSystem component / WriteAllText Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_ Handles Button2.Click SaveFileDialog1.Filter = "Text files (*.txt) *.txt If (SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK) Then My.Computer.FileSystem.WriteAllText(SaveFileDialog1.FileName,_ TextBox2.Text,False) End Sub ( ηµιουργώντας ένα text αρχείο µε Μy.Computer.FileSystem.WriteAllText και SaveFileDialog ) WriteAllText µε 3 παραµέτρους: 1. το όνοµα του αρχείου που επιλέγει ο χρήστης (εδώ, ο χρήστης δίνει το όνοµα του αρχείου µέσω του SaveFileDialog1). 2. από πού θα πάρει τα δεδοµένα για να τα γράψει στο αρχείο (εδώ, το Τext του TextBox2). 3. προσδιορίζει αν θα γίνει προσάρτηση στο τυχόν υπάρχον κείµενο ή όχι (append the text or overwrite the existing text - εδώ η τιµή False προσδιορίζει ότι θα γίνει overwrite the existing text). The StreamWriter Class / WriteLine StreamWriter Class παρόµοια µε τηνstreamreader Class Μέθοδοι εγγραφής, Write(String), WriteLine(String) - γράφει το string µε line terminator στο text stream. Imports System.IO ηµιουργώντας/ ιαβάζοντας ένα text αρχείο µε StreamWriter και WriteLine. /StreamReader και ReadLine Aποθήκευση στοιχείων (γραµµών) Πίνακα της βάσης σε αρχείο Dim sw As StreamWriter sw = File.CreateText(SaveFileDialog1.FileName) For Each dr As DataRow In NorthwindDataSet.Tables("Customers").Rows sw.writeline( dr("companyname").tostring ()) Next sw.close() Aνάγνωση στοιχείων από αρχείο για εισαγωγή (γραµµών) σε Πίνακα της βάσης Dim sr As StreamReader sr = File.OpenText(SaveFileDialog1.FileName) Dim P As Array Do Until sr.endofstream 'read lines from file LineOfText = sr.readline() P = strline.split(",")'split fields into Array 'εισαγωγή στον Πίνακα µε την µέθοδο του Adapter.Insert(P(0), P(1),. ) Loop sw.close() [5]
6 4.Directory Information The following examples demonstrates some of the main members of the DirectoryInfo class. Imports System.IO ' Specify the directories you want to manipulate. Dim dir As DirectoryInfo = New DirectoryInfo("c:\MyDir") ' Determine whether the directory exists. If dir.exists Then MsgBox("That path exists already.") Return 'Create the directory. dir.create() MsgBox("The directory was created successfully.") MsgBox(String.Format("Create process failed: {0}", ex.tostring())) End... ' to delete the directory. Dim dir As DirectoryInfo = New DirectoryInfo("c:\MyDir") dir.delete() MsgBox("The directory was deleted successfully.") MsgBox(String.Format("Delete process failed: {0}", ex.tostring())) End 'Directory s files (subfolders not included). Dim dir As DirectoryInfo = New DirectoryInfo("c:\Documents And Settings\All Users") If Not dir.exists Then MsgBox("Dir not found..") Else MsgBox("Dir s file ) For Each fi As FileInfo In dir.getfiles() MsgBox("Name:" + fi.name & " size:" & fi.length) Next. Μια Function που υπολογίζει το µέγεθος ενός Directory µπορεί να είναι η παρακάτω: Public Shared Function DirSize(ByVal d As DirectoryInfo) As Long Dim Size As Long = 0 ' Add file sizes. For Each fi As FileInfo In d.getfiles() Size += fi.length Next fi ' Add subdirectory sizes. For Each dir As DirectoryInfo In d.getdirectories() Size += DirSize(dir) ' ΑΝΑ ΡΟΜΗ για κάθε subfolder Next dir Return Size [6]
7 End Function 'DirSize 5.SQL s Queries USE Northwind Action queries ( INSERT,DELETE,UPDATE ) DELETE Customers WHERE Country IS NULL ExecuteNonQuery DELETE Orders WHERE OrderDate < 1/1/1998 (But you ll get an error, because you can t delete rows from the Orders table that are referenced by rows in the Order Details table) INSERT Customers (CustomerID, CompanyName) VALUES ( Cust1, Company A ) INSERT INTO SelectedProducts SELECT * FROM Products WHERE CategoryID = 4 (The INSERT INTO statement allows you to select columns from one table and insert them into another one with the same structure as the output of the selection query.note that you need not create the new table ahead of time) UPDATE Customers SET Country= United Kingdom WHERE Country = UK Aggregate/scalar queries ( SELECT COUNT(),SUM(),AVG(),MIN(),MAX() ) SELECT COUNT(CustomerID) FROM Customers WHERE Country = Germany The aggregate functions are used to summarize data from one or more tables. SELECT SUM(Quantity * UnitPrice * (1 - Discount)) FROM [Order Details] WHERE ProductID = 11 ExecuteScalar SELECT SUM(Quantity), SUM(Quantity * UnitPrice * (1 - Discount)) FROM [Order Details] WHERE ProductID = 11 Select queries ( SELECT ) SELECT DISTINCT CompanyName FROM Customers WHERE Country = Germany You can also combine multiple conditions with the AND/OR operator. ExecuteReader SELECT * FROM Products WHERE UnitPrice IS NULL SELECT CompanyName, ContactName, Country, City FROM Customers ORDER BY Country, City SELECT Orders.OrderID, [Order Details].ProductID,[Order Details].UnitPrice,[Order Details].Quantity (1 - [Order Details].Discount) AS SubTotal FROM Orders INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID (Because the Order Details table s name contains spaces, it s embedded in square brackets). SELECT CompanyName FROM Customers WHERE Country IN ( Germany, Austria, Switzerland ) SELECT OrderID, OrderDate, CompanyName FROM Orders WHERE (OrderDate BETWEEN 1/1/1997 AND 12/31/1997 ) JOIN (Left,Right, Inner) FROM (left table) LEFT JOIN (right table) ON (left table).(field) = (right table).(field) SELECT Customers.CompanyName, Orders.UnitPrice [7]
8 FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID Programming with ADO.NET ADO.NET provides two basic methods of accessing data: Stream-based data access (DataReader object) Set-based data access (DataSet Structure) 1. DataReader Submitting the data to the database with the stream-based approach, you must create the appropriate INSERT/UPDATE/DELETE statements and then execute them against the database. The client application reads the data returned by a query through the DataReader object and must store it somehow at the client. ADO.NET provides three core classes for accessing databases: the Connection, the Command, and the DataReader. The Connection Using the SQL Server 2008 DBMS - Using OleDB Server - Imports System.Data.SqlClient ή Imports System.Data.OleDb Use the Connection object to execute statements against the database and then close the connection To connect to a data source, you must specify a connection string the parameters of which might differ for each provider and data source: Dim CNstring As String CNstring = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source c:\test\northwind.mdb;" 'ή CNstring = "Data Source = localhost; Initial Catalog = Northwind; uid = user name;password = user password") (εναλλακτικά : CNstring = InputBox("Please enter a Connection String", "CN", CNstring) If CNstring.Trim = "" Then Exit Sub Dim CN As New OleDbConnection (CNstring) 'ή As New SqlConnection(CNstring) If CNstring.Trim = "" Then Exit Sub CN.Open() If CN.State = ConnectionState.Open Then MsgBox("Connected to database " & CN.Database) MsgBox("Failed to open connection " & vbcrlf & ex.message) End If CN.State = ConnectionState.Open Then CN.Close() The Command Dim SqlString As String SqlString = "UPDATE Categories SET CategoryName = 'Tralala lalo'" & " WHERE CategoryID = 3" 'MsgBox(SqlString) [8]
9 Dim CMD As New OleDbCommand(SqlString,CN) ' ή SqlCommand If CN.State = ConnectionState.Closed Then CN.Open() Dim rows As Integer = CMD.ExecuteNonQuery() If rows = 1 Then MsgBox("Table Categories updated successfully") Else MsgBox("Failed to update the Categories table") CMD.CommandText = "SELECT COUNT(*) FROM Categories" count = CMD.ExecuteScalar() MsgBox("Number of categories records: " & count.tostring()) MsgBox("Operation failed " & ex.message & " " & CN.Database) End If CN.State = ConnectionState.Open Then CN.Close() The Reader SqlString = "SELECT * FROM Categories" CMD.CommandText = SqlString If CN.State = ConnectionState.Closed Then CN.Open() Dim Reader As OleDbDataReader ' ή SqlDataReader Dim str As String Reader = CMD.ExecuteReader() While Reader.Read() ' process the current row in the result set str = Convert.ToString ( Reader.Item("CategoryName") ) & vbtab str & = Convert.ToString( Reader.Item("Description") ) & vbtab ListBox1.Items.Add(str) End While MsgBox("Operation failed " & ex.message) End If CN.State = ConnectionState.Open Then CN.Close() HasRows This is a Boolean property that specifies whether there s a result set to read data from. If the query selected no rows at all, the HasRows property will return False. FieldCount This property returns the number of columns in the current result set. Note that the DataReader object doesn t know the number of rows returned by the query. Read This method moves the pointer in front of the next row in the result set. Use this method to read the rows of the result set, usually from within a While loop GetValue If you can t be sure about the type of a column, use the GetValue method GetName Use this method to retrieve the name of a column, which must be specified by its order in the result set. IsDbNull This method returns True if the column specified by its ordinal in the current row is Null. [9]
10 2. DataSet (The process of building data-driven applications isn t complicated and to a large extent is abstracted by the Connection, Command, and DataReader classes. The problem with these classes is that they don t offer a consistent method for storing the data at the client. You can store the data in a ListBox control. You can also create an ArrayList of custom objects. The issue of storing data at the client isn t pressing when the client application is connected to the database and all updates take place in real time. As soon as the user edits a row, the row is submitted to the database and no work is lost.) To simplify the storage of data at the client, ADO.NET offers a powerful mechanism, the DataSet. The set-based approach uses the same objects as the stream-based approach behind the scenes, and it abstracts most of the grunt work required to set up a link to the database, retrieve the data, and store it in the client computer s memory. You can also create DataSets and the supporting objects with the visual tools of the IDE. You can think of the DataSet as a small database (it isn t actually) that lives in memory. The DataSet lets you copy a small section of the database at the client, work with it, and then submit the changes made at the client back to the database. Actually, it s not the DataSet that submits the changes, but a class that s used in tandem with the DataSet: the DataAdapter class. DataSets are filled with DataAdapters,which is a container for Connection and Command objects. There are two ways to create a DataSet: You can use the visual tools of Visual Studio or Create a DataSet entirely from within your code typed DataSet untyped DataSet untyped DataSet Products1.Products.Rows(0).Item( ProductName ) typed DataSet Dim productrow As Products.ProductsRow = Products1.Products.Rows(0) productrow.productname productrow.unitprice The visual tools generate a number of classes on-the-fly, such as the ProductsRow class, and expose them to your code. As soon as you enter the string productrow and the following period in the code window, you will see the members of the ProductsRow class, which include the names of the columns in the corresponding table. Dim CNstring As String CNstring = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =c:\test\northwind.mdb; " Dim CN As New OleDbConnection(CNstring) Dim DS As New DataSet Dim DACategories As New OleDbDataAdapter ' ή SqlDataAdapter Dim SqlString As String = "SELECT * FROM Categories" DACategories.SelectCommand = New OleDb.OleDbCommand(SqlString, CN) ' ή SqlClient.SqlCommand (SqlString) DACategories.Fill(DS, "Categories") Dim str As String For Each r As DataRow In DS.Tables("Categories").Rows ' process prodrow row: π.χ. γραµµή 5 -> DS.Tables("Categories").Rows(5) str = r.item("categoryname").tostring()str &= vbtab & r.item("description").tostring()listbox1.items.add(str) Next [10]
11 Eστω ότι το Dataset λέγεται NorthwindDataSet και έχει γίνει µε Visual Tools. To παρακάτω loop γράφει όλα τα CategoryNames του πίνακα Categories µέσω StreamWriter στο αρχείο µε όνοµα "onoma.txt"). Dim strwr As StreamWriter strwr = File.CreateText("c:\test\onoma.txt") Dim str As String For Each r As DataRow In NorthwindDataSet.Tables("Categories").Rows str= r ("CategoryName").ToString() strwr.writeline(str) Next strwr.close() Προσπέλαση σε ένα πίνακα του dataset: NorthwindDataSet.Tables(0) ή NorthwindDataSet.Tables ("Categories") ή NorthwindDataSet.Categories Προσπέλαση σε γραµµή πίνακα: NorthwindDataSet.Tables("Categories").Rows(5) '6 η γραµµή Προσπέλαση σε στοιχείο γραµµής πίνακα: NorthwindDataSet.Tables("Categories").Rows(5).Item(1) ή NorthwindDataSet.Tables("Categories").Rows(5).Item("CategoryName") '6 η γραµµή,categoryname Π.χ. For Each r As DataRow In NorthwindDataSet.Categories.Rows ' process Categories Row r: ' r.item("categoryname") ' r.item("description"),and so on Next Παρακάτω εισάγεται µια γραµµή στον πίνακα Categories µέσω του CategoriesTableAdapter - φυσικά αν δηµιουργεί duplicate values δεν γίνεται εισαγωγή Dim LineofText As String ="Katigoria9,Perigrafi9" Dim P As Array = LineofText.Split(",") 'P(0)="Katigoria9" P(1)="Perigrafi9" Me.CategoriesTableAdapter.Insert(P(0), P(1), Nothing) MsgBox(ex.Message()) End Aπαιτείται νέο Fill για να εµφανιστούν οι διαφορές στον client [11]
ΣΧΕΣΕΙΣ στην Northwind
Αναλυτικά ΣΧΕΣΕΙΣ στην Northwind Σχέση Πίνακας 1 Parent Table Πίνακας 2 Child Table Κey Foreign Key CategoriesProducts Categories Products CategoryID CategoryID SuppliersProducts Suppliers Products SupplierID
Lab1 Ανάπτυξη απλής εφαρµογής. Solutions, Projects, GUI, Events, Debugging.
Lab1 Ανάπτυξη απλής εφαρµογής. Solutions, Projects, GUI, Events, Debugging. Έργα : *.vbproj (1 έργο - project) Λύση : *.sol (πολλά έργα -solution) Περιβάλλον Controls Κάθε control/στοιχείο έχει ιδιότητες
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων Εξάμηνο 7 ο JDBC JDBC is a set of classes and interfaces written in Java that allows Java programs to send SQL statements to a database like Oracle JDBC
Προγραμματισμός Η/Υ. Ενότητα 12 η : Αρχεία Κειμένου. Ι. Ψαρομήλιγκος Χ. Κυτάγιας Τμήμα Λογιστικής & Χρηματοοικονομικής
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ Ανώτατο Εκπαιδευτικό Ίδρυμα Πειραιά Τεχνολογικού Τομέα Προγραμματισμός Η/Υ Ενότητα 12 η : Αρχεία Κειμένου Ι. Ψαρομήλιγκος Χ. Κυτάγιας Τμήμα Λογιστικής & Χρηματοοικονομικής Άδειες Χρήσης
Instruction Execution Times
1 C Execution Times InThisAppendix... Introduction DL330 Execution Times DL330P Execution Times DL340 Execution Times C-2 Execution Times Introduction Data Registers This appendix contains several tables
ΓΡΑΜΜΙΚΟΣ & ΔΙΚΤΥΑΚΟΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ
ΓΡΑΜΜΙΚΟΣ & ΔΙΚΤΥΑΚΟΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ Ενότητα 12: Συνοπτική Παρουσίαση Ανάπτυξης Κώδικα με το Matlab Σαμαράς Νικόλαος Άδειες Χρήσης Το παρόν εκπαιδευτικό υλικό υπόκειται σε άδειες χρήσης Creative Commons.
(C) 2010 Pearson Education, Inc. All rights reserved.
Connectionless transmission with datagrams. Connection-oriented transmission is like the telephone system You dial and are given a connection to the telephone of fthe person with whom you wish to communicate.
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Όλοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα μικρότεροι του 10000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Αν κάπου κάνετε κάποιες υποθέσεις
Εργαστήριο Δομημένος Προγραμματισμός (C#) Τμήμα Μηχανολογίας Νικόλαος Ζ. Ζάχαρης Καθηγητής Εφαρμογών
Εργαστήριο Δομημένος Προγραμματισμός (C#) Τμήμα Μηχανολογίας Νικόλαος Ζ. Ζάχαρης Καθηγητής Εφαρμογών Σκοπός Nα κατασκευάσουν πίνακες από δεδομένα. Να κατασκευάσουν συναρτήσεις με πίνακες. Να κάνουν χρήση
SOAP API. https://bulksmsn.gr. Table of Contents
SOAP API https://bulksmsn.gr Table of Contents Send SMS...2 Query SMS...3 Multiple Query SMS...4 Credits...5 Save Contact...5 Delete Contact...7 Delete Message...8 Email: sales@bulksmsn.gr, Τηλ: 211 850
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων Εξάμηνο 7 ο Oracle SQL Developer An Oracle Database stores and organizes information. Oracle SQL Developer is a tool for accessing and maintaining the data
1. ΕΛΕΓΧΟΙ ΕΓΚΥΡΟΤΗΤΑΣ ΣΕ ΜΙΑ ΦΟΡΜΑ
Αναλυτικά Data Validation FORM LEVEL VALIDATION - DATA LEVEL VALIDATION - επίπεδο φόρμας επίπεδο dataset 1. ΕΛΕΓΧΟΙ ΕΓΚΥΡΟΤΗΤΑΣ ΣΕ ΜΙΑ ΦΟΡΜΑ Έλεγχος εγκυρότητας δεδοµένων σε ένα Control της φόρµας event
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ Ανώτατο Εκπαιδευτικό Ίδρυμα Πειραιά Τεχνολογικού Τομέα. Προγραμματισμός Η/Υ
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ Ανώτατο Εκπαιδευτικό Ίδρυμα Πειραιά Τεχνολογικού Τομέα Προγραμματισμός Η/Υ Ενότητα 11 η : Αντικείμενα Παράθυρα Διαλόγου (Dialog Boxes) και το αντικείμενο για μενού MenuStrip Ι. Ψαρομήλιγκος
Πώς εκτυπώνουμε μία λίστα από εγγραφές μίας Access database
Πώς εκτυπώνουμε μία λίστα από εγγραφές μίας Access database Στο παρόν παράδειγμα, θα δούμε πώς εκτυπώνουμε έναν κατάλογο με συγκεκριμένα στοιχεία μαθητών, με γραμματοσειρά σταθερού πλάτους. Δηλαδή, θα
ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial
ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial Introduction Το Javadoc είναι ένα εργαλείο που παράγει αρχεία html (παρόμοιο με τις σελίδες στη διεύθυνση http://docs.oracle.com/javase/8/docs/api/index.html) από τα σχόλια
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook Βήμα 1: Step 1: Βρείτε το βιβλίο που θα θέλατε να αγοράσετε και πατήστε Add to Cart, για να το προσθέσετε στο καλάθι σας. Αυτόματα θα
VBA ΣΤΟ WORD. 1. Συχνά, όταν ήθελα να δώσω ένα φυλλάδιο εργασίας με ασκήσεις στους μαθητές έκανα το εξής: Version 25-7-2015 ΗΜΙΤΕΛΗΣ!!!!
VBA ΣΤΟ WORD Version 25-7-2015 ΗΜΙΤΕΛΗΣ!!!! Μου παρουσιάστηκαν δύο θέματα. 1. Συχνά, όταν ήθελα να δώσω ένα φυλλάδιο εργασίας με ασκήσεις στους μαθητές έκανα το εξής: Εγραφα σε ένα αρχείο του Word τις
Threads. Components. (Download File My.Computer.Network.DownloadFile("http://aetos.it.teithe.gr/~asidirop/ADE/_ files/list.txt", "C:\Temp\list.
Threads Imports System.Threading (Download File My.Computer.Network.DownloadFile("http://aetos.it.teithe.gr/~asidirop/ADE/_ files/list.txt", "C:\Temp\list.txt") Components Αν βάλουµε πάνω στην φόρµα ένα
Εγκατάσταση λογισμικού και αναβάθμιση συσκευής Device software installation and software upgrade
Για να ελέγξετε το λογισμικό που έχει τώρα η συσκευή κάντε κλικ Menu > Options > Device > About Device Versions. Στο πιο κάτω παράδειγμα η συσκευή έχει έκδοση λογισμικού 6.0.0.546 με πλατφόρμα 6.6.0.207.
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Αν κάπου κάνετε κάποιες υποθέσεις να αναφερθούν στη σχετική ερώτηση. Όλα τα αρχεία που αναφέρονται στα προβλήματα βρίσκονται στον ίδιο φάκελο με το εκτελέσιμο
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων Εξάμηνο 7 ο Procedures and Functions Stored procedures and functions are named blocks of code that enable you to group and organize a series of SQL and PL/SQL
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Ολοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα είναι μικρότεροι το 1000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Διάρκεια: 3,5 ώρες Καλή
Πώς εκτυπώνουμε μία λίστα εγγραφών από μία Access database (γενικός τρόπος)
Πώς εκτυπώνουμε μία λίστα εγγραφών από μία Access database (γενικός τρόπος) Το προηγούμενο tip αναφέρεται στην εκτύπωση με γραμματοσειρά σταθερού πλάτους. Στο παρόν, θα δούμε έναν γενικό τρόπο εκτύπωσης
Section 8.3 Trigonometric Equations
99 Section 8. Trigonometric Equations Objective 1: Solve Equations Involving One Trigonometric Function. In this section and the next, we will exple how to solving equations involving trigonometric functions.
EE512: Error Control Coding
EE512: Error Control Coding Solution for Assignment on Finite Fields February 16, 2007 1. (a) Addition and Multiplication tables for GF (5) and GF (7) are shown in Tables 1 and 2. + 0 1 2 3 4 0 0 1 2 3
Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά.
Διαστημικό εστιατόριο του (Μ)ΑστροΈκτορα Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά. Μόλις μια παρέα πελατών κάτσει σε ένα
CYTA Cloud Server Set Up Instructions
CYTA Cloud Server Set Up Instructions ΕΛΛΗΝΙΚΑ ENGLISH Initial Set-up Cloud Server To proceed with the initial setup of your Cloud Server first login to the Cyta CloudMarketPlace on https://cloudmarketplace.cyta.com.cy
Μdi form νέες Solution Explorer Add Windows Form. Startup form Solution Explorer Properties/Application/StartupForm. Add New Item
Μdi form Μέσα σε ένα project ( *.vbproj) µπορώ να προσθέσω µια ή περισσότερες νέες φόρµες(*.vb) από το επιθυµητό template. Αυτό µπορεί να γίνει από τον Solution Explorer µε κλικ στο όνοµα του Project και
Dynamic types, Lambda calculus machines Section and Practice Problems Apr 21 22, 2016
Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Dynamic types, Lambda calculus machines Apr 21 22, 2016 1 Dynamic types and contracts (a) To make sure you understand the
MOCϦϣΎϬϴϠϋϝϮμΤϟϢΗϊΟήϤϟ. USE northwind SELECT employeeid, lastname, firstname, title FROM employees GO
MS_SQL SERVERήϣϭϷϊΟήϣ ΓήϛάΘϟϪϨϣϑΪϬϟϦϜϟϭSQL SERVERήϣϭΡήηϊΟήϤϟάϫϦϣϑΪϬϟβϴϟ άϫϲϓγωέϯϟεύϣϯϡόϥϟέϊμϣϥ ΑΎϤϠϋSQL SERVER ήϣδαύθϝϟδτθτμϟδϙϳήτϟύα MOCϦϣΎϬϴϠϋϝϮμΤϟϢΗϊΟήϤϟ MOC 2071 ΏΔλΎΨϟήϣϭϷΡήθΑΪΒϨγϭ SELECTΔϠϤΟϡΪΨΘγΎΑϝϭΪΟϦϣΕΎϧΎϴΒϟωΎΟήΘγ
Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής
Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής Να γραφεί πρόγραμμα το οποίο δέχεται ως είσοδο μια ακολουθία S από n (n 40) ακέραιους αριθμούς και επιστρέφει ως έξοδο δύο ακολουθίες από θετικούς ακέραιους
Δημιουργία Λογαριασμού Διαχείρισης Business Telephony Create a Management Account for Business Telephony
Δημιουργία Λογαριασμού Διαχείρισης Business Telephony Create a Management Account for Business Telephony Ελληνικά Ι English 1/7 Δημιουργία Λογαριασμού Διαχείρισης Επιχειρηματικής Τηλεφωνίας μέσω της ιστοσελίδας
2 Composition. Invertible Mappings
Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan Composition. Invertible Mappings In this section we discuss two procedures for creating new mappings from old ones, namely,
department listing department name αχχουντσ ϕανε βαλικτ δδσϕηασδδη σδηφγ ασκϕηλκ τεχηνιχαλ αλαν ϕουν διξ τεχηνιχαλ ϕοην µαριανι
She selects the option. Jenny starts with the al listing. This has employees listed within She drills down through the employee. The inferred ER sttricture relates this to the redcords in the databasee
How to register an account with the Hellenic Community of Sheffield.
How to register an account with the Hellenic Community of Sheffield. (1) EN: Go to address GR: Πηγαίνετε στη διεύθυνση: http://www.helleniccommunityofsheffield.com (2) EN: At the bottom of the page, click
ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011
Διάρκεια Διαγωνισμού: 3 ώρες Απαντήστε όλες τις ερωτήσεις Μέγιστο Βάρος (20 Μονάδες) Δίνεται ένα σύνολο από N σφαιρίδια τα οποία δεν έχουν όλα το ίδιο βάρος μεταξύ τους και ένα κουτί που αντέχει μέχρι
Αρχές Τεχνολογίας Λογισμικού Εργαστήριο
Αρχές Τεχνολογίας Λογισμικού Εργαστήριο Κωδικός Μαθήματος: TP323 Ώρες Εργαστηρίου: 2/εβδομάδα (Διαφάνειες Νίκου Βιδάκη) 1 JAVA Inheritance Εβδομάδα Νο. 3 2 Προηγούμενο μάθημα (1/2) Τι είναι αντικείμενο?
Section 9.2 Polar Equations and Graphs
180 Section 9. Polar Equations and Graphs In this section, we will be graphing polar equations on a polar grid. In the first few examples, we will write the polar equation in rectangular form to help identify
derivation of the Laplacian from rectangular to spherical coordinates
derivation of the Laplacian from rectangular to spherical coordinates swapnizzle 03-03- :5:43 We begin by recognizing the familiar conversion from rectangular to spherical coordinates (note that φ is used
PortSip Softphone. Ελληνικά Ι English 1/20
PortSip Softphone Ελληνικά Ι English 1/20 1. Περιεχόμενα 2. Εγκατάσταση σε Smartphone & Tablet (Android ή ios)... 1 3. Εγκατάσταση σε ηλεκτρονικό υπολογιστή (Windows ή Mac).... 5 4. Installation in Smartphone
Αρχεία Ένα αρχείο αποτελείται από μία σειρά ομοειδών δεδομένων που ονομάζονται λογικές εγγραφές (logical record)
Διαχείριση Αρχείων Αρχεία Για να είναι δυνατή η επεξεργασία μεγάλου αριθμού δεδομένων τα δεδομένα είναι αποθηκευμένα σε ψηφιακά μέσα κατάλληλα οργανωμένα. Η αποθήκευση γίνεται σε αρχεία. Πολλά προγράμματα
Approximation of distance between locations on earth given by latitude and longitude
Approximation of distance between locations on earth given by latitude and longitude Jan Behrens 2012-12-31 In this paper we shall provide a method to approximate distances between two points on earth
Homework 3 Solutions
Homework 3 Solutions Igor Yanovsky (Math 151A TA) Problem 1: Compute the absolute error and relative error in approximations of p by p. (Use calculator!) a) p π, p 22/7; b) p π, p 3.141. Solution: For
2 η Εργαστηριακή Άσκηση
2 η Εργαστηριακή Άσκηση Σκοπός της παρούσας εργαστηριακής άσκησης είναι η δημιουργία μιας εφαρμογής client/server η οποία θα συνδέεται με μια Βάση Δεδομένων σε MSSQL Server (ή ACCESS), και θα προβάλει
Αρχεία κειμένου και η VB.NET
Αρχεία κειμένου και η VB.NET Χατζηκυριάκου Γιώργος ΑΜ:1047 1 Υπάρχει ένα χρήσιμο αντικείμενο (object) στην Visual Basic.NET που ονομάζετε System.IO. Αυτό το αντικείμενο μπορεί να χρησιμοποιηθεί για το
Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)
Phys460.nb 81 ψ n (t) is still the (same) eigenstate of H But for tdependent H. The answer is NO. 5.5.5. Solution for the tdependent Schrodinger s equation If we assume that at time t 0, the electron starts
3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β
3.4 SUM AND DIFFERENCE FORMULAS Page Theorem cos(αβ cos α cos β -sin α cos(α-β cos α cos β sin α NOTE: cos(αβ cos α cos β cos(α-β cos α -cos β Proof of cos(α-β cos α cos β sin α Let s use a unit circle
Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.
B-Trees Index files can become quite large for large main files Indices on index files are possible 3 rd -level index 2 nd -level index 1 st -level index Main file 1 The 1 st -level index consists of pairs
Κατανεμημένα Συστήματα. Javascript LCR example
Κατανεμημένα Συστήματα Javascript LCR example Javascript JavaScript All JavaScript is the scripting language of the Web. modern HTML pages are using JavaScript to add functionality, validate input, communicate
CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS
CHAPTER 5 SOLVING EQUATIONS BY ITERATIVE METHODS EXERCISE 104 Page 8 1. Find the positive root of the equation x + 3x 5 = 0, correct to 3 significant figures, using the method of bisection. Let f(x) =
Δομές Δεδομένων - Εργαστήριο 2. Λίστες
Λίστες Λίστες (Lists) : Συλλογή δεδομένων σε δυναμικά δεσμευμένους κόμβους. Κάθε κόμβος περιέχει συνδέσεις προς άλλους κόμβους. Προσπέλαση -στού κόμβου διατρέχοντας όλους τους προηγούμενους. Πολλές παραλλαγές
EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 5: Component Adaptation Environment (COPE)
EPL 603 TOPICS IN SOFTWARE ENGINEERING Lab 5: Component Adaptation Environment (COPE) Performing Static Analysis 1 Class Name: The fully qualified name of the specific class Type: The type of the class
HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:
HOMEWORK 4 Problem a For the fast loading case, we want to derive the relationship between P zz and λ z. We know that the nominal stress is expressed as: P zz = ψ λ z where λ z = λ λ z. Therefore, applying
7η Εργαστηριακή Άσκηση: Προβολή εικόνας στη φόρμα με εκτέλεση ερωτήματος.
7η Εργαστηριακή Άσκηση: Προβολή εικόνας στη φόρμα με εκτέλεση ερωτήματος. Σκοπόσ τησ εργαςτηριακήσ άςκηςησ είναι να διδαχθεί ο ςπουδαςτήσ να δημιουργεί πεδία ςε πίνακα που να περιέχουν κάποιεσ διαδρομέσ
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 11/3/2006
ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 11/3/26 Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Ολοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα μικρότεροι το 1 εκτός αν ορίζεται διαφορετικά στη διατύπωση
The Simply Typed Lambda Calculus
Type Inference Instead of writing type annotations, can we use an algorithm to infer what the type annotations should be? That depends on the type system. For simple type systems the answer is yes, and
MySQL + Γλώσσα Προγραμματισμού. Βάσεις Δεδομένων 2013-2014 Ευαγγελία Πιτουρά 1
MySQL + Γλώσσα Προγραμματισμού Ευαγγελία Πιτουρά 1 Database drivers Για να χρησιμοποιήσουμε μια βάση δεδομένων από μια γλώσσα προγραμματισμού χρειαζόμαστε έναν driver. JDBC είναι το API για τη Java και
Modbus basic setup notes for IO-Link AL1xxx Master Block
n Modbus has four tables/registers where data is stored along with their associated addresses. We will be using the holding registers from address 40001 to 49999 that are R/W 16 bit/word. Two tables that
Εργαστήριο 9. Styling with Javascript
Εργαστήριο 9 Styling with Javascript Pimp my Text with Javascript Today you'll write a page where the user can type text into a box, and by clicking on UI controls, the user can "pimp out" the text by
1. ΑΝΟΙΞΤΕ ΤΟΝ ΠΙΝΑΚΑ CUSTOMER ΚΑΙ ΣΤΟ ΜΕΝΟΥ ΕΠΙΛΕΞΤΕ
ΜΑΘΗΜΑ 6 ο ΤΑΞΙΝΟΜΗΣΗ / ΦΙΛΤΡΑΡΙΣΜΑ ΠΛΗΡΟΦΟΡΙΩΝ Α. ΤΑΞΙΝΟΜΗΣΗ ΠΛΗΡΟΦΟΡΙΩΝ 1. ΑΝΟΙΞΤΕ ΤΗ ΒΑΣΗ Ε ΟΜΕΝΩΝ ΠΟΥ ΕΧΕΤΕ ΦΤΙΑΞΕΙ ΣΤΟ ΠΡΟΗΓΟΥΜΕΝΟ ΜΑΘΗΜΑ (ΑΠΟ ΕΧΘΕΙΤΕ ΑΝ ΧΡΕΙΑΖΕΤΑΙ ΤΗΝ ΠΡΟΕΙ ΟΠΟΙΗΣΗ ΑΣΦΑΛΕΙΑΣ) 2.
10 η Διάλεξη Python Βάσεις δεδομένων στη python
10 η Διάλεξη Python Βάσεις δεδομένων στη python ΒΑΣΕΙΣ ΔΕΔΟΜΕΝΩΝ Η standard διεπαφη της python για βάσεις δεδομένων βασίζεται στο DB-API Python Database API υποστηρίζει ένα ευρύ φάσμα βάσεων δεδομένων
PARTIAL NOTES for 6.1 Trigonometric Identities
PARTIAL NOTES for 6.1 Trigonometric Identities tanθ = sinθ cosθ cotθ = cosθ sinθ BASIC IDENTITIES cscθ = 1 sinθ secθ = 1 cosθ cotθ = 1 tanθ PYTHAGOREAN IDENTITIES sin θ + cos θ =1 tan θ +1= sec θ 1 + cot
SPEEDO AQUABEAT. Specially Designed for Aquatic Athletes and Active People
SPEEDO AQUABEAT TM Specially Designed for Aquatic Athletes and Active People 1 2 Decrease Volume Increase Volume Reset EarphonesUSBJack Power Off / Rewind Power On / Fast Forward Goggle clip LED Status
Other Test Constructions: Likelihood Ratio & Bayes Tests
Other Test Constructions: Likelihood Ratio & Bayes Tests Side-Note: So far we have seen a few approaches for creating tests such as Neyman-Pearson Lemma ( most powerful tests of H 0 : θ = θ 0 vs H 1 :
Partial Trace and Partial Transpose
Partial Trace and Partial Transpose by José Luis Gómez-Muñoz http://homepage.cem.itesm.mx/lgomez/quantum/ jose.luis.gomez@itesm.mx This document is based on suggestions by Anirban Das Introduction This
Advanced Subsidiary Unit 1: Understanding and Written Response
Write your name here Surname Other names Edexcel GE entre Number andidate Number Greek dvanced Subsidiary Unit 1: Understanding and Written Response Thursday 16 May 2013 Morning Time: 2 hours 45 minutes
Math 6 SL Probability Distributions Practice Test Mark Scheme
Math 6 SL Probability Distributions Practice Test Mark Scheme. (a) Note: Award A for vertical line to right of mean, A for shading to right of their vertical line. AA N (b) evidence of recognizing symmetry
Example Sheet 3 Solutions
Example Sheet 3 Solutions. i Regular Sturm-Liouville. ii Singular Sturm-Liouville mixed boundary conditions. iii Not Sturm-Liouville ODE is not in Sturm-Liouville form. iv Regular Sturm-Liouville note
The challenges of non-stable predicates
The challenges of non-stable predicates Consider a non-stable predicate Φ encoding, say, a safety property. We want to determine whether Φ holds for our program. The challenges of non-stable predicates
Section 7.6 Double and Half Angle Formulas
09 Section 7. Double and Half Angle Fmulas To derive the double-angles fmulas, we will use the sum of two angles fmulas that we developed in the last section. We will let α θ and β θ: cos(θ) cos(θ + θ)
[1] P Q. Fig. 3.1
1 (a) Define resistance....... [1] (b) The smallest conductor within a computer processing chip can be represented as a rectangular block that is one atom high, four atoms wide and twenty atoms long. One
C.S. 430 Assignment 6, Sample Solutions
C.S. 430 Assignment 6, Sample Solutions Paul Liu November 15, 2007 Note that these are sample solutions only; in many cases there were many acceptable answers. 1 Reynolds Problem 10.1 1.1 Normal-order
Concrete Mathematics Exercises from 30 September 2016
Concrete Mathematics Exercises from 30 September 2016 Silvio Capobianco Exercise 1.7 Let H(n) = J(n + 1) J(n). Equation (1.8) tells us that H(2n) = 2, and H(2n+1) = J(2n+2) J(2n+1) = (2J(n+1) 1) (2J(n)+1)
About these lecture notes. Simply Typed λ-calculus. Types
About these lecture notes Simply Typed λ-calculus Akim Demaille akim@lrde.epita.fr EPITA École Pour l Informatique et les Techniques Avancées Many of these slides are largely inspired from Andrew D. Ker
Χρειάζεται να φέρω μαζί μου τα πρωτότυπα έγγραφα ή τα αντίγραφα; Asking if you need to provide the original documents or copies Ποια είναι τα κριτήρια
- University Θα ήθελα να εγγραφώ σε πανεπιστήμιο. Stating that you want to enroll Θα ήθελα να γραφτώ για. Stating that you want to apply for a course ένα προπτυχιακό ένα μεταπτυχιακό ένα διδακτορικό πλήρους
Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1
Eon : Fall 8 Suggested Solutions to Problem Set 8 Email questions or omments to Dan Fetter Problem. Let X be a salar with density f(x, θ) (θx + θ) [ x ] with θ. (a) Find the most powerful level α test
Γράψιμο και Διάβασμα σε φύλλο του Excel
Γράψιμο και Διάβασμα σε φύλλο του Excel Το παρακάτω παράδειγμα γράφει και διαβάζει πληροφορίες σε αρχείο του Excel (workbook). Το απλοϊκό παράδειγμά μας αφορά ένα βιβλιοπωλείο που κρατά, για κάθε βιβλίο,
ΙΚΤΥΩΤΟ ΜΟΝΤΕΛΟ (Network Model) Μαθ. # 15
ΙΚΤΥΩΤΟ ΜΟΝΤΕΛΟ (Network Model) Μαθ. # 15 DBTG Γλώσσα επεξεργασίας Σκελετός ενός προγράµµατος Βρες την εγγραφή FIND FIND...... FIND Ανάκτησε την τιµή εγγραφής στον κατάλληλο επίγραµµα τύπου GET RECORD
6.1. Dirac Equation. Hamiltonian. Dirac Eq.
6.1. Dirac Equation Ref: M.Kaku, Quantum Field Theory, Oxford Univ Press (1993) η μν = η μν = diag(1, -1, -1, -1) p 0 = p 0 p = p i = -p i p μ p μ = p 0 p 0 + p i p i = E c 2 - p 2 = (m c) 2 H = c p 2
Capacitors - Capacitance, Charge and Potential Difference
Capacitors - Capacitance, Charge and Potential Difference Capacitors store electric charge. This ability to store electric charge is known as capacitance. A simple capacitor consists of 2 parallel metal
ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?
Teko Classes IITJEE/AIEEE Maths by SUHAAG SIR, Bhopal, Ph (0755) 3 00 000 www.tekoclasses.com ANSWERSHEET (TOPIC DIFFERENTIAL CALCULUS) COLLECTION # Question Type A.Single Correct Type Q. (A) Sol least
Εργαστήριο Δομημένος Προγραμματισμός (C#) Τμήμα Μηχανολογίας Νικόλαος Ζ. Ζάχαρης Καθηγητής Εφαρμογών
Εργαστήριο Δομημένος Προγραμματισμός (C#) Τμήμα Μηχανολογίας Νικόλαος Ζ. Ζάχαρης Καθηγητής Εφαρμογών Σκοπός Nα κατασκευάσουν λίστες από δεδομένα. Να κατασκευάσουν συναρτήσεις με λίστες. Να διαβάσουν και
Numerical Analysis FMN011
Numerical Analysis FMN011 Carmen Arévalo Lund University carmen@maths.lth.se Lecture 12 Periodic data A function g has period P if g(x + P ) = g(x) Model: Trigonometric polynomial of order M T M (x) =
Τ.Ε.Ι. ΛΑΜΙΑΣ ΣΧΟΛΗ ΤΕΧΝΟΛΟΓΙΚΩΝ ΕΦΑΡΜΟΓΩΝ ΤΜΗΜΑ ΗΛΕΚΤΡΟΝΙΚΗΣ
Τ.Ε.Ι. ΛΑΜΙΑΣ ΣΧΟΛΗ ΤΕΧΝΟΛΟΓΙΚΩΝ ΕΦΑΡΜΟΓΩΝ ΤΜΗΜΑ ΗΛΕΚΤΡΟΝΙΚΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΙΙ Visual Basic Net ΣΗΜΕΙΩΣΕΙΣ ΕΡΓΑΣΤΗΡΙΟΥ Γρηγόρης Τζιάλλας ΛΑΜΙΑ 2009 Σελίδα 96 8 Σύνθετες δομές δεδομένων και Αντικείμενα
Αποθηκευμένες Διαδικασίες Stored Routines (Procedures & Functions)
Αποθηκευμένες Διαδικασίες Stored Routines (Procedures & Functions) Αυγερινός Αραμπατζής avi@ee.duth.gr www.aviarampatzis.com Βάσεις Δεδομένων Stored Procedures 1 Stored Routines (1/2) Τμήματα κώδικα τα
Congruence Classes of Invertible Matrices of Order 3 over F 2
International Journal of Algebra, Vol. 8, 24, no. 5, 239-246 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/.2988/ija.24.422 Congruence Classes of Invertible Matrices of Order 3 over F 2 Ligong An and
Πώς μπορεί κανείς να έχει έναν διερμηνέα κατά την επίσκεψή του στον Οικογενειακό του Γιατρό στο Ίσλινγκτον Getting an interpreter when you visit your
Πώς μπορεί κανείς να έχει έναν διερμηνέα κατά την επίσκεψή του στον Οικογενειακό του Γιατρό στο Ίσλινγκτον Getting an interpreter when you visit your GP practice in Islington Σε όλα τα Ιατρεία Οικογενειακού
Assalamu `alaikum wr. wb.
LUMP SUM Assalamu `alaikum wr. wb. LUMP SUM Wassalamu alaikum wr. wb. Assalamu `alaikum wr. wb. LUMP SUM Wassalamu alaikum wr. wb. LUMP SUM Lump sum lump sum lump sum. lump sum fixed price lump sum lump
Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1
Conceptual Questions. State a Basic identity and then verify it. a) Identity: Solution: One identity is cscθ) = sinθ) Practice Exam b) Verification: Solution: Given the point of intersection x, y) of the
the total number of electrons passing through the lamp.
1. A 12 V 36 W lamp is lit to normal brightness using a 12 V car battery of negligible internal resistance. The lamp is switched on for one hour (3600 s). For the time of 1 hour, calculate (i) the energy
Εργαστήριο Οργάνωσης Η/Υ. Δαδαλιάρης Αντώνιος
Εργαστήριο Οργάνωσης Η/Υ Δαδαλιάρης Αντώνιος dadaliaris@uth.gr Σχόλια: - - This is a single line comment - - There is no alternative way to write multi-line comments Αναγνωριστικά: Τα αναγνωριστικά
(Διαφάνειες Νίκου Βιδάκη)
(Διαφάνειες Νίκου Βιδάκη) JAVA Inheritance Εβδομάδα Νο. 3 2 Προηγούμενο μάθημα (1/2) Τι είναι αντικείμενο? Ανάλυση αντικειμένων Πραγματικά αντικείμενα Καταστάσεις Συμπεριφορές Αντικείμενα στον προγραμματισμό
ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ. Βάσεις Δεδομένων (4 ο εξάμηνο) Εργαστήριο MySQL #2
ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ Βάσεις Δεδομένων (4 ο εξάμηνο) Εργαστήριο MySQL #2 Διδάσκων: Γιάννης Θεοδωρίδης Συντάκτης Κειμένου: Βαγγέλης Κατσικάρος Φεβρουάριος 2008 Περιεχόμενα SQL Language
Test Data Management in Practice
Problems, Concepts, and the Swisscom Test Data Organizer Do you have issues with your legal and compliance department because test environments contain sensitive data outsourcing partners must not see?
Potential Dividers. 46 minutes. 46 marks. Page 1 of 11
Potential Dividers 46 minutes 46 marks Page 1 of 11 Q1. In the circuit shown in the figure below, the battery, of negligible internal resistance, has an emf of 30 V. The pd across the lamp is 6.0 V and
The new Remote Networks Regulatory Framework Το νέο Ρυθμιστικό Πλαίσιο των Απομακρυσμένων Δικτύων
The new Remote Networks Regulatory Framework Το νέο Ρυθμιστικό Πλαίσιο των Απομακρυσμένων Δικτύων Irene Iacovides Head, Gas Networks Unit Ειρήνη Ιακωβίδου Προϊσταμένη Τμήματος Δικτύων Φυσικού Αερίου Thessaloniki,
Συστήματα Διαχείρισης Βάσεων Δεδομένων
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Συστήματα Διαχείρισης Βάσεων Δεδομένων Φροντιστήριο 9: Transactions - part 1 Δημήτρης Πλεξουσάκης Τμήμα Επιστήμης Υπολογιστών Tutorial on Undo, Redo and Undo/Redo
b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!
MTH U341 urface Integrals, tokes theorem, the divergence theorem To be turned in Wed., Dec. 1. 1. Let be the sphere of radius a, x 2 + y 2 + z 2 a 2. a. Use spherical coordinates (with ρ a) to parametrize.
. Εργαστήριο Βάσεων Δεδομένων. Triggers
Εργαστήριο Βάσεων Δεδομένων Triggers Triggers: Βασικές Έννοιες Ένας trigger είναι ένα κομμάτι κώδικα, μια ρουτίνα Συνδέεται με ένα συγκεκριμένο πίνακα Καλείται όταν συμβεί ένα γεγονός στον πίνακα Συχνές
HY150a Φροντιστήριο 3 24/11/2017
HY150a Φροντιστήριο 3 24/11/2017 1 Assignment 3 Overview Το πρόγραμμα ζητείται να διαβάζει μια λίστα δεδομένων που περιγράφει τα διαθέσιμα τμήματα μνήμης (blocks) ενός ΗΥ. Το πρόγραμμα ζητείται να μεταφορτώνει