Top Banner
1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction to Visual Basic 1.5 If time we may cover some history of Computing
38

1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

Dec 27, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

1

Chapter 1 - An Introduction to Computers and Visual Basic

• 1.1 An Introduction to Computers

• 1.2 Using Windows

• 1.3 Files and Folders

• 1.4 An Introduction to Visual Basic

• 1.5 If time we may cover some history of Computing

Page 2: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

2

1.1 An Introduction to Computers

• Types of Computers• PC• Main Frame• Cluster• Mac• Super Computer• Imbedded

Page 3: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

3

Computer uses in Society

• Banking – customer transactions

• Airlines – reservations system

• NASA – control satellites

• Internet – email, research, shopping

Page 4: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

5

Communicating with the Computer

• Machine language – low level, hard for humans to understand

• Visual Basic – high level, understood by humans, consists of instructions such as Click, If, Do

• Compiler

Page 5: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

6

Computers and Complicated Tasks

• Tasks are broken down into instructions that can be expressed by a computer language

• A program is a sequence of instructions

• Programs can be only a few instructions or millions of lines of instructions

Page 6: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

7

Servers• A server can be almost any computer

• But runs a specific server program

• A server provides resources to other computers• Files• Internet• Printers• Serves up resources like a server in a restaurant

Page 7: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

8

All Programs Have in Common:

• Take data and manipulate it to produce a result

• Input – Process – Output• Input – from files, the keyboard, or other

input device• Output – to the monitor, printer, file, or other

output device

Page 8: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

9

Hardware and Software

• Hardware – the physical components of a computer• Keyboard• Disk drive• Monitor

• Software – The instructions that tell the computer what to do

Page 9: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

10

Programmer and User

• Programmer – the person who solves the problem and writes the instructions for the computer

• User – any person who uses the program written by the programmer

Page 10: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

11

Problem Solving

• Developing the solution to a problem

• Algorithm – a step by step series of instructions to solve a problem

• Usually the hard part once you’ve figured out the syntax• Syntax is the formal definition of the

computer language

Page 11: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

12

Visual Basic 2005

• BASIC originally developed at Dartmouth in the early 1960s

• Visual Basic created by Microsoft in 1991

• Visual Basic 2005 is similar to original Visual Basic, but more powerful

Page 12: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

13

1.3 Files & Folders:

• Using Windows Explorer

• Using the Open and Save As Dialog Boxes

Page 13: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

14

Key Terms in using Folders and Files

Term Example

• Root folder C:\

• Subfolder VB01

• Path C:\VB01

• Filename PAYROLL.TXT

• Filespec C:\VB01\PAYROLL.TXT

Page 14: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

15

Invoking Windows Explorer

• Start | Run | type in Explorer|Enter

• Folders pane on left

• Detail pane on right

• Right-click on most icons and choose explore

Page 15: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

16

Explorer Window

Page 16: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

17

To Display File Extensions

• Alt/Tools/Folder Options

• Click the View tab.

• Uncheck "Hide extensions for known file types“.

• Click OK.

• Why is this important?

Page 17: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

Windows Explorer

• Create a new folder

• Rename file or folder

• Delete

• Copy

• Move

18

Page 18: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

19

Using the Open and Save As Dialog Boxes

Page 19: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

20

1.4 An Introduction to Visual Basic 2005

• Why Windows and Why Visual Basic

• How You Develop a Visual Basic Application

• The Different Versions of Visual Basic

Page 20: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

21

Visual Basic 2005

• Language used to create Windows applications.

• Provides a Graphical User Interface or GUI.

• The sequence of instructions executed in the program is controlled by events.

Page 21: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

22

Sample Input Screen

Page 22: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

23

How to Develop a Visual Basic Application

• Design the Interface for the user. • Determine which events the controls on the

window should recognize.• Write the event procedures for those events.

Page 23: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

24

Different Versions of Visual Basic

