CompSci 101 Introduction to Computer Science January 28, 2016 Prof. Rodger compsci101 spring161.

Slides:



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

CS 206 Introduction to Computer Science II 01 / 20 / 2009 Instructor: Michael Eckmann.
CompSci 101 Introduction to Computer Science February 3, 2015 Prof. Rodger Lecture given by Elizabeth Dowd.
Using CourseCompass Features You must already be registered or enrolled in a current class.
Using MyMathLab Features You must already be registered or enrolled in a current class.
Using CourseCompass Features You must already be registered or enrolled in a current class.
CEP Welcome September 1, Matthew J. Koehler September 1, 2005CEP Cognition and Technology Who’s Who?  Team up with someone you don’t.
Class 1: What this course is about. Assignments Reading: Chapter 1, pp 1-33 Do in Class 1: –Exercises on pages 13, 14, 22, 28 To hand in in Class 2: –Exercises.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
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.
CS223 Algorithms D-Term 2013 Instructor: Mohamed Eltabakh WPI, CS Introduction Slide 1.
COMP Introduction to Programming Yi Hong May 13, 2015.
CompSci 100e Program Design and Analysis II January 18, 2011 Prof. Rodger CompSci 100e, Spring20111.
How to Learn in This Course CS 5010 Program Design Paradigms “Bootcamp” Lesson 0.1 © Mitchell Wand, This work is licensed under a Creative Commons.
How to be an online student. How does it work? An online course follows a schedule and syllabus with due dates for assignments (just like an on-campus.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Compsci 101.2, Fall PFThursday l Review Organization and Problem-Solving  Defining functions, calling functions  Return types, print, None l.
BIT 115: Introduction To Programming Instructor: Mike Panitz
Compsci 06/101, Fall What will you do in Compsci 6 Today? l Learn about selection and if/else statements  In context of solving problems  Understanding.
CompSci 101 Introduction to Computer Science September 23, 2014 Prof. Rodger.
Derivative – Power Rule, Product Rule, Chain Rule, Quotient Rule Unit 4.
How to Learn in This Course CS 5010 Program Design Paradigms “Bootcamp” Lesson 0.1 © Mitchell Wand, This work is licensed under a Creative Commons.
CompSci 101 Introduction to Computer Science Sept. 9, 2014 Prof. Rodger President Brodhead speech graduation 2010 CompSci 101 Fall
CompSci 6 Programming Design and Analysis January 17, 2006 Prof. Rodger.
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.
Compsci 101.2, Fall PFTWeek l Introduce new Python concepts  Control: if, elif, else, for  Data: Strings, Lists Operators on data: slicing,
1 CS 101 Today’s class will begin about 5 minutes late We will discuss the lab scheduling problems once class starts.
Compsci 101, Fall Plan For The Day (PFTD) l Practice solving problems  Some solved with a computer, some with Python  Differences in solving.
CompSci 101 Introduction to Computer Science February 10, 2015 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Elements of Computing Science I Course Web Site: The lecture outlines.
Compsci 06/101, Spring Compsci 6: PFTW l Problem solving and (Python) programming  What are the steps in solving an APT?  How do you get better.
CompSci 101 Introduction to Computer Science February 4, 2016 Prof. Rodger compsci101 spring161.
CompSci 6 Introduction to Computer Science Sept. 20, 2011 Prof. Rodger CompSci 6 Fall
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.
Course Information and Introductions Intro to Computer Science CS1510 Dr. Sarah Diesburg University of Northern Iowa 1.
CompSci 101 Introduction to Computer Science February 25, 2016 Prof. Rodger compsci101 spring20161.
CompSci 101 Introduction to Computer Science January 15, 2015 Prof. Rodger 1.
CompSci 6 Introduction to Computer Science September 27, 2011 Prof. Rodger CompSci 6 Fall
CompSci 101 Introduction to Computer Science February 16, 2016 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were.
CompSci 101 Introduction to Computer Science February 5, 2015 Prof. Rodger Lecture given by Elizabeth Dowd compsci101 spring151.
All materials copyright UMBC unless otherwise noted CMSC201 Computer Science I for Majors Lecture 02 – Algorithmic Thinking.
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.
How to Learn in This Course
Course Overview - Database Systems
Course Information and Introductions
CompSci 101 Introduction to Computer Science
Course Information and Introductions
CompSci 101 Introduction to Computer Science
Lab Introduction Installing Python
CompSci 101 Introduction to Computer Science
CompSci 6 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
Course Overview - Database Systems
CompSci 101 Introduction to Computer Science
Parent/Student Night November 16, 2015
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
Compsci 6/101: PFTW Review how APTs and Python work, run
Principles of Imperative Computation
Presentation transcript:

CompSci 101 Introduction to Computer Science January 28, 2016 Prof. Rodger compsci101 spring161

Names, Types and Values bit.ly/101sp compsci101 spring162

Announcements Reading and RQ5 due next time Assignment 2 due Tuesday APT 1 is due today, APT 2 out today Catch up Schedule on main web page Today – LTIJ –Solving problems – 7 Step process –Decisions - if, Boolean –Strings compsci101 spring163

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

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 spring165

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

Why is this person so important to this course? compsci101 spring167

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

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 spring169

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 spring1610

Review Functions compsci101 spring1611

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

Assignment 2 Questions? Demo compsci101 spring1613

Grace Murray Hopper ( ) “third programmer on world's first large- scale digital computer” –US Navy: Admiral “It's better to show that something can be done and apologize for not asking permission, than to try to persuade the powers that be at the beginning” l ACM Hopper award given for contributions before : Craig Gentry: : Luis von Ahn 2013: Pedro Felzenszwab 2014: Sylvia Ratnasamy

APT Pancake: How do you solve this problem? –First steps: are there simple cases that can be solved immediately? What are these for the pancake problem? –Sometimes it helps to know if you are on track, should you use Python to check your paper and pencil work? Get specific, solve for 5, not N –Fix one parameter, vary the other –Identify the cases and continue compsci101 spring1615

Solve an APT - Pancakes bit.ly/101sp compsci101 spring1616

Problem Solving to Code 7 Step Process 1.Work small example by hand 2.Write down what you did in words (algorithm) 3.Find Patterns (generalize algorithm) 4.Work another example by hand (does your algorithm work? If not, go back to 2) 5.Translate to code 6.Test several cases 7.Debug failed test cases 17

Pancake Problem Work through the 7 step process…. compsci101 spring1618

Three pancakes in a two-cake pan… Number of cakes in the system –First 5 minutes Number of cakes in the system –Second 5 minutes compsci101 spring1619

Three pancakes in a two-cake pan… Number of cakes in the system –Third 5 minutes How many minutes to cook all three pancakes? compsci101 spring1620

How to teach pancake Flipping –Is this computer science? –For longer, more complex robotic tasks compsci101 spring1621

How to solve problems with different cases? Keep score in a video game? –Different points for different tasks? Translate a book from English to Spanish? –Different words, different rules Identify proteins in strands of DNA? –Start codon: atg Stop Codon: tag Different cases with Pancake APT? In Python use: if, else,elif compsci101 spring1622

LastNameFirst APT Answer Questions here: bit.ly/101sp compsci101 spring1623