1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours)...
-
Upload
nigel-french -
Category
Documents
-
view
216 -
download
0
Transcript of 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours)...
![Page 1: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/1.jpg)
1
Programming Concepts
Module Code : CMV6107 Class Contact Hours: 45 hours
(Lecture 15 hours) (Laboratory/Tutorial 30 hours)
Module Value: 1 Textbook: Exploring Microsoft Visual Basic
6.0 by Carlotta B. Eaton, Prentice Hall
![Page 2: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/2.jpg)
2
Content Area
Introduction Event driven and procedural programming Visual Objects Integrated Development Environment (IDE)
Simple Applications Project Project Window Toolbox objects Executable file
![Page 3: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/3.jpg)
3
Content Area
Data Types Simple data types
Operations Operators, expression and statements Formatted input/output Characters and string manipulation
Program Structures Selection, Repetition Functions, procedures and forms
![Page 4: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/4.jpg)
4
Content Area
Data Structures Arrays Records and Files Event Handling
Advanced Features Database Internet
![Page 5: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/5.jpg)
5
Introduction
Event driven and procedural programming Visual Objects Integrated Development Environment (IDE)
![Page 6: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/6.jpg)
6
Application Programs
Program - detailed set of instructions for a computer to execute
Application programs (applications or apps) - self-contained collection of programs that perform a task for the end user
Programming language - formal language used to give instructions to computers
![Page 7: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/7.jpg)
7
History of Programming Languages
Machine language Procedure-oriented languages Object-oriented languages Event-driven languages Natural languages
![Page 8: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/8.jpg)
8
History of Programming Languages
Machine Language different for each computer processor
Procedure-Oriented Languages FORTRAN COBOL Pascal C Ada
![Page 9: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/9.jpg)
9
History of Programming Languages
Object-oriented languages Smalltalk C++ Ada 95
Event-driven languages Visual Basic most Visual languages
![Page 10: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/10.jpg)
10
History of Programming Languages
Natural languages computer will accept a user’s native or natural
language, such as English Researchers continue to work in this area
![Page 11: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/11.jpg)
11
Background of Visual Basic
BASIC Beginner’s All-purpose Symbolic Instruction Code By John Kemeny and Thomas Kurtz Designed to teach programming to beginners BASIC language interpreter, one of Microsoft’s
first products
![Page 12: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/12.jpg)
12
Background of Visual Basic
BASIC Included with DOS QBASIC - included with DOS Version 5 - subset of BASIC
Visual Basic 1992 - Visual Basic 1 for Windows 3 Visual Basic 4 - for Windows 95 Visual Basic 5 - for Office 97 Visual Basic 6 - for Windows 98 & Office 2000
Visual BASIC .NET
![Page 13: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/13.jpg)
13
Visual Basic Editions
Learning Edition Professional Edition Enterprise Edition Included in Visual Studio suite (analogy
Office for programmers)
![Page 14: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/14.jpg)
14
Visual Basic Editions
Other Visual Basic packaging options VBA (Visual Basic for Applications) Windows CE Toolkit for Visual Basic Visual Basic Scripting Edition Control Creation Edition
![Page 15: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/15.jpg)
15
Toolbox
Form Designer Window
Code Editor Window
Project Explorer
Properties window
Form Layout Window
Visual Basic 6 Interactive Development Environment
![Page 16: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/16.jpg)
16
Elements of the Integrated Development Environment
Application icon Application name Context menus Controls Current project Design view mode Title bar
Major windows Form Designer Form Layout Toolbox Project Explorer Object Browser Properties Code Editor Immediate, Locals, Watch
![Page 17: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/17.jpg)
17
Introduction to Visual Basic
Hands-On Exercise 1 (P.12-P.15) Start Microsoft Visual Basic 6.0 Open the Welcome Project Open the Welcome Form Run the Welcome Project End the Welcome Project Exit Visual Basic
![Page 18: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/18.jpg)
18
Get Help When You Need It
MSDN Library Microsoft on the Web Learning Edition of Visual Basic 6.0
Visual Basic 6.0 in Action book Learn Visual Basic Now multimedia tutorial
![Page 19: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/19.jpg)
19
MSDN Library
Topic PaneNavigation Pane
![Page 20: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/20.jpg)
20
MSDN Library
Visual Basic Documentation Documentation Map What’s New Programmer’s Guide Samples Reference Guidebooks Component Tools Guide Data Access Guide
![Page 21: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/21.jpg)
21
Get Help from the CD
Hands-On Exercise 2 (p.19 – p.24) Open the Calc Sample Application Run the Calc Sample Application Get Help from the MSDN Library Add a Topic to the Favorites List Search for a Definition Exit Help and Visual Basic
![Page 22: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/22.jpg)
22
Help from the Web
Pull down Help menu Select Help from the Web
or www.microsoft.com/vbasic
![Page 23: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/23.jpg)
23
Get Help from the Web
Hands-On Exercise 3 (p.25 – p.29) Use the Free Stuff Page to Update VB Install the Update (optional) Product News Frequently Asked Questions Online Support
![Page 24: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/24.jpg)
24
Use the Right Tool for the Job
Microsoft Office Suite Word - word processing Excel - spreadsheet PowerPoint - presentation Access - database
OLE = Object Linking and Embedding Use Visual Basic to create a specialized,
customized application
![Page 25: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/25.jpg)
25
Summary ...
Event-driven languages is a major improvement in programming languages
Editions include Learning Edition, Professional Edition, and Enterprise Edition
CD-ROM includes the MSDN Library, and many sample programs
![Page 26: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/26.jpg)
26
Summary
Integrated Development Environment includes Form Designer, Form Layout Code Edition, Project Explorer Properties and Object Browser
Choose the right tool for the job Visual Basic is the glue that binds Windows
objects together
![Page 27: 1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:](https://reader030.fdocuments.us/reader030/viewer/2022032802/56649e045503460f94aefc34/html5/thumbnails/27.jpg)
27
End of Lecture