Title: BASIC:
1BASIC
2Expectations for this lesson
- Learn what a program does
- Understand the truth behind common programming
myths - Master source code concepts
- Eventually when software is loaded
- Use the computer for programming
- Enter and run a program
3Two aspects of this lesson
- Introduction into the nature of programming
- Later hands-on practice
4What a Computer Does
- Need to know about more than simple word
processing, record keeping, etc.
5At its simplest level, a computer processes data.
6- Computer programming departments are often part
of Data Processing Departments
7Data and Information
- Is there a difference between the terms?
- Yes
- So what is that difference?
- Raw data consists of facts and figures (i.e.
stock process for hundreds of days) - Program might process that data into meaningful
information (i.e. a line chart for overall trend
of stock prices)
8The computer program tells the computer what to
do
9- Processed data is still information
- The programs stored output is changed in some
way - What are some examples?
- Collecting monthly totals from various accounts
to make an income/expense report
10a Program
- What is it?
- A list of detailed instructions that the computer
carries out - The driving force behind any job a computer does
- A computer cannot do anything without a program
11Programmers Job
- Design and write programs
- Direct the computer to
- Take raw data
- Transform data into meaningful information
- For the end user
12End user
- Usually just called the user
- Generally a nontechnical, nonprogramming person
- Who needs the results of the program
13Programmer
- Responsible for guiding the computer
- Using the program you write
- To complete specific tasks
14Common misconceptions
- Easy to misunderstand and even fear computer if
you arent trained - Several myths have developed about them
15- A computer is nothing more than a dumb machine
that knows absolutely nothing - YOU supply the program that tells the computer
what to do - YOU are the smart part of the whole process
16No need to fear computers
- Computers are tools to help you get your job done
17You can learn to program
18Like a robot
- Ready to take and follow instructions
- Only as well as the program describes
19A computer is just another tool
20Myth 1
- Only Math Experts can program computers
21Not true
- Why?
- Wouldnt be practical
- Math is not as important as people think for
programming - The computer does all the math
- But your math skills will improve as part of the
process
22Programming builds your logical and critical
thinking skills
23People who favor logic puzzles, crosswords,
anagrams, and word search games seem to adapt
well to programming but that is still not
required.
24Myth 2
25Remember the saying?
- To err is human, but to really foul things up
takes a computer! - Might be accurate why?
- Computers are so fast that duplicate peoples
mistakes rapidly!
26Computers do not make mistakes
27What are some examples?
28Computers always do the same thing with the same
input
- Given the same input, they always produce the
same output - Your job is to tell them the right things to do
and what input to use
29Malfunctions
- When they do happen, they are usually not simple
- They go all out when they have a problem and
cause serious issues - Fortunately they rarely have problems!
30Data problems are generally user problems
- Remember the citation
- BKAS
- The problem is
- Between the Keyboard and the Seat
- The USER!
31Myth 3
- Computers are difficult to program
32Getting easier to use and program every day!
- It is mostly a task of figuring out
- What you want accomplished
- How to tell computer what it needs to do
- Learning what directions the computer expects
33Many programs already exist
- But sometimes you need something different for a
special task
34Programmers are in demand
- Types
- Java
- C
- Visual Basic
- Systems analysts
- Senior systems analysts
- Object-oriented programmers
- HTML coders
- Application Programmers
35YOU can learn how!
36Real Value of Programs
37More programs needed every year
- Always a need
- New programs
- Updates for current programs
- Just part of doing business for people and
businesses
38Hardware and Software
- What is Hardware?
- The physical items you can touch
- What is Software?
- The untouchable program that makes everything
work - Constantly changing needs
39Users generally dont own programs
- They just purchase the right to use them
- A License
40Buy a License
- Individual and site licenses
- EVERY MACHINE MUST HAVE A LICENSE TO USE ANY
SOFTWARE! - The programmers and companies developing the
software - Grant you the right to USE the software
- You dont own the software itself
41Giving Computers Programs
- Use programs like Liberty BASIC to create and
enter programs into the computer
42A Sample Program
Filename First.bas Prints a countdown from
10 to 1 For I 10 To 1 Step -1 Print I Next
I Print Blast Off! End
43Liberty BASIC
- A programming system that helps you create
programs and run them - Do you know what BASIC stands for?
- Beginners All-purpose Symbolic Instruction Code
44Lines of words that look like English
- The program instructions
- There are also items that do not seem to make
sense until you learn the language - Each word has a special computer meaning
45A computer is only a machine
- The programmer give the instructions to the
computer using a programming language - There are very special rules about how the
language works - Proper programming language grammar
- SYNTAX
46Syntax
- Again this is the proper use of programming
language grammar
47Source Code
- The program you write
- Must be accurate for the machine to understand
you - In this school we know about trying to understand
different languages! - Source code gets translated to machine language
something the machine understands - Binary code 00011001
48All programs converted to machine language
- Written in programming language
- Changed to machine language
49The Compiler
- Converts human-readable source code
- Formed from programming language
- Into machine language your computer understands
- Important to change your instructions into
language the computer can understand - So it can do its work correctly
50Compiler is a translation program
- Liberty BASIC is just one type of compiler
- Based on one language -- BASIC