Announcements Survey feedback: summary Quiz: HW 7:

Slides:



Advertisements
Similar presentations
 Communication:  Provide context, e.g., s …  TA Office hour for next Tuesday: CANCELLED  My name is: ??  Show  Scores on-line, Quiz-1 results.
Advertisements

Chapter 2: Using Objects Part 1. To learn about variables To understand the concepts of classes and objects To be able to call methods To learn about.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Changing Control.
Python November 18, Unit 7. So Far We can get user input We can create variables We can convert values from one type to another using functions We can.
Libraries Programs that other people write that help you. #include // enables C++ #include // enables human-readable text #include // enables math functions.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
A tour around Java General introduction to aspects of the language (these will be covered in more detail later) After this tour you should have a general.
Games and Simulations O-O Programming in Java The Walker School
Abstraction IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 17, 2013 Carolyn Seaman University of Maryland, Baltimore County.
School of Computing and Mathematics, University of Huddersfield Computing Science: WEEK 17 Announcement: next few weeks… 9 nd Feb: Comparative Programming.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 “Digits” does not refer only to your 10 fingers…
Introduction. 2COMPSCI Computer Science Fundamentals.
Algorithms and Algorithm Analysis The “fun” stuff.
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Assignment 6.
CompSci Arrays  Aggregate data type  Deal with items of same type  Lists of words  Numbers  Analogies  Mailboxes in post office  CD racks.
Introduction to Computer Programming
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
 Functions package up computation … when do we use them? All the time.  Write some simple code to achieve a goal … 12/20/2015© 2010 Larry Snyder, CSE1.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
E-1 University of Washington Computer Programming I Lecture 5: Input and Output (I/O) © 2000 UW CSE.
Objective You will be able to define the basic concepts of object-oriented programming with emphasis on objects and classes by taking notes, seeing examples,
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Functional Abstraction Reduces Complexity.
W1-1 University of Washington Computer Programming I Recursion © 2000 UW CSE.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Making an example of Pacman.
CMSC 104, Section 301, Fall Lecture 18, 11/11/02 Functions, Part 1 of 3 Topics Using Predefined Functions Programmer-Defined Functions Using Input.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 6: Stepwise refinement revisited, Midterm review.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 23, 2005 Lecture Number: 11.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Course Contents KIIT UNIVERSITY Sr # Major and Detailed Coverage Area
Objects as a programming concept
Topic: Python’s building blocks -> Variables, Values, and Types
User-Written Functions
CSE 220 – C Programming C Fundamentals.
Introduction to the C Language
CMPT 120 Topic: Functions – Part 4
CS1371 Introduction to Computing for Engineers
Layering: Building Functions out of Functions
Announcement Tomorrow’s office hr: CANCELLED! Show work!!
To do … Web Exercise: Quiz-3, HW#2 Score: update
Introduction to the C Language
Announcements Library link and the anonymous Panic button
Chapter 10 Algorithms.
Announcements Mid-Term Exam!! Quiz 5 Again + Quiz 6 Exercise 5
Light Bot Solutions: an analysis
Light Bot Solutions: an analysis
Announcement Function ppt: download again
Announcements How’s it going? My internet/power supply?
Faculty of Computer Science & Information System
Digital Thinking: Animation, Video Games, and the Social Web
Testing and Repetition
Announcements SGID Feedback! Thank you!! Readings:
Announcements: Reading materials are posted on Discussion Board.
Computer Science Core Concepts
Two Paths Diverge in the Lectures
Variables, Assignments Testing + Iteration
Lawrence Snyder University of Washington, Seattle
Digitization & Processing
Chapter 10 Algorithms.
Basic Concepts of Algorithm
Announcements How to save your work? Quiz solution 5/5/2019
Announcements: Questions: Names on the board? Why?
Basic Processing … Drawing pictures … It’s not art, it’s fun
Digital Thinking: Animation, Video Games, and the Social Web
Lawrence Snyder University of Washington
Lecture 20 – Practice Exercises 4
Today: to list: Syllabus change: Grade on-line
Announcements Jack group member by Thursday!! Quiz-8? HW10
Presentation transcript:

