Computer Science 111 Fundamentals of Programming I Overview of Programming.

Slides:



Advertisements
Similar presentations
CS 100: Roadmap to Computing Fall 2014 Lecture 0.
Advertisements

Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
INTRODUCTION TO PYTHON PART 1 CSC482 Introduction to Text Analytics Thomas Tiahrt, MA, PhD.
Python Introduction.
Presentation topic : LISP Amir Shahzad MCS 3 MCC
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Invitation to Computer Science 5th Edition
Topics Introduction Hardware and Software How Computers Store Data
INTERNET APPLICATION DEVELOPMENT For More visit:
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
©Xiaoying Gao, Peter Andreae First Java Program COMP 102 #2 2014T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
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.
COMP 171: Principles of Computer Science I John Barr.
First Java Program COMP 102 #2 2015T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Computer Science 111 Fundamentals of Programming I Basic Program Elements.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Introduction to Computer Systems and the Java Programming Language.
Computer Science 101 Introduction to Programming.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Introduction to Computer Programming Using C Session 23 - Review.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
I Power Higher Computing Software Development Development Languages and Environments.
 Discuss the Pillars of Info Assurance (CIANA) and apply them to concepts, tools, scenarios, etc.  Convert between binary, hex, decimal, and ASCII. 
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.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
8 January 2016Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
Programming Languages Programming languages are a compromise between spoken language and formal math. They allow humans to communicate with computers at.
Xi Wang Yang Zhang. 1. Easy to learn 2. Clean and readable codes 3. A lot of useful packages, especially for web scraping and text mining 4. Growing popularity.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Fundamentals of Programming I Overview of Programming
Python Programming Unit -1.
CST 1101 Problem Solving Using Computers
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Matlab
C Language VIVA Questions with Answers
Ch 1. A Python Q&A Session Bernard Chen 2007.
Introduction to Python
Do you know this browser?...
Chapter 8: Introduction to High-Level Language Programming
What Is a Program? A program is like an algorithm, but describes a process that is ready or can be made ready to run on a real computer Retrieved from:
Introduction to Python
Today’s lesson – Python next steps
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Programming
Python 19 Mr. Husch.
Introduction to Programming with Python
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Terminal-Based Programs
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
General Computer Science for Engineers CISC 106 Lecture 03
Python 19 Mr. Husch.
CS 100: Roadmap to Computing
Introduction to Python
Python Basics. Topics Features How does Python work Basic Features I/O in Python Operators Control Statements Function/Scope of variables OOP Concepts.
Introduction to Computer Science
Programming for Business Computing Introduction
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Computer Science 111 Fundamentals of Programming I Overview of Programming

High-Level Programming Languages Code a program in a high level language that’s close to English Run another program to translate it to instructions that the computer hardware can understand Such translator programs are called compilers

Why Python? Systems programming Graphical user interfaces Internet scripting Component integration Database programming Rapid prototyping Very simple syntax Highly interactive Easy to learn and use Extensive libraries of high-level resources Completely portable, free, and open source Widespread user (programmer) community Real-word advantagesPedagogical advantages

Obtaining Python Python was invented by Guido van Rossum in 1992 Python comes with most Unix-based computer systems Python for Windows or any other operating system can be downloaded from

Developing Python Programs Can experiment with small pieces interactively in shell mode Can compose longer segments with an editor and run them in script mode

Evaluating Python Expressions in Shell Mode Evaluate itPrint the resultRead an expression

Basic Elements: Data Numbers –Integers: 3, 77 –Floats: 3.14,.22 Strings: ‘Hi there!’, “Hi there!”, ‘\n’ Truth values (Booleans): True, False

Basic Operations: Arithmetic SymbolMeaningExample +Addition or concatenationx + y -Subtractionx - y *Multiplicationx * y / or //Divisionx / y or x // y %Remainderx % y **Exponentiationx ** y

Built-In Functions A function is an operation that expects zero or more data values (arguments) from its user and computes and returns a single data value Examples: abs(-5) max(33, 66)

Library Functions A library is a collection of resources, including functions, that can be imported for use in a program Example: import math math.sqrt(2)

Variables and Assignment Variables are used to name data and other resources Instead of typing 3.14 for π, define a variable named pi to mean 3.14 Assignment (=) is used to set (or reset) a variable to a value pi = * 34 * pi Variables make programs more readable and maintainable

Library Variables Typically define standard constants, such as pi and e Example: import math 3 * math.pi Or: from math import pi 3 * pi

Script Mode Longer programs can be edited and saved to a file and then run as scripts IDLE is a script-mode development environment that can be used on any computer system

For Tuesday Lab meets in Parmly 405