CompSci 101 Introduction to Computer Science

Slides:



Advertisements
Similar presentations
CompSci 101 Introduction to Computer Science February 3, 2015 Prof. Rodger Lecture given by Elizabeth Dowd.
Advertisements

CompSci 101 Introduction to Computer Science January 13, 2015 Prof. Rodger compsci 101 spring
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
Welcome to CS 221! First Course in Computer Science for Engineers.
Welcome to CS 115! Introduction to Programming. Class URL ~mjspra2/ 115summer/
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Agenda Review C++ Library Functions Review User Input Making your own functions Exam #1 Next Week Reading: Chapter 3.
CompSci 101 Introduction to Computer Science September 23, 2014 Prof. Rodger.
CompSci 101 Introduction to Computer Science Sept. 9, 2014 Prof. Rodger President Brodhead speech graduation 2010 CompSci 101 Fall
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 Introduction to Computer Science March 31, 2015 Prof. Rodger Thanks to Elizabeth Dowd for giving this lecture Review for exam.
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.
Compsci 101.2, Fall Plan for WEFWOO l Review for exam, studying and practicing for exams and APTs in Compsci 101  Why memorization doesn't help.
CompSci 4 Chap 6 Sec 2 Sep 30, 2010 Prof. Susan Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget.
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 February 25, 2016 Prof. Rodger compsci101 spring20161.
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.
CMSC201 Computer Science I for Majors Lecture 12 – Midterm Review Prof. Katherine Gibson.
CMSC201 Computer Science I for Majors Lecture 25 – Final Exam Review Prof. Katherine Gibson.
CMSC201 Computer Science I for Majors Lecture 05 – Comparison Operators and Boolean (Logical) Operators Prof. Katherine Gibson Prof. Jeremy.
CMSC201 Computer Science I for Majors Lecture 25 – Final Exam Review Prof. Katherine Gibson Prof. Jeremy Dixon.
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.
Would you like to donate materials?
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CMSC201 Computer Science I for Majors Lecture 13 – Midterm Review
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CMSC201 Computer Science I for Majors Lecture 12 – Lists (cont)
CMSC202 Computer Science II for Majors Lecture 08 – Overloaded Constructors Dr. Katherine Gibson Based on slides by Chris Marron at UMBC.
Exam3 Review CSE111 B.Ramamurthy 7/28/2018 B.Ramamurthy.
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CMSC201 Computer Science I for Majors Lecture 13 – Midterm Review
CompSci 101 Introduction to Computer Science
CompSci 101 Introduction to Computer Science
CMSC201 Computer Science I for Majors Lecture 27 – Final Exam Review
CompSci 101 Introduction to Computer Science
Welcome to CS 1010! Algorithmic Problem Solving.
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
Lesson 05: Iterations Topic: Introduction to Programming, Zybook Ch 4, P4E Ch 5. Slides on website.
CompSci 101 Introduction to Computer Science
Welcome to CS 1301! Principles of Programming I.
6th Grade Science How To Study.
Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg
Introduction to Course Project 1
Today’s Objectives Week 2 Announcements HTML Bonus Lab 1
CMSC201 Computer Science I for Majors Lecture 25 – Final Exam Review
Testing and Repetition
CompSci 101 Introduction to Computer Science
Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg
Tips for Success in Mathematics
CMSC201 Computer Science I for Majors Final Exam Information
BIT 115: Introduction To Programming
REVIEW for the FINAL EXAM
EECE.2160 ECE Application Programming
EECE.2160 ECE Application Programming
CMSC201 Computer Science I for Majors Lecture 12 – Midterm Review
EECE.2160 ECE Application Programming
CS144K An Introduction to Computer Networks
Presentation transcript:

CompSci 101 Introduction to Computer Science Oct 3, 2017 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget you wouldn’t worry.” - The Emerald City of Oz by Frank Baum Compsci 101 fall 2017

Announcements Test 1 is Thursday, Oct 5! Assignment 4 due TODAY You must take the exam in your lecture section Accommodations for test 1? Should have already filled out form on website Assignment 4 due TODAY Late penalty 10% extended through Friday, Oct 6 See Regrades form on website No labs this week Consulting hours this week Ask UTAs to go over exam questions, etc. Compsci 101 fall 2017

Exam logistics Exam is in the regular classroom Only need a pen or pencil No calculator, smart watch, electronics, scratch paper Will give you a reference sheet of Python information with the test (see resources page) Closed book, closed notes, closed neighbor Covers lecture, lab and assigned reading, assignments, apts Have put old quizzes back up as quiz review This is NOT for a grade, for studying only

The best way to study Write code on paper! Don’t spend time debugging! Resources page has old tests and solutions Try writing code, then look at solutions Rewrite an APT Rewrite code we did in lecture Rewrite code we did in lab Don’t spend a lot of time debugging!!!!!!!! Move on to the next problem!!!!!!!! Compsci 101 fall 2017

What we have not done Test 1 from Fall 2014 on we have covered everything. If looking at old exams, note we have not done the following: List comprehensions Code in square brackets such as y = [w for w in alist] There may be other things…. If it looks strange, it might be we haven’t done it…. Compsci 101 fall 2017

Not covered on the exam While loops Writing files Turtles Compsci 101 fall 2017

Understand What is the difference between: w = and w += print value and assigning value to a variable When do you print? When do you return? Does a function print or return? if, for, range, strings, lists Understand format and how they work Looping over items VS looping over index Parameters vs arguments Compsci 101 fall 2017

Writing functions with formulae bit.ly/101f17-1003-1 Compsci 101 fall 2017

Writing functions with formulae Using extra variables: can be really smart Helps in making each line simple Easy to correct if you've made a mistake See triangleArea, what about other math symbols and formula? What do +, -, *, /, % do? What about math.sqrt or 5**0.5 or math.sin … Compsci 101 fall 2017

APT Quiz 1 Solns on today’s date Compsci 101 fall 2017

Compsci 101 fall 2017

Accumulating in a loop If you are going to return a string Initialization, return value, how to "build it" If you are going to return an int (counter) If you are going to return a list Compsci 101 fall 2017

Counting 'a's in a string, 'fox' in a list? What Python functions/methods help If you forget, how can you recreate yourself? See exam Python reference sheet Compsci 101 fall 2017

Basic List/file Processing bit.ly/101f17-1003-2 Problem from Fall 2011 Compsci 101 fall 2017

Review Old Exam Questions Compsci 101 fall 2017