• Version 1.0 – 1991• Version 2.0 – 1992• Version 3.0 – 1993• Version 4.0 – 1995• Version 5.0 – 1997• Version 6.0 – 1998• Visual Basic.NET – 2002 (NOT BACKWARD

COMPATIBLE WITH EARLIER VERSIONS)• Visual Basic 2005• Visual Basic 2008 – Just released, no books yet

Page 24: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

HISTORY

25

Page 25: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

26

1.5 Biographical History of Computing

• 1800s• 1930s• 1940s• 1950s• 1960s• 1970s• 1980s• 1990s

Page 26: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

27

1800s• George Boole – devised Boolean

algebra• Charles Babbage – created "analytical

engine"• Augusta Ada Byron – first computer

programmer• Herman Hollerith – founder of company

that would become IBM

Page 27: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

28

1930s

• Alan Turing – deciphered German code in WWII; father of artificial intelligence

• John V. Atanasoff – inventor of first electronic digital special purpose computer

Page 28: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

29

1940s• Howard Aiken – built large scale digital

computer, Mark I• Grace M. Hopper – originated term

"debugging"; pioneered development and use of COBOL

• John Mauchley and J. Presper Eckert – built first large scale general purpose computer, ENIAC

Page 29: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

30

1940s continued

• John von Neumann – developed stored program concept

• Maurice V. Wilkes – built EDSAC, first computer to use stored program concept

• John Bardeen, Walter Brattain, and William Shockley – developed transistor that replaced vacuum tubes

Page 30: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

31

1950s

• John Backus – created Fortran; early user of interpreters and compilers

• Reynold B. Johnson – invented the disk drive

• Donald L. Shell – developed efficient sorting algorithm

Page 31: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

32

1960s• John G. Kemeny and Thomas E. Kurtz –

invented BASIC• Corrado Bohm and Guiseppe Jacopini –

proved that any program can be written with only 3 structures: sequence, decision, and loops

• Edsger W. Dijkstra – stimulated move to structured programming by declaring "GOTO" harmful

Page 32: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

33

1960s continued

• Harlan B. Mills – advocated use of structured programming

• Donald E. Knuth – wrote definitive work on algorithms

• Ted Hoff, Stan Mazer, Robert Noyce, and Frederico Faggin – developed first microprocessor

Page 33: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

34

1960s continued

• Douglas Engelbart – invented computer mouse

Page 34: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

35

1970s• Ted Codd - software architect; laid the

groundwork for relational databases• Paul Allen and Bill Gates - cofounders of

Microsoft Corporation• Stephen Wozniak and Stephen Jobs -

cofounders of Apple Computer Inc. • Dan Bricklin and Dan Fylstra - wrote

VisiCalc, the first electronic spreadsheet program

Page 35: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

36

1970s continued• Dennis Ritchie - creator of the C programming

language.• Ken Thompson - created the Unix operating

system• Alan Kay – developer of Smalltalk, a pure

object-oriented language• Don Chamberlain - created a database

programming language, later known as SQL,

Page 36: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

37

1980s• Phillip “Don” Estridge - at IBM directly

responsible for the success of the personal computer.

• Mitchell D. Kapor - cofounder of Lotus Corporation

• Tom Button - group product manager for applications programmability at Microsoft;

• headed the team that developed QuickBasic, QBasic, and Visual Basic.

Page 37: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

38

1980s continued• Alan Cooper - considered the father of Visual

Basic.• Tim Berners–Lee - father of the World Wide

Web.• Charles Simonyi - father of Word.• Bjarne Stroustrup - creator of the C++

programming language. • Richard M. Stallman - founded Free Software

Foundation

Page 38: 1 Chapter 1 - An Introduction to Computers and Visual Basic 1.1 An Introduction to Computers 1.2 Using Windows 1.3 Files and Folders 1.4 An Introduction.

39

1990s

• Marc Andreessen - inventor of the Web browser.

• James Gosling – creator of Java.

• Linus Torvalds - developed the popular Linux operating system.