CSCI 203: Introduction to Computer Science I

Slides:



Advertisements
Similar presentations
 Computer Science 1MD3 Introduction to Programming Winter 2014.
Advertisements

1 Class motto: What’s this button for?. 2 CMSC104 Problem Solving and Computer Programming Fall 2011 Section 4 Richard Chang.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
An Introduction to Computer Programming Anna Bretscher
Introduction to Python: Slides Referenced in Homework 0 CSE-391: Artificial Intelligence University of Pennsylvania Matt Huenerfauth January 2005.
Recitation 1 Programming for Engineers in Python.
CSE 131 Computer Science 1 Module 1: (basics of Java)
EECS 110: Introduction to Programming for Non-Majors
CS110/CS119 Introduction to Computing (Java)
PLEASE GRAB A SEAT ANYWHERE FOR NOW. Welcome to the CMSC 201 Class!!! Mr. Lupoli ITE 207.
EECS 110: Lec 2: What is Programming?
Introduction to Computational Linguistics Programming I.
CS 122 Engineering Computation Lab Lab 2 Dan De Sousa and Tim Cheeseman Department of Computer Science Drexel University April 2009 ©By the author. All.
COMP 171: Principles of Computer Science I John Barr.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Conditions. Objectives  Understanding what altering the flow of control does on programs and being able to apply thee to design code  Look at why indentation.
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’
Agenda For Feb PowerPoint Presentation (Introduction to Java Methods) 2.Finish Unit 2 exercises on page 13 (due by the end of the class today). 4.
CMSC 104, Version 8/061L01Introduction.ppt Introduction CMSC 104 Problem Solving and Computer Programming.
EECS 110: Introduction to Programming for Non-Majors Aleksandar Kuzmanovic Northwestern University
Course A201: Introduction to Programming 09/16/2010.
INTRODUCTION TO PROGRAMMING ISMAIL ABUMUHFOUZ | CS 146.
EECS 110: Lec 2: What is Programming? Aleksandar Kuzmanovic Northwestern University
EECS 110: Introduction to Programming for Non-Majors Aleksandar Kuzmanovic Northwestern University
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
Course Information and Introductions Intro to Computer Science CS1510 Dr. Sarah Diesburg University of Northern Iowa 1.
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
GCSE COMPUTER SCIENCE Practical Programming using Python Lesson 4 - Selection.
CMPT 201 Computer Science II for Engineers
Development Environment
GCSE COMPUTER SCIENCE Practical Programming using Python
Course Information EECS 2031 – Section A Fall 2017.
IST256 : Applications Programming for Information Systems
Whatcha doin'? Aims: To start using Python. To understand loops.
Course Information and Introductions
Department of Computer Engineering
EECS 110: Introduction to Programming for Non-Majors
Introduction to Programming
Lab Introduction Installing Python
Introduction to Python
EECS 110: Lec 2: What is Programming?
PYTHON: AN INTRODUCTION
Warm-up Program Use the same method as your first fortune cookie project and write a program that reads in a string from the user and, at random, will.
Lecture 1 Introduction to Python Programming
Introduction to Programming
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Course Information and Introductions
Welcome to CS 1010! Algorithmic Problem Solving.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Conditional Statements
Welcome to CS 1010! Algorithmic Problem Solving.
Introduction to Programming
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Welcome to CS 1301! Principles of Programming I.
Introduction to Programming
Introduction to Programming
Accelerated Introduction to Computer Science
Course Information EECS 2031 Fall 2016.
CS 1111 Introduction to Programming Spring 2019
Winter 2019 CISC101 4/16/2019 CISC101 Reminders
CHAPTER 5: Control Flow Tools (if statement)
Input and Output Python3 Beginner #3.
Introduction to Python
Introduction to Programming
Introduction to Programming
Warmup Write a function to add two integer parameters and return the result.
CS Problem Solving and Object Oriented Programming Spring 2019
CSCI 203: Introduction to Computer Science I
CSC 241: Introduction to Computer Science I
Introduction to Python
Presentation transcript:

CSCI 203: Introduction to Computer Science I Xiannong Meng Fall 2017 Notes are based on works by other professors.

Let’s get to know each other … talk to me: Dana 212, 570-577-1214 email me: xmeng@bucknell.edu learn about me: Google “Xiannong Meng” Fill out survey form before Wednesday’s class (l’ll email it after the class)

What are the majors who are in this course?

UNDECIDED ACCOUNTING AND FINANCIAL MANAGEMENT MANAGEMENT BIOLOGY CELL BIOLOGY COMPUTER SCIENCE ECON INTERNATIONAL RELATION MANAGEMENT MATH/ECON SPANISH/PSYCHOLOGY THEATRE/CREATEIVE WRITING UNDECIDED

What is “computer” or “computer science” as you know?

Describe “computer” or “computer science” Grab a piece of paper. You have 2 minutes to write down 5 to 10 phrases, based on the following prompt: Describe “computer” or “computer science”

SHARE your writing with your neighbors (4-5 of you), agreeing on one prompt (‘computer’ or ‘computer science’), list top three phrases. All groups, SHARE them with class.

Our collective results?

CLASS LOGISTICS Course website: http://www.eg.bucknell.edu/~csci203 Course Moodle site: http://moodle.bucknell.edu/course/view.php?id=26801

COURSE STRUCTURE Sun Mon Tues Wed Thurs Fri Sat LABS DUE HW DUE LABS

HELP STRUCTURES We will have help sessions, announced soon. Sun Mon Tues Wed Thurs Fri Sat LABS DUE HW DUE LABS We will have help sessions, announced soon. TLC study groups Come to my office hours! Email or call me.

Python Programming Python (language) and IDLE (editor) Open-source, free from www.python.org Available for Mac, Windows and Linux. Easy to install. Check out the “Resources” page from course website for instructions to install the software We will be using Python 3 be sure to get that version...

Demo "Editor" and "Shell" Editor (IDLE): typing code Shell window: running code This is better demonstrated by simply firing up IDLE and giving a quick demo right in class Here, you can save and change programs. Hitting F5 runs your program over in the shell Here, you can try things out at the command prompt >>>

Lab 0 on Monday or Tuesday is to run and submit a similar program A Python Program …then DOING! Test it out in Python Caveat… most problems we will work on in 203 can be handled by jumping right on the computer and trying it out… and that is OK, at this stage! Lab 0 on Monday or Tuesday is to run and submit a similar program

Writing in Python syntax semantics intent How it looks What it does What it should do Syntax – determined by the language chosen Semantics – the meaning behind the written recipe (regardless of what you intended!) Intent – determined by you. We will strive to design solutions that match your intent!

Syntax – How it looks Punctuation? Spacing? Color information? Strings? Variables?

Python syntax highlights for homework 0 assignment statements always read right-to-left and use ONE equals sign every block of code must line up!! comparisons use TWO equals signs colons begin a new block! Don’t print a space. Don’t go to next line. every block of code must line up!! a backslash shows special cases or characters flattering or flouting CS graders is encouraged! elif your test goes here: else: if your test goes here: as many as you want – zero or more – all mutually exclusive NO test – still needs a colon Like elif, it is optional Start "branching" True? Execute the block

Choices if score >= 93: print('A’) elif score >= 90: print('A-’) if ... elif ... else if score >= 93: print('A’) elif score >= 90: print('A-’) elif score >= 60: print('Pass’) else: print('Aargh!’) mutually exclusive blocks Useful skill Important tool Window into corners of everyday life When using if .. elif .. elif .. else only one block of code will run: the first one whose condition is True