Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

Programming Merit Badge
Video Game Design Lesson 1. Game Designer Person involved in the development of a video game Person involved in the development of a video game Usually.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Python Programming Chapter 1: The way of the program Saad Bani Mohammad Department of Computer Science Al al-Bayt University 1 st 2011/2012.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Introduction to a Programming Environment
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
An Overview of Computers and Programming
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
Neal Stublen Computer Systems Hardware Display Keyboard Mouse Microphone Memory Chips Microprocessor.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Introduction to Programming. Our Book in CS Why Program? Lets watch a video
1 Software Development Topic 2 Software Development Languages and Environments.
High level & Low level language High level programming languages are more structured, are closer to spoken language and are more intuitive than low level.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction to Computers and Programming – Computer Programming.
CS101 Introduction to Computing Lecture Programming Languages.
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Computer Components.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
Chapter 11 An Introduction to Visual Basic 2005 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
What am I?. Translators Translators – Module Knowledge Areas Types of translators and their use Lexical analysis Syntax analysis Code generation and.
I Power Higher Computing Software Development Development Languages and Environments.
Computing System Fundamentals 3.1 Language Translators.
Java Methods Methods contain a group of instructions that together perform a single task. For example if I want to perform the task of “making a pizza”,
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
11 Computers, C#, XNA, and You Session 1.1. Session Overview  Find out what computers are all about ...and what makes a great programmer  Discover.
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Today's Ninja Challenge: Write Your First Computer Game!
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Chapter 1: Introduction to Computers and Programming.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Development Environment
A451 Theory – 7 Programming 7A, B - Algorithms.
TRANSLATORS AND IDEs Key Revision Points.
Assembler, Compiler, Interpreter
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Introduction to Algorithm Design
Assembler, Compiler, Interpreter
Introduction In today’s lesson we will look at: why Python?
ICT Programming Lesson 1:
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
What is Programming Language
Review of Previous Lesson
Presentation transcript:

Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get ready for programming in Python

What is Programming? Put very simply, programming is telling the computer what to do! Programs can be applications on your computer or apps on your phone, but also lots of other things such as macros, web-pages, etc. Some types programs – e.g. Word – run on their own, others – e.g. Scratch or macros – need another program or web-site to make them run. Almost every program that you use will have been “written” by a person – or more likely a team of people.

Different Types of Program Computers don’t understand Python or BASIC or Scratch, so before a program is run, it needs to be converted into a form that the computer can understand, called machine code: Some programs are compiled – the programmer uses a tool called a compiler to convert their program into an executable file that runs on its own. Some programs are interpreted – the interpreter converts the program, possibly line-by-line (or block-by-block in the case of Scratch), as it actually runs. Early programmers also used assemblers to convert low- level instructions into programs, and Java is an exception – it’s half-compiled and then interpreted.

Compilers Most programs that run on PCs are compiled – examples include things like web-browsers, office software and graphics applications. Compiled Windows applications are usually in files that end in.exe – they can be run without the compiler. Programs created in programs such as C/C++ or VisualBasic are compiled – the user doesn’t get to see the original code written by the programmers. Compiled programs usually run more quickly as you don’t have to wait for them to be interpreted. That’s why Android Lollipop compiles apps when you install them – previous versions interpreted them at run-time.

Interpreters Sometimes programming languages that are interpreted are called scripting languages – the program, or script, is often just written in a text file. Examples include JavaScript, VBScript or PHP for web-pages, VBA for Office macros, JustBasic, Scratch and Python. The program that you write can’t be run without the interpreter – e.g. you can’t create a standalone application in JavaScript; it needs the web-browser. Because interpreters have to convert the script into a language and then run it, interpreted programs traditionally run more slowly than compiled ones.

High or Low Level? Where the commands in a programming language resemble words to in English to describe what you want to do, e.g. print, input, if, etc., then the language is described as high-level. Where the commands are less recognisable, and are mainly concerned with technical detail (such as using memory addresses), then the language is described as low-level.

Integrated Development Environment Programmers often use an integrated development environment (IDE) to create programs. An IDE will usually include: an editor, to allow you to create your programs – often they will colour-code aspects of your program, or even suggest which command or symbol might come next debugging tools – e.g. the ability to add breakpoints (where your program will stop and you can look at the value of the variables, etc.) a way of running the program to see if it works Examples include Microsoft Visual Studio and IDLE…

Integrated Development Environment

Which Language is Best? Actually, learning to program isn’t just about learning the language. All languages include things like: –Variables –Decisions –Repetition –Events The real skill is being able to take an idea for a program and to use these things to create it

Events We won’t spend much time looking at events to begin with, but events are things that can happen to your program, e.g. –mouse clicks and movements –key presses –screen touches –objects colliding –controls/form fields, etc. getting “focus” You will need to decide what your program should do when these things happen.

Can We Start Now? For this section of the course, we’re going to be looking at the Python programming language. Python is an interpreted language – the programs themselves are just text files so you can use Notepad. It’s much easier, however, to use an IDE – there is a free one called IDLE that works well with Python.

Downloading IDLE and Python Python can be downloaded from: There are two current versions – 2.7.x and 3.4.x – you won’t notice much difference at this stage There are versions for 32-bit Windows and 64-bit Windows – if you’re not sure what you’re using, the 32-bit version will work on both.