CompSci 101 Introduction to Computer Science January 22, 2015 Prof. Rodger compsci101 spring151.

Slides:



Advertisements
Similar presentations
Mrs. Taxara – Room 210 Third Grade
Advertisements

CompSci 101 Introduction to Computer Science February 3, 2015 Prof. Rodger Lecture given by Elizabeth Dowd.
CompSci 101 Introduction to Computer Science Feb 26, 2015 Prof. Rodger.
Welcome to CompSci 100! As You Arrive… Make sure you grab a syllabus packet. Read through it. I will be covering the most essential points in my talk,
CompSci 101 Introduction to Computer Science January 13, 2015 Prof. Rodger compsci 101 spring
COMPSCI 101 S Principles of Programming Lecture 1 – Introduction.
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
Programming for Interactivity Professor Bill Tomlinson Tuesday & Wednesday 6:00-7:50pm Fall 2005.
CompSci 101 Introduction to Computer Science January 20, 2015 Prof. Rodger compsci 101, spring
Tutoring Dos and Donts Unofficial alien of CS 5 Gold Unofficial alien of CS 5 Black Unofficial turtle of CS 5 Green Unofficial alien of CS 42 Official.
BIT 115: Introduction To Programming Instructor: Mike Panitz
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CompSci 6 Introduction to Computer Science October 20, 2011 Prof. Rodger.
Compsci 101.2, Fall Plan For the Day l Discuss Algorithms and Programming at a high level, examples with cooperative/group work  Connect to reading.
CompSci 101 Introduction to Computer Science September 23, 2014 Prof. Rodger.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
CompSci 101 Introduction to Computer Science Sept. 9, 2014 Prof. Rodger President Brodhead speech graduation 2010 CompSci 101 Fall
INTRODUCTION TO PROGRAMMING ISMAIL ABUMUHFOUZ | CS 146.
CompSci 6 Introduction to Computer Science Sept 29, 2011 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not.
CSE8A: Introduction to Programming in Java Fall 2012 Prof. Christine Alvarado cse8afall.weebly.com.
CompSci 6 Introduction to Computer Science November 8, 2011 Prof. Rodger.
CompSci 101 Introduction to Computer Science March 3, 2015 Prof. Rodger compsci101 spring151.
1 CS 101 Today’s class will begin about 5 minutes late We will discuss the lab scheduling problems once class starts.
CompSci 6 Introduction to Computer Science September 13, 2011 Prof. Rodger.
Compsci 101, Fall Plan For The Day (PFTD) l Practice solving problems  Some solved with a computer, some with Python  Differences in solving.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Elements of Computing Science I Course Web Site: The lecture outlines.
CompSci 101 Introduction to Computer Science January 19, 2016 Prof. Rodger compsci 101 spring
CompSci 101 Introduction to Computer Science January 28, 2016 Prof. Rodger compsci101 spring161.
CompSci 101 Introduction to Computer Science February 4, 2016 Prof. Rodger compsci101 spring161.
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
CompSci 6 Introduction to Computer Science Sept. 20, 2011 Prof. Rodger CompSci 6 Fall
CompSci 101 Introduction to Computer Science February 11, 2016 Prof. Rodger.
Principles of Imperative Computation Lecture 1 January 15 th, 2012.
CompSci 101 Introduction to Computer Science January 26, 2016 Prof. Rodger compsci 101, spring
CompSci 101 Introduction to Computer Science November 11, 2014 Prof. Rodger CompSci 101 Fall Review for exam.
CompSci 101 Introduction to Computer Science January 15, 2015 Prof. Rodger 1.
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
CompSci 6 Introduction to Computer Science September 27, 2011 Prof. Rodger CompSci 6 Fall
CompSci 101 Introduction to Computer Science March 24, 2016 Prof. Rodger compsci 101, spring
CompSci 4 Java 4 Apr 14, 2009 Prof. Susan Rodger.
CompSci 101 Introduction to Computer Science March 8, 2016 Prof. Rodger.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
CompSci 101 Introduction to Computer Science February 5, 2015 Prof. Rodger Lecture given by Elizabeth Dowd compsci101 spring151.
CompSci 101 Introduction to Computer Science Sept 13, 2016 Prof. Rodger compsci101 fall161.
CompSci 4 Java 1 Apr 2, 2009 Prof. Susan Rodger. Announcements Assignment 7 questions? –Beware having two events that kick in at the same time! –Beware.
CSc 120 Introduction to Computer Programing II
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
Introduction to Programming
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
PROBLEM SOLVING AND PROGRAMMING
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
Welcome to CS 1010! Algorithmic Problem Solving.
CompSci 101 Introduction to Computer Science
Parent/Student Night November 16, 2015
CompSci 101 Introduction to Computer Science
Welcome to CS 1010! Algorithmic Problem Solving.
CompSci 101 Introduction to Computer Science
Introduction to Computer Science
CompSci 101 Introduction to Computer Science
Welcome to CS 1301! Principles of Programming I.
CSCI 203: Introduction to Computer Science I
CompSci 101 Introduction to Computer Science
Presentation transcript:

