BASIC: - PowerPoint PPT Presentation

1 / 50
About This Presentation
Title:

BASIC:

Description:

Understand the truth behind common programming myths. Master source code concepts ... Two aspects of this lesson: Introduction ... A computer is only a machine ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 51
Provided by: laverne4
Category:
Tags: basic | common | touch

less

Transcript and Presenter's Notes

Title: BASIC:


1
BASIC
  • a programming language

2
Expectations 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

3
Two aspects of this lesson
  • Introduction into the nature of programming
  • Later hands-on practice

4
What a Computer Does
  • Need to know about more than simple word
    processing, record keeping, etc.

5
At its simplest level, a computer processes data.
6
  • Computer programming departments are often part
    of Data Processing Departments

7
Data 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)

8
The 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

10
a 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

11
Programmers Job
  • Design and write programs
  • Direct the computer to
  • Take raw data
  • Transform data into meaningful information
  • For the end user

12
End user
  • Usually just called the user
  • Generally a nontechnical, nonprogramming person
  • Who needs the results of the program

13
Programmer
  • Responsible for guiding the computer
  • Using the program you write
  • To complete specific tasks

14
Common 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

16
No need to fear computers
  • Computers are tools to help you get your job done

17
You can learn to program
18
Like a robot
  • Ready to take and follow instructions
  • Only as well as the program describes

19
A computer is just another tool
20
Myth 1
  • Only Math Experts can program computers

21
Not 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

22
Programming builds your logical and critical
thinking skills
23
People who favor logic puzzles, crosswords,
anagrams, and word search games seem to adapt
well to programming but that is still not
required.
24
Myth 2
  • Computers make mistakes

25
Remember 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!

26
Computers do not make mistakes
  • People Do!

27
What are some examples?
28
Computers 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

29
Malfunctions
  • 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!

30
Data problems are generally user problems
  • Remember the citation
  • BKAS
  • The problem is
  • Between the Keyboard and the Seat
  • The USER!

31
Myth 3
  • Computers are difficult to program

32
Getting 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

33
Many programs already exist
  • But sometimes you need something different for a
    special task

34
Programmers are in demand
  • Types
  • Java
  • C
  • Visual Basic
  • Systems analysts
  • Senior systems analysts
  • Object-oriented programmers
  • HTML coders
  • Application Programmers

35
YOU can learn how!
36
Real Value of Programs
37
More programs needed every year
  • Always a need
  • New programs
  • Updates for current programs
  • Just part of doing business for people and
    businesses

38
Hardware and Software
  • What is Hardware?
  • The physical items you can touch
  • What is Software?
  • The untouchable program that makes everything
    work
  • Constantly changing needs

39
Users generally dont own programs
  • They just purchase the right to use them
  • A License

40
Buy 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

41
Giving Computers Programs
  • Use programs like Liberty BASIC to create and
    enter programs into the computer

42
A 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
43
Liberty 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

44
Lines 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

45
A 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

46
Syntax
  • Again this is the proper use of programming
    language grammar

47
Source 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

48
All programs converted to machine language
  • Written in programming language
  • Changed to machine language

49
The 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

50
Compiler is a translation program
  • Liberty BASIC is just one type of compiler
  • Based on one language -- BASIC
Write a Comment
User Comments (0)
About PowerShow.com