QBasic Chapter 1 – Introduction to Computer Systems & QBasic.
-
Upload
raymond-foster -
Category
Documents
-
view
268 -
download
7
Transcript of QBasic Chapter 1 – Introduction to Computer Systems & QBasic.
![Page 1: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/1.jpg)
QBasic
Chapter 1 – Introduction to Computer Systems & QBasic
![Page 2: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/2.jpg)
Introduction
Importance of computers What is a computer? Computer Programs Programming Languages
![Page 3: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/3.jpg)
What Computers Can Do
Arithmetic Operations Comparison (logical) operations Storage & retrieval operations
Speed & Accuracy
![Page 4: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/4.jpg)
Components of a Computer System
Hardware– System Unit– CPU – control unit & arithmetic logic unit– Main Memory
Peripheral Devices– Input– Output
![Page 5: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/5.jpg)
Components of a Computer System
Secondary Storage– Floppy disk, hard drive, CD, DVD, Flash Drive
Secondary Storage Devices– Used to copy data to & from secondary storage
Storage space measured in Bytes– Kilobyte, Megabyte, Gigabyte, Terabyte
![Page 6: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/6.jpg)
Categories of Computer Systems
Supercomputers Mainframes Minicomputers Microcomputers
![Page 7: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/7.jpg)
Where Did All this Start?
Operating System User Interface
– Command-Line Interface– Graphical User Interface
DOS – Disk Operating System– Command-line– Used to run QBasic
![Page 8: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/8.jpg)
QBasic
Designed from the BASIC language Enhanced, menu-driven Online Help Structured language
![Page 9: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/9.jpg)
Running QBasic
Installed on your H: drive Double click on QB.exe Use mouse and arrow keys to navigate Menu Bar
– File - Edit– View - Search– Run - Debug– Options - Help
![Page 10: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/10.jpg)
QBasic
Title Bar Reference Bar Immediate Window
![Page 11: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/11.jpg)
Menus
File– New– Open– Save– Save As– Print– Exit
![Page 12: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/12.jpg)
Menus
View– SUBs– Split– Output Screen
Run– Start– Restart– Continue
![Page 13: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/13.jpg)
Entering & Editing Programs
Use CLS to clear screen at beginning Type commands one line at a time Hit Enter to go to next line Scroll up & down as needed
![Page 14: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/14.jpg)
Key Words in QBasic
CLS INPUT PRINT
– Put text in “double quotes”– Use semi-colon ; between quoted text & variable
names Use $ for text variables
– User$, Instructor$, Title$
![Page 15: QBasic Chapter 1 – Introduction to Computer Systems & QBasic.](https://reader036.fdocuments.in/reader036/viewer/2022082321/56649e0c5503460f94af571f/html5/thumbnails/15.jpg)
Being a Responsible Computer User
Computer Ethics Hardware
– Backup data– Store media properly
Software– Commercial Software– Shareware– Public-domain Software