An overview of computers, their components, and the role of visual basic (vb) as a user-friendly high-level programming language. Topics covered include the definition of a computer, its main components (cpu, ram, and hard disk drive), input and output devices, and the difference between machine language and high-level languages like vb. The document also discusses the graphical user interface (gui) and event-driven methodology in vb.
Download Computers & Visual Basic: Basics of Computing & Programming and more Study notes Engineering in PDF only on Docsity!
INTRODUCTION TO
COMPUTERS AND VISUAL
BASIC
Robert Burtch
Surveying Engineering Department
Ferris State University
WHAT IS A COMPUTER?
A programmable machine. The two principal
characteristics of a computer are:
It responds to a specific set of instructions in a well-defined manner.
It can execute a prerecorded list of instructions (a program). from http://www.webopedia.com/TERM/C/computer.htm - Fixing H.A.L.โs memory
THE COMPUTER
Central processing
unit (CPU)
Where most of the calculations take place
Most important part of computer - Random access
memory (RAM)
Main memory
When computer turned off, memory erased
Can write and read to RAM
THE COMPUTER
Hard disk drive
Place where instructions and data stored when not in memory or when computer turned off - Device card - Send commands to different devices like the monitor, speakers, network, etc.
THE COMPUTER
High level languages:
Visual Basic, Fortran, etc.
Compiler translates program into machine language
Programmer writes program for computer to execute
VISUAL BASIC
(VB)
User-friendly program โ
language most accessible to
beginning programmers
Requires Microsoft Windows
operating system
GUI โ graphical user
interface
Desktop filled with icons instead of cursor prompt
Describes purpose of program
Now I can be onewith Visual Basic
GUI
Old approach (DOS)
Requests entered one at a time, in order
No ability to alter information - With GUI - User enters information in any order - Can edit information - User in control
Affects how program feels
DEVELOPING VB APPLICATION
Programmer draws the user interface
Command buttons, text boxes, and other objects placed in window will automatically recognize user actions like mouse movement or button click