Announcements Survey feedback: summary Quiz: HW 7: Purpose HW 7: Sorry about Ethics Essay … 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

What We’ve Learned So Far We’ve ripped right along, and learned a lot! What We’ve Learned So Far Kelvin Sung University of Washington, Bothell (* Use/Modification with permission based on Larry Snyder’s CSE120 from Winter 2011) © Lawrence Snyder 2004

Mid-Term … The Midterm is Wednesday – Open everything  EXCEPT … No use of calculator No use of computer: except reading of pdf/powerpoint lecture notes, textbook, everything else is ok. Pencil or Pan, will be on papers. Source code: no color highlight!! 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Properties of Computation Composed of commands or instructions Presented in sequence; executed in sequence Commands direct an agent Keeping track of the “current instruction” in the sequence: yellow box in Lightbot; program counter for computers 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Properties of Computation (cont.) The execution sequence can be interrupted to execute a function – suspend current sequence, go to function definition, run – so that when complete, return is to point of suspension Conditional commands (If-statements) skip instructions; looping repeats instructions 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

LightBot and Abstraction Command Sequence Program Counter Functional Abstraction Def Func(), Calling Func() Inerations 7:(instructions) Applying concepts in solving problems Given a bot problem, how would you solve it If you have to use a specific function 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Abstraction Functional abstraction: find a sequence of operations that perform a “meaningful” operation: package them w/name, and precise specification Hw 1: Lightbot 2.0; std name, no params, 8 insts. Hw 2: Symbolic Lightbot: name, no params, n insts. Hw 3: Symbolic Lightbot: function, params, n insts. When functionally abstracting you create a concept – a new idea (w/ name & meaning) to use without “worrying about the details” 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

From LightBot to XNA Programming Environment Concepts: IDE: Development Environment Project and source code Compile/Run Programming Concepts: Declare, Create, and Change {} and () InitializeWorld() and UpdateWorld() 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Variables Naming rules Assignments Operators Types of Variables X = 3; X = 3 + Y X += 4 Types of Variables int, float, Circle, Rectangle 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Circles and Rectangles CenterX/Y, Radius, Width, Height, Texture, Color, Label, LabelColor What happens when you change these How to change these to accomplish what you want Given a few lines of code: Describe what will you see Describe the behavior you expect Given a behavior, how will you code? Change the ball size by ThumbStick.Left.X? 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Parameters Parameters, arguments, and values Parameters for creating circles/rectangles Define parameters to represent speed Exercise-5: speedX/Y are used to control ball centerX/Y Player controls speedX/Y by providing values through thumbStick.Right 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Conditions (if) if (something) { doFirst doSecond } How to read this? What would happen? 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Privacy & Social Use of I’net Privacy – right of people to decide the extent they reveal information about themselves Discussion: Revealing other people’s information Guidelines for public discourse on I’net: Offensen… guidelines for posting on social network Ethics – What does it mean? Ten commandments of computer ethics 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Topic: Representing Information Information is physically represented by the presence or absence of some phenomenon at a specific place or time – Properties: discrete, be able to set it / detect it Give examples of these properties Direct use of properties: winking; dog barking; Other examples … abstract all as binary Numbers represented in binary Count, add, covert to/from decimal Difference between 0011 0111 and 0000 0111? Float and integer presentation of color 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Binary The number 77 can be written in binary … what is it? The binary number 0010 0010 0100 is what decimal number? Given binary 0101, 0101 what is their sum 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Game Changers … Many technological advances have come since WWII, but only a few are ‘game changers’ … what are examples? The invention of Integrated Circuits was a game changer because to properties, which were? http is a language computers speak to each other that enables what? 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Summary I have taught a LOT of capabilities and information – and you have worked hard to learn it! Good going!! What questions remain? 7/13/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)