cs130 introduction to programming with vb 6.0
DESCRIPTION
CS130 Introduction to Programming with VB 6.0. Fall 2001. Computer System. Computer hardware Computer software Users + computer professionals. Hardware. Computer hardware Central Processing Unit (CPU): interprets and executes instructions - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/1.jpg)
CS130 Introduction to Programming with VB 6.0
Fall 2001
![Page 2: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/2.jpg)
Computer System
• Computer hardware• Computer software• Users + computer professionals
![Page 3: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/3.jpg)
Hardware
• Computer hardware– Central Processing Unit (CPU): interprets and executes
instructions– Main memory (RAM): stores programs/data that are
currently being executed/processed; volatile.– Secondary memory (floppy disk, hard disk, CD, DVD):
mass backup storage; non-volatile.– Input devices: keyboard, scanners, etc.– Output devices: printers, monitors, etc.
![Page 4: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/4.jpg)
Software
• Software = program(s); a program is a list of instructions (coded in a particular programming language) that directs the hardware to perform a specific data processing task.
![Page 5: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/5.jpg)
Two types of software
• Systems software: performs system-oriented tasks such as backing up files; typical system software includes the operating system such as MS Windows and compilers
• Applications software: performs user-oriented tacks such as wordprocessing; typical applications software includes wordprocessors, Power-point, etc.
![Page 6: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/6.jpg)
Three-levels of Computer Languages
• Low-level machine language: 0's and 1's• Intermediate assembler languages: mnemonics;
needs translator known as assembler.• High-level procedural languages: needs translators
known as compilers; Visual Basic which will be taught in this class is a popular HLL.
• Natural or spoken language: an ideal; hard to implement due to ambiguities
![Page 7: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/7.jpg)
Visual Basic a brief history
• BASIC: Beginners All-purpose Symbolic Instruction Code, implemented in the 1960s; easily to learn/use; handles only textual data.
• Visual BASIC: evolved from BASIC, capable of handling both graphical and textual materials; object-oriented and event-driven language.
![Page 8: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/8.jpg)
Program development life cycle (PDLC)
![Page 9: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/9.jpg)
Flowchart symbols: tools for algorithm development
![Page 10: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/10.jpg)
Structured programming (top-down chart or hierarchy chart or hierarchical input process output or HIPO)
![Page 11: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/11.jpg)
Basic construct (building block) of a program
![Page 12: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/12.jpg)
Basic construct (building block) of a program
![Page 13: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/13.jpg)
Basic construct (building block) of a program
![Page 14: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/14.jpg)
Basic construct (building block) of a program
![Page 15: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/15.jpg)
Basic construct (building block) of a program
![Page 16: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/16.jpg)
Example: sales commission computation for female and male salespersons for a company
![Page 17: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/17.jpg)
Object-oriented programming: concepts of class, sub-class, super-class, inheritance, objects (instances)
![Page 18: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/18.jpg)
Unified Modeling Language (UML): describing and documenting an OO system
![Page 19: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/19.jpg)
![Page 20: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/20.jpg)
Event-driven programming paradigm
![Page 21: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/21.jpg)
![Page 22: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/22.jpg)
![Page 23: CS130 Introduction to Programming with VB 6.0](https://reader034.vdocuments.site/reader034/viewer/2022051518/56815ccb550346895dcad8ea/html5/thumbnails/23.jpg)