 Introduction to Programming History of programming.

Slides:



Advertisements
Similar presentations
Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
Advertisements

CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Programming TBE 540 Farah Fisher. Objectives After viewing this presentation, the learner will be able to… Given a task, create pseudocode Given pseudocode,
Chapter 1 - An Introduction to Computers and Problem Solving
Introduction to Programming
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
Chapter 2- Visual Basic Schneider
Program Development and Programming Languages
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Developing logic (Examples on algorithm and flowchart)
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
PRE-PROGRAMMING PHASE
Chapter 1 Pseudocode & Flowcharts
Your Interactive Guide to the Digital World Discovering Computers 2012.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
1 Software Development Topic 2 Software Development Languages and Environments.
CC111 Lec#5: Program Development 1 Program Development and Programming Languages Lecture 4 Reference :Understanding Computers Chapter 13.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Flowcharts and Algorithms. Review of Terms  A computer is a machine that can represent and manipulate data –Ultimately the data and the instructions.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
1 Program Planning and Design Important stages before actual program is written.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
The Hashemite University Computer Engineering Department
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Algorithms and Pseudocode
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2- Visual Basic Schneider1 Programming Languages: Machine Language Assembly Language High level Language.
 Problem Analysis  Coding  Debugging  Testing.
Algorithms and Flowcharts
Software Development.
Programming Languages
CSCI-235 Micro-Computer Applications
Chapter 2- Visual Basic Schneider
Programming Mehdi Bukhari.
A451 Theory – 7 Programming 7A, B - Algorithms.
Developing Applications
TRANSLATORS AND IDEs Key Revision Points.
(Course Introduction)
Chapter 2- Visual Basic Schneider
CS105 Introduction to Computer Concepts Intro to programming
Chapter 2- Visual Basic Schneider
The Programming Process
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
ICT Programming Lesson 1:
ICT Gaming Lesson 2.
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
CS105 Introduction to Computer Concepts Intro to programming
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

 Introduction to Programming History of programming

The first programmer  The first programmer was a woman – Ada Lovelace  Who made the first computer??  xALPcyw xALPcyw

What is programming?  Programming is breaking a task down into small steps

Why learn to Program?  Programming really is fun  Programmers make lots of money  Programming is very intellectually rewarding  Programming makes you feel superior to other people  Programming gives you complete control over an innocent, vulnerable machine, which will do your evil bidding with a loyalty not even your pet dog can rival.

What makes a good programmer? There are a few traits which might indicate that the person would be a good programmer:  Logical  Patient  Perceptive  At least moderately intelligent  Enjoys an intellectual challenge  Star Trek fan  Female *

Female *  Actually, males and females make equally good programmers.  It's true that there are currently more male programmers than female, which is strange given that one of the first ever programmers (Ada Lovelace) was female.

How to program? Here's a quick overview of the process:  Write a program.  Compile the program.  Run the program.  Debug the program.  Repeat the whole process until the program is finished.

Write a program  Choose a programming language.. There are many to choose from:  Java  C  C++  Python  Create a program is usually called source code, or just code.

Compile a program  In order to use a program, you usually have to compile it first.  When you write a program, it's not yet in a form that the computer can use.  Computers actually only understand lots of 1s and 0s in long streams, known as binary  You can't very well write programs using only vast amounts of 1s and 0s, so you write it in a more easily-understood form (a programming language)  Then you convert it to a form that the computer can actually use.  This conversion process is called compiling, or compilation.

Run the program  Once you have compiled the program into a form that the computer can use, you want to see if it works:  This is called running the program, or sometimes executing it

Debugging  It refers to fixing errors and problems with your program.  A problem in a program is known as a bug in a program

Scripting Languages  You've perhaps heard about something called scripting, or maybe you've heard of languages like JavaScript, AppleScript, Tcl and others (those languages are called scripting languages).  Scripting is essentially a type of programming  Scripting languages tend to be interpreted rather than compiled, which means that you don't need to compile them - they're compiled "on the fly”  The fact that scripting languages are interpreted generally makes them slower than programming languages for intensive operations (like complex calculations)  Scripting languages are often easier to learn than programming languages, but usually aren't as powerful or flexible  For programming things like applications for personal computers, you'll need to use a programming language rather than a scripting language

13 Programming Languages:  Machine Language  Assembly Language  High level Language

14 Machine Language  The fundamental language of the computer ’ s processor, also called Low Level Language.  All programs are converted into machine language before they can be executed.  Consists of combination of 0 ’ s and 1 ’ s that represent high and low electrical voltage.

15 Assembly Language  A low level language that is similar to machine language.  Uses symbolic operation code to represent the machine operation code.

16 High Level Language  Computer (programming) languages that are easier to learn.  Uses English like statements.  Examples are C ++, Visual Basic, Pascal, Fortran and …....

17 Program Development Cycle: 1. Analyze: Define the problem 2. Design: Plan the solution to the problem 3. Choose the Interface: Select the objects

18 Program Development Cycle: 4. Code: Translate the algorithm into a programming language. 5. Debug and Test: Locate and remove any errors in the program. 6. Complete the Documentation: Organize all the materials that describe the program.

19 Programming Tools:  Flowchart  Pseudocode

20 What is a flowchart?  Logic diagram to describe each step that the program must perform to arrive at the solution.  A popular logic tool used for showing an algorithm in graphics form.

Chapter 2- Visual Basic Schneider 21 Purpose of Flowcharting:  An aid in developing the logic of a program.  Verification that all possible conditions have been considered in a program.  Provides means of communication with others about the program.  A guide in coding the program.  Documentation for the program.

Flowchart Turn A/C off (process) False Turn on A/C (process) True Temp > 25 (decision) End Start Temp (input) The flow chart is made up of an input, decision and the alternative processes or actions.

24 Example of Flowchart to show changing the score Start Set Score counter = 0 If Collides with Asteroid Change score Yes Display score

25 What is a Pseudocode?  A program design technique that uses English words.  Has no formal syntactical rules.

26 Example of Pseudocode:  Determine the average grade of a class: Declare variable score Set score variable to 0 If spaceship collides with the asteroid Get the current score Increment the score Output/display new score on the stage

27 Example of Pseudocode:  Determine the average grade of a class: Do while there are more data Get the next Grade Add the Grade to the Sum Increment the Counter Loop Compute average = Sum / Counter Display average

Home Learning Task…..See Grid

Useful Resources  What is computer programming ?