CompSci 101 Introduction to Computer Science January 22, 2015 Prof. Rodger compsci101 spring151

Announcements Reading, RQ 05 for next time Assignment 2 due Tues APT 1 is due today, APT 2 out compsci101 spring152

REMINDER DO NOT SIT IN THE LAST TWO ROWS! Come forward and sit beside someone you haven’t met compsci101 spring153

How many ways can I run Python in this course? Eclipse –Complete program –Console –APT Online textbook –Beware Python 3 (‘/’ (2.7) vs ‘//’ (3) ) Python Tutor compsci101 spring154

How to get Help in this class Piazza Consulting hours (Sunday-Thursday nights) Office hours (Prof, Tas) What happens if my laptop breaks and I can’t use my eclipse? Do I stop programming? –Clusters, Python Tutor, websubmit, borrow What happens if you send Prof. Rodger an ? 35 support people vs. 1 person, may take awhile to answer compsci101 spring155

Submitting an APT or Assignment Use Ambient – submit –Submit History – files submitted should be listed! –Alternative – use web submit –Tuesday midnight means Tuesday 11:59pm + 1 minute –If you can’t submit on your computer, copy your file to another computer (Link?) and submit with websubmit on that computer compsci101 spring156

Why is this person so important to this course? Have you donated yet? compsci101 spring157

Top 10 list for surving in CompSci Ask questions 9. Eat lots of pizza 8. Learn how to spell Rodger 7. Read the book 6. Do the reading quizzes compsci101 spring158

Top 10 list (cont) 5. Check Piazza every day 4. Visit your prof in her office 3. Learn how to debug your programs 2. Seek help (one hour rule!) 1. Start programming assignments early compsci101 spring159

Algorithm Describe in words how to solve a problem Like a recipe, must be detailed and precice compsci101 spring1510

Whole Genome Shotgun with words bit.ly/101S Creation algorithm –Take a phrase –Replicate it four times –Chop into "chunks" characters Figure out the original phrase Describe the algorithm to recreate original phrase? olve problems. ratively, create, compsci101 we get t 01 we get to work colla vely, create, and s. In compsci1 y, create, and s e get to work collabo … compsci101 spring1511

Review Functions compsci101 spring1512

Use Python Tutor Debug/trace your code Doesn’t work with input files compsci101 spring1513

Assignment 2 How to start? Where does import go? Student work? compsci101 spring1514

Solve an APT - Pancakes bit.ly/101S compsci101 spring1515

Computer Science Alum Biology and CS Undergraduate Research - JFLAP Epic Now in Med School at Vanderbilt compsci101 spring1516

More Computer Science Duke Alums compsci101 spring1517

More on Strings Strings are indexed starting at 0 Example: ‘word’ Use [num] – to refer to a particular character in word Use [x:y] to refer to a slice of the string starting at position x and up to but not including position y. Can leave out x or y. w or d compsci101 spring1518

Examples phrase = "Duke Blue Devils" print phrase[0] print phrase[-3] print phrase[1:3] print phrase[5:10] + phrase[:4] print (phrase[phrase.find('ev'):]).upper() String fun Crazy import compsci101 spring1519

Loop over all characters in a String compsci101 spring1520

Loop over string Online form: compsci101 spring1521

Loop over all words in a list compsci101 spring1522

Loop over words Online form: compsci101 spring1523