COMP 171: Principles of Computer Science I John Barr.

Slides:



Advertisements
Similar presentations
An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
Advertisements

Computer Security coursework 3 (part 2) Dr Alexei Vernitski.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
CS211 Data Structures Sami Rollins Fall 2004.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
An Introduction to Computer Programming Anna Bretscher
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
By Alfredo Alvarez. Agenda: Find out who the instructor is. Talk about goals and why you want to learn python. Discuss the materials and the methodology.
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.
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 COMP104: Fundamentals and Methodology.
CS110/CS119 Introduction to Computing (Java)
CSCI 273: Processing An Introduction. Programming Languages –An abstract "human understandable" language for telling the computer what to do –The abstract.
COMP Introduction to Programming Yi Hong May 13, 2015.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Computer Science 111 Fundamentals of Programming I Overview of Programming.
Course Introduction Software Engineering
CGS-2531 Problem Solving with Computer Software Course home page: Course.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Python From the book “Think Python”
CSCI Processing CSCI Introduction to Algorithm Design An Introduction.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Class 1: What this course is about. Assignment Read: Chapter 1 Read: Chapter 1 Do: Chapter 1 ‘workbook’ pages not finished in class Do: Chapter 1 ‘workbook’
COMP 171: Data Types John Barr. Review - What is Computer Science? Problem Solving  Recognizing Patterns  If you can find a pattern in the way you solve.
Get Access to your Online Course Tools Course: Instructor: Office: Hours:
Class Info. Course Website Full version of syllabus will be available there as well.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
Unit 1 Basic Python programs, functions Special thanks to Roy McElmurry, John Kurkowski, Scott Shawcroft, Ryan Tucker, Paul Beck for their work. Except.
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.
ECET – Dynamic Programming with Python Spring 2013 Lecture L1 – Introduction to Python Page 1 Welcome! This is Professor Jai P. Agrawal. I will walk.
CS 161 Computer Science I Andrew Scholer
1/10/2008. >>> About Us Paul Beck * Third quarter TA * Computer Engineering * Ryan Tucker * Second quarter TA * Computer.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
CS 161 Introduction to Computer Science I Winter, 2014: 112 Spring, 2014: 131 Summer, 2014: 132.
First Program  Open a file  In Shell  Type into the file: 3  You did it!!! You wrote your first instruction, or code, in python!
CSC 241: Introduction to Computer Science I
CMPT 201 Computer Science II for Engineers
Munster Programming Training
Development Environment
YEAR 12 COMPUTER SCIENCE.
CST 1101 Problem Solving Using Computers
CSCI 203: Introduction to Computer Science I
Introduction to Programming
COMP 170 – Introduction to Object Oriented Programming
basic Python programs, defining functions
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Programming COMP104: Fundamentals and Methodology Introduction.
Get Access to your Online Course Tools
CS190/295 Programming in Python for Life Sciences: Lecture 1
basic Python programs, defining functions
Introduction to Algorithm Design
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Lab 9 & 10: Drill 2 and Homework 4
Accelerated Introduction to Computer Science
Get Access to your Online Course Tools
CS 1111 Introduction to Programming Spring 2019
General Computer Science for Engineers CISC 106 Lecture 03
CSCI 203: Introduction to Computer Science I
Training Presentation For
CSC 241: Introduction to Computer Science I
Presentation transcript:

COMP 171: Principles of Computer Science I John Barr

What is Computer Science? Problem Solving  Understanding the problem/challenge  Breaking down the problem into solvable pieces  Using the tools you have to solve the problem

What is Computer Science? Solution: An Algorithm  Step-by-step procedure to solve the problem from beginning (start state) to end (end state)

What is Computer Science? For CS, algorithms need to be expressed in a form the computer can understand. Programming Language  Your way to tell the computer your algorithm (your solution)  Computer will only do what you tell it to do

Our Programming Language: Python - Version 3.x Powerful, but easy to use Interpreted Language (not compiled)  Simple syntax  Runs immediately (but slightly slower) Allows for Rapid Prototyping

Our Course Learn to solve problems with computers by creating algorithms, and translating those algorithms in Python code. Give the computer instructions to solve instances of the problem for us.

Typical Weekly Schedule MTUWTHFSASU New TopicNew Lab Deeper into new topic Extra challenge Working on labReading / Working on Homework Homework Due Lab due Quiz Our Course

Sakai for Class Information Syllabus Textbook Assignments TA hours Class web site Other resources Start Python download now…  Python 3.x

Our Book / Homework System Interactive Python, by Runestone Interactive  Google “Interactive Python”  To create an account, scroll to the very bottom of this page, and click the small blue "register" link.  The course name is: IC-Comp-17-FA-14 After, submit your username on Sakai

Starting with Python - IDLE The environment we will use to create and run python programs Very simple Downloads with python

IDLE: Using the shell >>> >>> print "Hello, World" Hello, World Tinkering in the shell is fine, but when you want to maintain / save / share your work, use a module.

Creating a module print “Running Module” def main(): #comment inside module print ("Hello, World”) main() Select “Run > Run Module” (save the file as “HelloWorld”) A shell will open up with your program loaded In IDLE: Select “File -> New Window” or “File->New File” on a Mac This new window is a “module” Type the following: