COMP 110: Introduction to Programming Tyler Johnson Apr 27, 2009 MWF 11:00AM-12:15PM Sitterson 014.

Slides:



Advertisements
Similar presentations
COMP 110: Introduction to Programming Tyler Johnson Feb 11, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Advertisements

COMP 110: Introduction to Programming Tyler Johnson Feb 18, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Feb 25, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Mar 16, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Mar 23, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 20, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 13, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson January 26, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Feb 23, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Mar 25, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 8, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 1, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson January 28, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming
COMP 110: Introduction to Programming Tyler Johnson Mar 2, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Feb 4, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Covert Barcodes handle on-the-spot Brand and Document Authentication Information Management Institute Conference on Security Printing 11/18/2009 Read what.
Solvency ii: an overview Lloyds May © LloydsSolvency II May Contents Solvency II: key features Legislative process Solvency II implementation.
2010 Tax Class1 Day 3 Class Participation Class Exercise – Paul Austin Publ W Exercise page 98 Advanced Section.
Tax Year TYPES OF PAYMENTS 1040 PG 2 Line & 68 Federal income tax withheld from W-2s, 1099s Estimated payments & $ applied from prior year.
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Perspectives on Academic Integrity Cases and Implications for Fostering Ethical Decision Making Ellen L. Landgraf, PhD., CPA, Associate Professor Loyola.
Large Scale Integration of Senses for the Semantic Web Jorge Gracia, Mathieu dAquin, Eduardo Mena Computer Science and Systems Engineering Department (DIIS)
M. Mayer SEWG Fuel Retention June Sample Analysis for TS, AUG and JET: Depth Profiling of Deuterium M. Mayer Max-Planck-Institut für Plasmaphysik,
Producing monthly estimates of labour market indicators exploiting the longitudinal dimension of the LFS microdata R. Gatto, S. Loriga, A. Spizzichino.
NOTEBOOKS ACCEPTABLE or NOT? March THINGS TO REMEMBER Must be Specific to the child. Consistent with the needs of the individual student. Personal.
Foundations of Programming and Problem Solving Introduction.
Iterations for loop. Outcome Introduction to for loop The use of for loop instead of while loop Nested for loops.
8 March 2013Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems
Introduction to Programming
Wouter Noordkamp The assessment of new platforms on operational performance and manning concepts.
Student Learning Center Time Management Welcome to the Time Management workshop. While we are waiting to begin, please fill out the blank weekly.
CISC Data Structures Ben Perry University of Delaware Summer 2011.
Ziehm Academy - User Guide for online registration portal Nuremberg, February 2009.
Data Structures ADT List
October FUEL PRICE EVALUATION Comparing different fuel costs is a complex issue requiring an in-depth knowledge of fuel properties and characteristics,
Automation Solutions for Ladle Gate Applications
Speed Limit Finder CS 410 Fall 2009 Personal Presentation September 21, 2009 Sept. 21,
1 Cathay Life Insurance Ltd. (Vietnam) 27/11/20091.
1 public class Newton { public static double sqrt(double c) { double epsilon = 1E-15; if (c < 0) return Double.NaN; double t = c; while (Math.abs(t - c/t)
Chapter 8: Arrays.
February 12, 2013 COMP Introduction to Programming For Statement and More Loops Haohan Li TR 11:00 – 12:15, SN 011 Spring 2013.
Introduction to Computer Science Robert Sedgewick and Kevin Wayne Recursive Factorial Demo pubic class Factorial {
IV Medicine Administration: Infection Control September 2009.
1. (c) Alan Rowley Associates Laboratory Accreditation Dr Alan G Rowley Quality Policy based on Quality Objectives Quality Management System Communicate.
Vault 9 Project Update 9 th September 2009 Paul Pointon – Site Project Delivery Manager LLW Repository Ltd.
Loops –Do while Do While Reading for this Lecture, L&L, 5.7.
B E S T B E S T B E S T.
High Power Terminals & Connectors MAK8 & MAK12
Panel 3D = XML file pointer 08/09/20091 LHCb calorimeter meeting (jean-luc PANAZOL)
Flexible Scheduling of Software with Logical Execution Time Constraints* Stefan Resmerita and Patricia Derler University of Salzburg, Austria *UC Berkeley,
K eep I t C onfidential Prepared by: Security Architecture Collaboration Team.
Delivering Preference The Marketing Clinic THE MARKETING CLINIC Success Springs From Understanding The Consumer Fully Understanding Regional Preferences.
01. Consider the following code segment. int x = int n = 0; if (x < 500) { if (x > 750) n = 100; else n = 200; } else { if (x < 300) n = 300; else n =
CS110 Programming Language I
1-1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
BA271 Week 9 Lecture Using forms in Access. Status Report … Review where we are … –Midterm – Graded! –Final websites – Graded! –Access #1 – Graded! –Access.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
1 CS161 Introduction to Computer Science Topic #17.
COMP 110 Classes Luv Kohli October 1, 2008 MWF 2-2:50 pm Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Feb 16, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Grading Transparent Clearly defined criteria for each grade No limits on how many students can get any particular grade No curve No preset or target median.
COMP 110 Some notes on inheritance, review Luv Kohli December 1, 2008 MWF 2-2:50 pm Sitterson 014.
COMP 110 More about classes Luv Kohli October 3, 2008 MWF 2-2:50 pm Sitterson 014.
CS 0007 Spring Lory Al Moakar.
Announcements Lab 7 due Wednesday Assignment 4 due Friday.
CGS 3269: COMPUTER SYSTEMS ARCHITECTURE
Announcements Lab 5 due Wednesday at noon.
Presentation transcript:

COMP 110: Introduction to Programming Tyler Johnson Apr 27, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring Announcements Final exam Monday May 4, 12 noon In this room Program 5 due today by 5pm

COMP 110: Spring Questions?

COMP 110: Spring Final Exam 20% of final grade Exam will be cumulative Lectures Readings from textbook Labs Programs Midterm No computers, notes, calculators etc. You will be allowed a 1-page cheat-sheet

COMP 110: Spring Today in COMP 110 Review for Final

COMP 110: Spring Objects/Arrays & Memory The value of an object is a memory address Student s1 = new Student("Jack Smith", ); Student s2 = new Student("Jack Smith", ); s1 == s2 is false! Arrays are objects!

COMP 110: Spring What is the Output? int a = 7; int b = a; b = 8; System.out.println("A: " + a); System.out.println("B: " + b); A: 7 B: 8 Output //a is not changed by this

COMP 110: Spring What is the Output? int[] a = {4, 5, 6}; int[] b = a; b[0] = 3; System.out.println("a: {" + a[0] + ", " + a[1] + ", " + a[2] + "}"); System.out.println("b: {" + b[0] + ", " + b[1] + ", " + b[2] + "}"); a: {3, 5, 6} b: {3, 5, 6} Output //b holds same memory address as a //were changing both b & a! This is like giving the array two names (a & b)

COMP 110: Spring Array Assignment int[] a = {4, 5, 6}; int[] b = a; b[0] = 3; 456 a b 3

COMP 110: Spring Copying Arrays int[] a = {4, 5, 6}; int[] b = new int[a.length]; //create a new array b //copy as entries into b for(int i = 0; i < b.length; b++) { b[i] = a[i]; }

COMP 110: Spring What is the Output? public void changeNumber(int num) { num = 7; } public static void main(String[] args) { int a = 9; changeNumber(a); System.out.println("a = " + a); int num = 9; changeNumber(num); System.out.println("num = " + num); } a = 9 num = 9 Output

COMP 110: Spring What is the Output? public void changeNumber(int num) { num = 7; } public static void main(String[] args) { int[] a = {4, 5, 6}; changeNumber(a[0]); System.out.println( "a: {" + a[0] + ", " + a[1] + ", " + a[2] + "}" ); } a: {4, 5, 6} Output

COMP 110: Spring What is the Output? public void changeArray(int[] array) { array[0] = 7; } public static void main(String[] args) { int[] a = {4, 5, 6}; changeArray(a); System.out.println( "a: {" + a[0] + ", " + a[1] + ", " + a[2] + "}" ); } a: {7, 5, 6} Output

COMP 110: Spring What is the Output? public void changeArray(int[] array) { array = new int[3]; array[0] = 7; array[1] = 5; array[2] = 6; } public static void main(String[] args) { int[] a = {4, 5, 6}; changeArray(a); System.out.println( "a: {" + a[0] + ", " + a[1] + ", " + a[2] + "}" ); } a: {4, 5, 6} Output

COMP 110: Spring Graphical Example public void changeArray(int[] array) { array = new int[3]; array[0] = 7; array[1] = 5; array[2] = 6; } public static void main(String[] args) { int[] a = {4, 5, 6}; changeArray(a); System.out.println("a: {" + a[0] + ", " + a[1] + ", " + a[2] + "}"); } 456 a array 756 a: {4, 5, 6} Output

COMP 110: Spring Review Worksheet

COMP 110: Spring Course Evaluation