Image. uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls ;

Size: px
Start display at page:

Download "Image. uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls ;"

Transcription

1 B Image Image Image Image Amida AmidaU.pas AmidaP.dpr Form Name FormAmida Caption Position poscreencenter HorzScrollBar.Visible False VertScrollBar.Visible False Image Amida uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls ; const TateSuu = 10; YokoSuu = TateSuu*(TateSuu-1) div 2; YokoHaba = 60; TateHaba = 10; type TAmida // // // (TateSuu-1) // // = class(timage) constructor Create(AOwner : TComponent); override; TFormAmida = class(tform) PanelMain: TPanel; ButtonClose: TButton; procedure ButtonCloseClick(Sender: TObject);

2 B 72 private Amida : TAmida; procedure AmidaSakusei; public uses ExtCtrls Image (******************** TAmida ******************* constructor TAmida.Create(AOwner : TComponent); (* inherited; Parent := TWinControl(AOwner); Height := (YokoSuu+10)*TateHaba; Width := (TateSuu+1)*YokoHaba; Left := 0; // Top := 0; with Canvas do Font.Height := 20; Brush.Color := claqua; FillRect(ClipRect); (* Create // AOwner // // // (******************** ******************* procedure TFormAmida.AmidaSakusei; (* Amida Amida := TAmida.Create(Self); // Self FormAmida ClientHeight := Amida.Height; // Form Client ClientWidth := Amida.Width +PanelMain.Width; (* AmidaSakusei OnCreate procedure TFormAmida.FormCreate(Sender: TObject); AmidaSakusei; // Image Amida (* FormCreate Image

3 B type TMitiNo = 1..TateSuu; // ( ) TKawaNo = 1..TateSuu-1; // ( ) TYokoNo = 1..YokoSuu; // ( ) TYokoSen = (ysnone,ysketa,yshasi); // THasi = array [TKawaNo,TYokoNo] of TYokoSen ; // TJunretu = array [TMitiNo] of Byte; // TAmida = class(timage) constructor Create(AOwner : TComponent); override; private Hasi : THasi; Hajime : TJunretu; // Genzai : TJunretu; // LastYoko : TYokoNo; // procedure MondaiSakusei; procedure SyokiSettei; procedure HasiWoKakeru(Kawa : TKawaNo; Yoko : TYokoNo); procedure HasiWoKaku(Kawa : TKawaNo; Yoko : TYokoNo); procedure JunretuWoKaku(Junretu : TJunretu; Y : Integer); procedure AmidaWoKaku; procedure TAmida.MondaiSakusei; (* ( ) Miti : TMitiNo; for Miti := 1 to TateSuu do Hajime[Miti] := Random(90)+10; SyokiSettei; (* MondaiSakusei // procedure TAmida.SyokiSettei; (* Kawa : TKawaNo; Yoko : TYokoNo; // for Kawa := 1 to TateSuu-1 do for Yoko := 1 to YokoSuu do if Odd(Kawa+Yoko) then Hasi[Kawa,Yoko] := ysnone else Hasi[Kawa,Yoko] := ysketa; // Genzai := Hajime; LastYoko := 1; AmidaWoKaku;

4 B 74 (* SyokiSettei procedure TAmida.HasiWoKakeru(Kawa : TKawaNo; Yoko : TYokoNo); (* Hidari : Byte; Hasi[Kawa,Yoko] := yshasi; LastYoko := Yoko; HasiWoKaku(Kawa,Yoko); Hidari := Genzai[Kawa]; Genzai[Kawa] := Genzai[Kawa+1]; Genzai[Kawa+1] := Hidari; JunretuWoKaku(Genzai,(YokoSuu+7)*TateHaba); (* HasiWoKakeru procedure TAmida.HasiWoKaku(Kawa : TKawaNo; Yoko : TYokoNo); (* (* (* if Hasi[Kawa,Yoko] <> ysnone then with Canvas do Pen.Width := 1; case Hasi[Kawa,Yoko] of ysketa : Pen.Color := clwhite; yshasi : Pen.Color := clred; MoveTo(Kawa*YokoHaba,(Yoko+5)*TateHaba); LineTo((Kawa+1)*YokoHaba,(Yoko+5)*TateHaba); (* HasiWoKaku procedure TAmida.JunretuWoKaku(Junretu : TJunretu; Y : Integer); (* Miti : TMitiNo; for Miti := 1 to TateSuu do Canvas.TextOut(Miti*YokoHaba-10,Y,IntToStr(Junretu[Miti])); (* JunretuWoKaku procedure TAmida.AmidaWoKaku; (* Miti : TMitiNo; Kawa : TKawaNo; Yoko : TYokoNo; with Canvas do for Kawa := 1 to TateSuu-1 do for Yoko := 1 to YokoSuu do HasiWoKaku(Kawa,Yoko); Pen.Width := 3; Pen.Color := clred; for Miti := 1 to TateSuu do

5 B 75 MoveTo(Miti*YokoHaba,5*TateHaba); LineTo(Miti*YokoHaba,(YokoSuu+6)*TateHaba); JunretuWoKaku(Hajime,2*TateHaba); JunretuWoKaku(Genzai,(YokoSuu+7)*TateHaba); AmidaWoKaku FormCreate procedure TFormAmida.FormCreate(Sender: TObject); AmidaSakusei; Amida.MondaiSakusei; (* FormCreate Image OnMouseDown TAmida = class(timage) constructor Create(AOwner : TComponent); override; private Hasi : THasi; Hajime : TJunretu; // Genzai : TJunretu; // LastYoko : TYokoNo; // procedure MondaiSakusei; procedure SyokiSettei; procedure HasiWoKakeru(Kawa : TKawaNo; Yoko : TYokoNo); procedure HasiWoKaku(Kawa : TKawaNo; Yoko : TYokoNo);

6 B 76 procedure JunretuWoKaku(Junretu : TJunretu; Y : Integer); procedure AmidaWoKaku; procedure AmidaMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); constructor TAmida.Create(AOwner : TComponent); (* inherited; // Image Parent := TWinControl(AOwner); // AOwner Height := (YokoSuu+10)*TateHaba; // Width := (TateSuu+1)*YokoHaba; Left := 0; // Top := 0; with Canvas do Font.Height := 20; Brush.Color := claqua; FillRect(ClipRect); // OnMouseDown := AmidaMouseDown; // (* Create procedure TAmida.AmidaMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); (* OnMouseDown (* Kawa : Integer; Yoko : Integer; Kawa := X div YokoHaba; Yoko := Round(Y / TateHaba) -5; if (Kawa in [1..TateSuu-1]) and (Yoko in [LastYoko..YokoSuu]) and (Hasi[Kawa,Yoko] = ysketa) then HasiWoKakeru(Kawa,Yoko); (* AmidaMouseDown

7 B procedure TAmida.HasiWoKakeru(Kawa : TKawaNo; Yoko : TYokoNo); (* Hidari : Byte; Hasi[Kawa,Yoko] := yshasi; LastYoko := Yoko; HasiWoKaku(Kawa,Yoko); Hidari := Genzai[Kawa]; Genzai[Kawa] := Genzai[Kawa+1]; Genzai[Kawa+1] := Hidari; JunretuWoKaku(Genzai,(YokoSuu+7)*TateHaba); if Seikou then ShowMessage( ); (* HasiWoKakeru function TAmida.Seikou : Boolean; (* Genzai Miti : TMitiNo; Miti := 1; while (Miti < TateSuu) and (Genzai[Miti] >= Genzai[Miti+1]) do Inc(Miti); Seikou := Miti >= TateSuu; (* Seikou Button Name ButtonRestart Caption (&R) OnClick procedure TFormAmida.ButtonRestartClick(Sender: TObject); Amida.SyokiSettei; (* ButtonRestartClick

8 B Button Name ButtonNew Caption (&N) OnClick procedure TFormAmida.ButtonNewClick(Sender: TObject); Amida.MondaiSakusei; (* ButtonNewClick (1) (2) k k + 1 const TateSuu Image 10 3

Windows. mine sweeper Jirai JiraiU.pas JiraiP.dpr. Form Name FormJirai Caption Position podesktopcenter 16.3

Windows. mine sweeper Jirai JiraiU.pas JiraiP.dpr. Form Name FormJirai Caption Position podesktopcenter 16.3 B 103 16 Windows mine sweeper 16.1 n 16.2 Jirai JiraiU.pas JiraiP.dpr Form Name FormJirai Caption Position podesktopcenter 16.3 3 B 104 16.3.1 RadioGroup Algn altop Name RadioGroupSize Caption Columns

More information

(1) Trump (1) Trump (2) (1) Trump ExampleU ExampleP (2) Caption. TrumpU (2) Caption. (3) Image FormTrump. Top 0 Left 0.

(1) Trump (1) Trump (2) (1) Trump ExampleU ExampleP (2) Caption. TrumpU (2) Caption. (3) Image FormTrump. Top 0 Left 0. B 114 18 (1) 18.1 52 54 Trump http://www.ss.u-tokai.ac.jp/~ooya/jugyou/joronb/trumpbmp.exe (1) (2) Trump 18.2 (1) Trump ExampleU ExampleP (2) Name Caption FormMain 18.3 (1) TrumpU (2) Name Caption FormTrump

More information

Delphi Generics.Collections

Delphi Generics.Collections Delphi Generics.Collections Copyright(C) 2008 Embarcadero Technologies, Inc. All Rights Reserved. Delphi Generics.Collections Table of Contents Generics.Collections.TCollectionNotification 1 Generics.Collections.TCollectionNotifyEvent

More information

DELPHI FOR ELECTRONIC ENGINEERS. Part 2 Programming a calculator COURSE

DELPHI FOR ELECTRONIC ENGINEERS. Part 2 Programming a calculator COURSE COURSE DELPHI FOR ELECTRONIC ENGINEERS Part 2 Programming a calculator Herman Bulle with thanks to Anton Vogelaar In the first instalment of this series, we introduced the Delphi programming environment

More information

Part 1 The first steps

Part 1 The first steps course DELPHI FOR ELECTRONIC ENGINEERS Part 1 The first steps Detlef Overbeek & Anton Vogelaar This article is the first part in a series about programming in Delphi, which concentrates on the practical

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 NOVEMBER 2017 MARKING GUIDELINES MARKS: 150 These marking guidelines consist of 26 pages. Information Technology/P1 2 DBE/November 2017 GENERAL

More information

LAMPIRAN Listing Program

LAMPIRAN Listing Program LAMPIRAN Listing Program unit umain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, ExtDlgs, DCPcrypt2, DCPrc4, DCPsha1,

More information

The scripting system handles two types of components: Visual and Non-visual components.

The scripting system handles two types of components: Visual and Non-visual components. Forms and Components Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript Overview of Graphical Components The scripting system handles two types of components:

More information

Source code for simulations: 1 of 11

Source code for simulations: 1 of 11 The following is the source code for the simulations reported in Clinchy, Haydon and Smith (Pattern process: what does patch occupancy really tell us about metapopulation dynamics). unit Main; interface

More information

THREE. Multiple windows

THREE. Multiple windows THREE Multiple windows Often in a Windows application it is convenient to have more than one window in use. This provides a natural way of breaking down a large and complex project into a number of simpler

More information

Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at:

Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at: maxbox Starter 2 Start with OO Programming 1.1 First Step Today we spend some time in OO Programming (Object Oriented). Hope you did already work with the first Starter and the box at: http://www.softwareschule.ch/download/maxbox_starter.pdf

More information

Writing Delphi Custom Components

Writing Delphi Custom Components Writing Delphi Custom Components CHAPTER 21 IN THIS CHAPTER Component Building Basics 930 Sample Components 958 TddgButtonEdit Container Components 976 Component Packages 987 Add-In Packages 998 Summary

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 FEBRUARY/MARCH 2018 MARKING GUIDELINES MARKS: 150 These marking guidelines consist of 21 pages. Information Technology/P1 2 DBE/Feb. Mar. 2018

More information

For more detailed information on the differences between DelphiScript and Object Pascal, refer to the DelphiScript Reference document.

For more detailed information on the differences between DelphiScript and Object Pascal, refer to the DelphiScript Reference document. Writing Scripts Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Related pages Script Editor Tools Scripting System Panels Parent page: Scripting Writing Scripts There a number of

More information

judul : dump mysql with delphi - opensource

judul : dump mysql with delphi - opensource judul : dump mysql with delphi - opensource header : hmm...ini sebenernya dah pernah tak tanyain dalam thread tapi lom ada jawaban yang memuaskan, aq coba ekplor terus dan akhirnya 3 bulan yang lalu bisa

More information

GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM

GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM Province of the EASTERN CAPE EDUCATION NATIONAL SENIOR CERTIFICATE GRADE 12 SEPTEMBER 2012 INFORMATION TECHNOLOGY P1 MEMORANDUM MARKS: 120 This memorandum consists of 11 pages. 2 INFORMATION TECHNOLOGY

More information

APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol

APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol APPLICATION NOTE: KONSTANTER LSP32K Interface Protocol 1 Interface Type At the DB9 connector the LSP32K Power Supply device offers a serial data interface with TTL logic level for remote control and readout

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 FEBRUARY/MARCH 2017 MEMORANDUM MARKS: 150 This memorandum consists of 29 pages. Information Technology/P1 2 DBE/Feb. Mar. 2017 GENERAL INFORMATION:

More information

Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su

Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su centri na neiscrtanom krugu poluprečnika r. Dugme Boji

More information

Interdisciplinary relations in teaching of programming

Interdisciplinary relations in teaching of programming Interdisciplinary relations in teaching of programming VLADIMÍR JEHLIČKA Department of Informatics Faculty of Education University of Hradec Králové Rokitanského 62, 500 03 Hradec Králové 3 CZECH REPUBLIC

More information

Introduction to the DLL for the USB Interface Board K8061

Introduction to the DLL for the USB Interface Board K8061 K8061.DLL 1 Introduction to the DLL for the USB Interface Board K8061 The K8061 interface board has 8 digital input channels and 8 digital output channels. In addition, there are 8 analogue inputs, 8 analogue

More information

Использование ассиметричных алгоритмов криптографического преобразования информации в приложениях Windows

Использование ассиметричных алгоритмов криптографического преобразования информации в приложениях Windows Государственное образовательное учреждение высшего профессионального образования «Петербургский государственный университет путей сообщения» Кафедра «Информационные и вычислительные системы» Лабораторная

More information

Graphics Programming with GDI and Fonts

Graphics Programming with GDI and Fonts Graphics Programming with GDI and Fonts CHAPTER 8 IN THIS CHAPTER Delphi s Representation of Pictures: TImage 276 Saving Images 278 Using the TCanvas Properties 280 Using the TCanvas Methods 301 Coordinate

More information

www.openwire.org www.mitov.com Copyright Boian Mitov 2004-2014 Index Installation... 3 Where is InstrumentLab?... 3 Creating classifier application... 3 Using the TSLCRealBuffer in C++ Builder and Visual

More information

unit SrTapi; v1.0 (9/23/2002): The first release of this module. interface uses Classes, SysUtils, Contnrs, Windows, Tapi; {$INCLUDE TAPI.

unit SrTapi; v1.0 (9/23/2002): The first release of this module. interface uses Classes, SysUtils, Contnrs, Windows, Tapi; {$INCLUDE TAPI. {*******************************************************} { SoftReal TAPI Components (Delphi 5) } { Copyright (c) 2002 SoftReal Kft. } { All rights reserved. } { Version: v1.1 } { Compiler: Delphi 5 }

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Simple diagrams made up of geometrical shapes can be designed directly in Delphi using the shape component from the ADDITIONAL component menu: shape

Simple diagrams made up of geometrical shapes can be designed directly in Delphi using the shape component from the ADDITIONAL component menu: shape TWO Graphics In chapter one we saw how a bitmap image can be displayed in a program. This is not the only way of producing graphics in Delphi, and in this section we will look at two other methods: Using

More information

var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.LoadFromFile('d:\brojevi.

var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.LoadFromFile('d:\brojevi. 1 PANEL komponenta kontejnerska, slična GropBox. Roditeljska komponenta za komp. postavljene na nju. Zajedno se pomeraju. Caption svojstvo za naziv; Alighment pomera svojstvo Caption levo i desno; Align

More information

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question) CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 NOVEMBER 2016 MEMORANDUM MARKS: 150 This memorandum consists of 32 pages. Information Technology/P1 2 DBE/November 2016 GENERAL INFORMATION:

More information

uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer;

uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer; unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ImgList, StdCtrls, Buttons, MPlayer; type TForm1 = class(tform) Cenario: TImage;

More information

3 Combining Widgets to create Graphical User Interfaces

3 Combining Widgets to create Graphical User Interfaces (Graphical User Interfaces - 41) 3 Combining Widgets to create Graphical User Interfaces 3.1 The Ressource Concept Goal: How to compose widgets to create complete user interfaces Problem: Composition has

More information

NATIONAL SENIOR CERTIFICATE GRADE 12

NATIONAL SENIOR CERTIFICATE GRADE 12 NATIONAL SENIOR CERTIFICATE GRADE 12 INFORMATION TECHNOLOGY P1 NOVEMBER 2014 MEMORANDUM MARKS: 150 This memorandum consists of 28 pages. Information Technology/P1 2 DBE/November 2014 GENERAL INFORMATION:

More information

The undo stack and reusing the memento pattern

The undo stack and reusing the memento pattern The undo stack and reusing the memento pattern Michaël Van Canneyt March 31, 2009 Abstract In a previous contribution, the memento pattern was introduced. In this article, the memento pattern is used in

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

A method is a procedure that is always associated with an object and defines the behavior of that object.

A method is a procedure that is always associated with an object and defines the behavior of that object. Using Form Components Old Content - visit altium.com/documentation Modified by Rob Evans on 15-Feb-2017 Parent page: VBScript Using Components in VBScript Forms Although Forms and Components are based

More information

DelphiScript Keywords

DelphiScript Keywords DelphiScript Keywords Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 This reference covers the DelphiScript keywords used for the Scripting System in Altium Designer. The scripting

More information

Macros and User Forms

Macros and User Forms Macros and User Forms INTRODUCTION Toad Data Modeler supports macros. You can create a macro in Package Explorer or Script Explorer and modify its properties to display the macro either in main menu or

More information

Delphi XML-Beispiel-Code

Delphi XML-Beispiel-Code XML-Beispiel-Code program DomCreate; uses Forms, CreateForm in 'CreateForm.pas' {Form1}; {$R *.RES} Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run;. CreateForm.pas unit

More information

TMS FNC Object Inspector

TMS FNC Object Inspector TMS FNC Object Inspector September 2018 Copyright 2018 by tmssoftware.com bvba Web: http://www.tmssoftware.com Email: info@tmssoftware.com 1 Index Getting Started... 3 Availability... 3 Hierarchy... 4

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

GRADE 11 NOVEMBER 2012 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM

GRADE 11 NOVEMBER 2012 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM Province of the EASTERN CAPE EDUCATION NATIONAL SENIOR CERTIFICATE GRADE 11 NOVEMBER 2012 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM MARKS/PUNTE: 120 This memorandum consists of 10 pages.

More information

GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM

GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM NATIONAL SENIOR CERTIFICATE NASIONALE SENIOR SERTIFIKAAT GRADE/GRAAD 11 NOVEMBER 2013 INFORMATION TECHNOLOGY P1 INLIGTINGSTEGNOLOGIE V1 MEMORANDUM MARKS/PUNTE: 150 This memorandum consists of 6 pages.

More information

&'()*+,-./0&(1& $ :;

&'()*+,-./0&(1& $ :; &'()*+,-./0&(1& $234567859:; raek@etteam.com %!"# $%# &#$ ' (!) * %#+,-./0$1"# 22(3 45416 (! 57 5 71 " *7 *7 ( 89:9-,- 8;:< 16 *! =)5> 7# &$%# 45?"16 * @! (! 5 *) 8,:A;B9- C;D.E

More information

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 A Listing Program Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 LISTING PROGRAM BORLAND DELPHI 7.0 Inisialisasi ==========================================================

More information

Today s Topics. Program Realisation 2. How code and configuration data of forms are organized.

Today s Topics. Program Realisation 2. How code and configuration data of forms are organized. Program Realisation Today s Topics http://www.win.tue.nl/ hemerik/ip0/ Lecture 9 Kees Hemerik Tom Verhoeff Technische Universiteit Eindhoven Faculteit Wiskunde en Informatica Software Engineering & Technology

More information

Topic 7: Algebraic Data Types

Topic 7: Algebraic Data Types Topic 7: Algebraic Data Types 1 Recommended Exercises and Readings From Haskell: The craft of functional programming (3 rd Ed.) Exercises: 5.5, 5.7, 5.8, 5.10, 5.11, 5.12, 5.14 14.4, 14.5, 14.6 14.9, 14.11,

More information

Inheritance, and Polymorphism.

Inheritance, and Polymorphism. Inheritance and Polymorphism by Yukong Zhang Object-oriented programming languages are the most widely used modern programming languages. They model programming based on objects which are very close to

More information

The Java language has a wide variety of modifiers, including the following:

The Java language has a wide variety of modifiers, including the following: PART 5 5. Modifier Types The Java language has a wide variety of modifiers, including the following: Java Access Modifiers Non Access Modifiers 5.1 Access Control Modifiers Java provides a number of access

More information

Using CSS for page layout

Using CSS for page layout Using CSS for page layout Advantages: Greater typographic control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control Increased accessibility

More information

Delphi by Design. One-Step ActiveX - Part 2

Delphi by Design. One-Step ActiveX - Part 2 Delphi by Design Introduction Past Articles Source Code One-Step ActiveX - Part 2 by Ray Konopka April/May 1998, Vol. 9, No. 1 -- Download Source Code: Click Here It takes only one step to make a working

More information

ITI Introduction to Computing II

ITI Introduction to Computing II ITI 1121. Introduction to Computing II Marcel Turcotte School of Electrical Engineering and Computer Science Inheritance Introduction Generalization/specialization Version of January 20, 2014 Abstract

More information

NATIONAL SENIOR CERTIFICATE GRADE12

NATIONAL SENIOR CERTIFICATE GRADE12 NATIONAL SENIOR CERTIFICATE GRADE12 INFORMATION TECHNOLOGY P1 NOVEMBER 2015 MEMORANDUM MARKS: 150 This memorandum consists of 32 pages. Information Technology/P1 2 DBE/November 2015 GENERAL INFORMATION:

More information

ITI Introduction to Computing II

ITI Introduction to Computing II ITI 1121. Introduction to Computing II Marcel Turcotte School of Electrical Engineering and Computer Science Inheritance Introduction Generalization/specialization Version of January 21, 2013 Abstract

More information

Simple Factory Pattern

Simple Factory Pattern Simple Factory Pattern Graeme Geldenhuys 2008-08-02 In this article I am going to discuss one of three Factory design patterns. The Factory patterns are actually subtle variations of each other and all

More information

INHERITANCE: CONSTRUCTORS,

INHERITANCE: CONSTRUCTORS, INHERITANCE: CONSTRUCTORS, DESTRUCTORS, HEADER FILES Pages 720 to 731 Anna Rakitianskaia, University of Pretoria CONSTRUCTORS Constructors are used to create objects Object creation = initialising member

More information

LAMPIRAN 1 TATA CARA PENGGUNAAN SOFTWARE ALGORITMA GENETIKA

LAMPIRAN 1 TATA CARA PENGGUNAAN SOFTWARE ALGORITMA GENETIKA LAMPIRAN 1 TATA CARA PENGGUNAAN SOFTWARE ALGORITMA GENETIKA Langkah-langkah penggunaan Software Algoritma Genetika Job Shop : 1. Buka program Algoritma Genetika Job Shop 2. Masukkan data-data yang dibutuhkan

More information

2009 Academic Challenge

2009 Academic Challenge 2009 Academic Challenge COMPUTER SCIENCE TEST - REGIONAL This Test Consists of 30 Questions Computer Science Test Production Team Jim Feher, McKendree University Author/Team Leader Barry Bookout, East

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

2. Design and Development

2. Design and Development Postage Calculator 1. The task Design and implement a program for employees of a travel agency who send out documents to the UK and EU only; the program will calculate the cost of postage. Each envelope

More information

«» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё Delphi. 4.. :,,,.,,

«» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё Delphi. 4.. :,,,.,, ,.. 2018. 44.03.01,..,...., 2018 «» 68, 19, 1, 41.,,,,,,,... : Delphi. : 1., ё. 2.. 3. Delphi. 4.. :,,,.,, .,. А... 4 1... 6 1.1... 6 1.2... 15 2... 22 2.1... 22 2.2... 50... 58... 59 -. 130 80% - Internet.,,,,..

More information

Object Pascal Language Guide

Object Pascal Language Guide Object Pascal Language Guide Borland Object Pascal Borland Software Corporation 100 Enterprise Way, Scotts Valley, CA 95066-3249 www.borland.com Borland Software Corporation may have patents and/or pending

More information

Assignment 3: Inheritance

Assignment 3: Inheritance Assignment 3: Inheritance Due Wednesday March 21 st, 2012 by 11:59 pm. Submit deliverables via CourSys: https://courses.cs.sfu.ca/ Late penalty is 10% per calendar day (each 0 to 24 hour period past due).

More information

Custom Views in Android Tutorial

Custom Views in Android Tutorial Custom Views in Android Tutorial The Android platform provides an extensive range of user interface items that are sufficient for the needs of most apps. However, there may be occasions on which you feel

More information

Sorting TEN. Alphabetical sort

Sorting TEN. Alphabetical sort TEN Sorting In this chapter we will look at various ways in which sorting might be used in programs. To with, let's see how a series of words could be arranged into alphabetical order by the computer...

More information

Object Oriented Programming 2015/16. Final Exam June 28, 2016

Object Oriented Programming 2015/16. Final Exam June 28, 2016 Object Oriented Programming 2015/16 Final Exam June 28, 2016 Directions (read carefully): CLEARLY print your name and ID on every page. The exam contains 8 pages divided into 4 parts. Make sure you have

More information

Developer scenarios. Throughout this book, you have been introduced to several programming concepts

Developer scenarios. Throughout this book, you have been introduced to several programming concepts 5 Developer scenarios Throughout this book, you have been introduced to several programming concepts and patterns, as well as some APIs. This chapter contains examples of developer scenarios that build

More information

JAVA MOCK TEST JAVA MOCK TEST II

JAVA MOCK TEST JAVA MOCK TEST II http://www.tutorialspoint.com JAVA MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Java Framework. You can download these sample mock tests at your

More information

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project 1 Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project Copyright by V. Miszalok, last update: 04-01-2006 using namespaces using System; //Namespace of the base class

More information

Review questions. Review questions, cont d. Class Definition. Methods. Class definition: methods. April 1,

Review questions. Review questions, cont d. Class Definition. Methods. Class definition: methods. April 1, April 1, 2003 1 Previous Lecture: Intro to OOP Class definition: instance variables & methods Today s Lecture: Instance methods Constructors Methods with input parameters Review questions Where do you

More information

CSE 11 Midterm Fall 2008

CSE 11 Midterm Fall 2008 Signature cs11f Name Student ID CSE 11 Midterm Fall 2008 Page 1 (10 points) Page 2 (22 points) Page 3 (23 points) Page 4 (17 points) Page 5 (12 points) Total (84 points = 80 base points + 4 points EC [5%])

More information

ADAPTER. Topics. Presented By: Mallampati Bhava Chaitanya

ADAPTER. Topics. Presented By: Mallampati Bhava Chaitanya ADAPTER Presented By: Mallampati Bhava Chaitanya Topics Intent Motivation Applicability Structure Participants & Collaborations Consequences Sample Code Known Uses Related Patterns Intent Convert the interface

More information

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a.

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. a expression Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. DISPLAY (expression) Displays the value of expression, followed by a space. INPUT () Accepts a

More information

In Delphi script, when values are assigned to variables, the colon-equal operator is used; :=

In Delphi script, when values are assigned to variables, the colon-equal operator is used; := Statements and Operators Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript DelphiScript Statements A statement in DelphiScript is considered as simple when

More information

Randy Hyde s Win32 Assembly Language Tutorials (Featuring HOWL) #7: Graphic Objects

Randy Hyde s Win32 Assembly Language Tutorials (Featuring HOWL) #7: Graphic Objects Randy Hyde s Win32 Assembly Language Tutorials Featuring HOWL #7: Graphic Objects In this seventh tutorial of this series, we ll take a look at implementing various graphic objects such as rectangles,

More information

Cascading style sheets, HTML, DOM and Javascript

Cascading style sheets, HTML, DOM and Javascript CSS Dynamic HTML Cascading style sheets, HTML, DOM and Javascript DHTML Collection of technologies forming dynamic clients HTML (content content) DOM (data structure) JavaScript (behaviour) Cascading Style

More information

unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CPort, LPComponent, SLCommonGen, SLSignalGen, Menus, SLComponentCollection, LPDrawLayers,

More information

LAMPIRAN A: DDL DATABASE

LAMPIRAN A: DDL DATABASE LAMPIRAN A: DDL DATABASE MySQL-Front 5.1 (Build 2.7) Host: localhost Database: mobil ------------------------------------------------------ Server version 5.0.41-community-nt USE `mobil`; Source for table

More information

COMP200 INHERITANCE. OOP using Java, from slides by Shayan Javed

COMP200 INHERITANCE. OOP using Java, from slides by Shayan Javed 1 1 COMP200 INHERITANCE OOP using Java, from slides by Shayan Javed 2 Inheritance Derive new classes (subclass) from existing ones (superclass). Only the Object class (java.lang) has no superclass Every

More information

Creating a Webserver in 5 minutes using kbmmw!

Creating a Webserver in 5 minutes using kbmmw! Creating a Webserver in 5 minutes using kbmmw! kbmmw is a complete framework for building middleware/n-tier systems typically consisting of application servers and clients. One of the many advantages of

More information

1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005

1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005 1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 4, 2005 Name: E-mail Address: TA: Section: You have 80 minutes to complete this exam. For coding questions, you do not need to

More information

Data Structures in Java

Data Structures in Java Data Structures in Java Lecture 9: Binary Search Trees. 10/7/015 Daniel Bauer 1 Contents 1. Binary Search Trees. Implementing Maps with BSTs Map ADT A map is collection of (key, value) pairs. Keys are

More information

C++ (Non for C Programmer) (BT307) 40 Hours

C++ (Non for C Programmer) (BT307) 40 Hours C++ (Non for C Programmer) (BT307) 40 Hours Overview C++ is undoubtedly one of the most widely used programming language for implementing object-oriented systems. The C++ language is based on the popular

More information

20 Rules For OOP In Delphi

20 Rules For OOP In Delphi 20 Rules For OOP In Delphi by Marco Cantù Most Delphi programmers use their development environment as they would use Visual Basic [Editor throws his hands up in horror at the mere thought!], without realising

More information

Final exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers)

Final exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers) Review Final exam Final exam will be 12 problems, drop any 2 Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers) 2 hours exam time, so 12 min per problem (midterm 2 had

More information

CS18000: Problem Solving And Object-Oriented Programming

CS18000: Problem Solving And Object-Oriented Programming CS18000: Problem Solving And Object-Oriented Programming Data Abstraction: Inheritance 7 March 2011 Prof. Chris Clifton Data Abstraction Continued Abstract data type provides Well-defined interface Separation

More information

Getting started with Lazarus

Getting started with Lazarus Getting started with Lazarus Michaël Van Canneyt March 4, 2006 Abstract Lazarus is a cross-platform 2-way RAD tool which can be used to develop almost any kind of program for Windows, Linux, Solaris or

More information

Interfaces (1/2) An interface forms a contract between the object and the outside world.

Interfaces (1/2) An interface forms a contract between the object and the outside world. Interfaces (1/2) An interface forms a contract between the object and the outside world. For example, the buttons on remote controls for some machine. As you can see, an interface is a reference type,

More information

12.2 Mixing HLA and MASM/Gas Code in the Same Program In-Line (MASM/Gas) Assembly Code in Your HLA Programs

12.2 Mixing HLA and MASM/Gas Code in the Same Program In-Line (MASM/Gas) Assembly Code in Your HLA Programs 12.1 Chapter Overview Most assembly language code doesn t appear in a stand-alone assembly language program. Instead, most assembly code is actually part of a library package that programs written in a

More information

Adventures in Messaging

Adventures in Messaging Adventures in Messaging CHAPTER 3 IN THIS CHAPTER What Is a Message? 130 Types of Messages 131 How the Windows Message System Works 132 Delphi s Message System 133 Handling Messages 134 Sending Your Own

More information

Web Dialogue and Child Page

Web Dialogue and Child Page Web Dialogue and Child Page Create date: March 3, 2012 Last modified: March 3, 2012 Contents Introduction... 2 Parent Page Programming... 2 Methods... 2 ShowChildDialog... 2 ShowChildWindow... 4 ShowPopupWindow...

More information

Intraweb versus Morfik

Intraweb versus Morfik Intraweb versus Morfik Michaël Van Canneyt August 2, 2009 Abstract Intraweb - Currently at version 10 - has been around for quite some time. It is a mature technology, and as such can be expected to have

More information

DELPHI FOR ELECTRONIC ENGINEERS. Part 5: measuring with the sound card COURSE

DELPHI FOR ELECTRONIC ENGINEERS. Part 5: measuring with the sound card COURSE COURSE DELPHI FOR ELECTRONIC ENGINEERS Part 5: measuring with the sound card Detlef Overbeek, Anton Vogelaar and Siegfried Zuhr In Part 4 of this course, we used the PC sound card to generate a variety

More information

Elevate Web Builder 2 Modules Manual

Elevate Web Builder 2 Modules Manual Table of Contents Elevate Web Builder 2 Modules Manual Table Of Contents Chapter 1 - Getting Started 1 1.1 Creating a Module 1 1.2 Database Modules 3 1.3 Handling Requests 4 Chapter 2 - Component Reference

More information

TEXTAREA NN 2 IE 3 DOM 1

TEXTAREA NN 2 IE 3 DOM 1 778 TEXTAREA Chapter 9DOM Reference TEXTAREA NN 2 IE 3 DOM 1 The TEXTAREA object reflects the TEXTAREA element and is used as a form control. This object is the primary way of getting a user to enter multiple

More information

F I N A L E X A M I N A T I O N

F I N A L E X A M I N A T I O N Faculty Of Computer Studies M257 Putting Java to Work F I N A L E X A M I N A T I O N Number of Exam Pages: (including this cover sheet( Spring 2011 April 4, 2011 ( 5 ) Time Allowed: ( 1.5 ) Hours Student

More information

Framework Fundamentals

Framework Fundamentals Questions Framework Fundamentals 1. Which of the following are value types? (Choose all that apply.) A. Decimal B. String C. System.Drawing.Point D. Integer 2. Which is the correct declaration for a nullable

More information

EECS 1001 and EECS 1030M, lab 01 conflict

EECS 1001 and EECS 1030M, lab 01 conflict EECS 1001 and EECS 1030M, lab 01 conflict Those students who are taking EECS 1001 and who are enrolled in lab 01 of EECS 1030M should switch to lab 02. If you need my help with switching lab sections,

More information

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE

More information

More About Classes CS 1025 Computer Science Fundamentals I Stephen M. Watt University of Western Ontario

More About Classes CS 1025 Computer Science Fundamentals I Stephen M. Watt University of Western Ontario More About Classes CS 1025 Computer Science Fundamentals I Stephen M. Watt University of Western Ontario The Story So Far... Classes as collections of fields and methods. Methods can access fields, and

More information