INLS 560 – P ROGRAMMING FOR I NFORMATION P ROFESSIONALS Instructor: Jason Carter.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
compilers and interpreters
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
C OMP 110 – I NTRODUCTION TO P ROGRAMMING Instructor: Jason Carter.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
CHAPTER 1 INTRODUCTION GOALS  To understand the activity of programming  To learn about the architecture of computers  To learn about machine code and.
Comp 14 Introduction to Programming Instructor: Prasun Dewan (Pr  sün Divän)
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
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.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 2 Fundamentals of Programming Languages 4/5/09 Python Mini-Course: Day.
Introduction to Java Tonga Institute of Higher Education.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Topics Introduction Hardware and Software How Computers Store Data
I NTRODUCTION TO P ROGRAMMING Lecture No. 1 and 2 Combined Lahore Leads University 21 st October 2013.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
C OMP 110 – I NTRODUCTION TO P ROGRAMMING Instructor: Prasun Dewan.
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
PhD, Senior Lecturer, Baimuratov Olimzhon A LGORITHMS & P ROGRAMMING (P YTHON ) Lecture 1 From SDU:
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
Introduction to Programming Peggy Batchelor.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Python From the book “Think Python”
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
P ROGRAMMING L OGIC AND D ESIGN S IXTH E DITION Chapter 1 An Overview of Computers and Programming.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Software Engineering Algorithms, Compilers, & Lifecycle.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
1-1 The Python IDE.
Software Development Environment
Why don’t programmers have to program in machine code?
Lecture 1b- Introduction
Topics Introduction Hardware and Software How Computers Store Data
CSCI-235 Micro-Computer Applications
Completing the Problem-Solving Process
C++ Programming: From Problem Analysis to Program Design
TRANSLATORS AND IDEs Key Revision Points.
CS190/295 Programming in Python for Life Sciences: Lecture 1
Introduction to Algorithm Design
Topics Introduction Hardware and Software How Computers Store Data
Accomplishing Executables
Computer Programming-1 CSC 111
1.3.7 High- and low-level languages and their translators
Introduction to Computer Science
Presentation transcript:

INLS 560 – P ROGRAMMING FOR I NFORMATION P ROFESSIONALS Instructor: Jason Carter

A P ROGRAM Set of instructions that a computer follows to perform a task or solve a problem

P IAZZA Signup Link: piazza.com/unc/fall2014/560 Class page: piazza.com/unc/fall2014/560/home

W HAT IS A P ROGRAM ? Set of instructions that a computer follows to perform a task or solve a problem

P EANUT B UTTER & J ELLY S ANDWICH

W HAT D ID WE L EARN F ROM T HIS E XERCISE ? Computers are dumb! Computers only do what you tell them to do. Computers do what you tell them to do really fast, so they appear smart (but they are not). Computers don’t remember anything unless you tell them how to remember. Computers take your instructions literally. If you tell them to do something dumb, they do it. Computers only do what they are told and in exactly the order you tell them.

W HAT L ANGUAGE D O C OMPUTERS U NDERSTAND ? A computer understands 1’s and 0’s Sequences of 1’s and 0’s Operation Examples: reading data, adding, subtracting, multiplying, and dividing numbers CPU (Central Processing Unit) Reads instructions from memory Decodes fetched instruction to determine which operation to perform Perform the operation

M ACHINE L ANGUAGE Reasons for not using machine language Virtually unreadable.. Hard maintain and debug. No mathematical functions available (we need to create our own code for these routines every time we write a new program). Memory locations are manipulated directly, requiring the programmer to keep track of every memory location on the computer! (How much memory does your computer have?)

O VERCOME D IFFICULTY OF U SING M ACHINE L ANGUAGE Want to use a English like language Computers only understand machine language( 1’s and 0’s) English Like Language Converter Machine Language

H IGH L EVEL L ANGUAGES Compiled Java, C#, C++ Interpreted Python, PHP

C OMPILED L ANGUAGES A compiler reads the program and translates it completely before the program starts running. Java, C#, C++ Compiler Machine Language

I NTERPRETED L ANGUAGES Interpreter reads code and performs operations one line at a time. Python, PHP Interpeter Machine Language

W HICH H IGH L EVEL L ANGUAGE S HOULD WE U SE ? Compiled Java, C#, C++ Interpreted Python, PHP We will use Python.

W HY P YTHON ? C++ #include void main() { cout << "Hello, world." << endl; } Python print "Hello, World!" Simpler than other languages

W HY P YTHON ? Modern language. Good Error Detection. Rich Library Embodying Many Good Programming Principles

R EVIEW Computers understand machine language. We will be using Python. Python is an interpreted language. How do we use the Python interpreter? Interactive mode: enter statements on keyboard Script mode: save statements in Python script

S CRIPT M ODE Save a set of Python statements in a file The filename should have the.py extension

I NTEGRATED D EVELOPMENT E NVIRONMENT (IDE) A program that provides tools to write, execute, and test a program Pycharm Community Edition Runs in interactive mode Has built-in text editor with features designed to help write Python programs

P ROGRAMS