Changing an Object s Properties
|
|
- Cordelia Bell
- 5 years ago
- Views:
Transcription
1 Go ahead and PULL Lecture Materials & Sign-in on PollEv Right Click Lecture > Team > Pull Poll Everywhere: pollev.com/comp110 Lecture 4 Changing an Object s Properties Fall 2016
2 Announcements Review Session - Tomorrow at 4pm in Sitterson 014 Worksheet 0 Practice with method definitions and calling. Due Friday. Start today! HackNC - hacknc.com - October 28th - 30th Office Hours Queuing App We ll be debuting new functionality for office hours later this week! Allows you to see how busy office hours is right now and grab your spot in line if it s busy
3 Office Hours Ticket System COMP 110 Office Hours OPEN SN008 until 9pm See how busy office hours are before walking over Waiting Being Helped 110 Staff To reserve a spot in line, describe the issue you are facing and what you have tried: You ll need to describe what you need help with and what you have tried so far. Request Help
4 Office Hours Ticket System COMP 110 Office Hours OPEN SN008 until 9pm You ll see your position in line count down in real-time. Your Status 5 Ahead of You Your request: I am having trouble understanding the way expressions work with double values. I have tried adding.0 after each number but it still isn t working. Cancel
5 Office Hours Ticket System COMP 110 Office Hours When a UTA is ready for you, you ll see which one to go find in SN008. OPEN Your request: SN008 until 9pm Dorian is ready for you. I am having trouble understanding the way expressions work with double values. I have tried adding.0 after each number but it still isn t working. Warning: You must be in SN008 within 2 minutes of your ticket being called or else lose your spot. Cancel
6 Office Hours Ticket System Excited to give more predictability to office hours! Please wait in the lobby area outside SN008 until your reservation is called. When other students are waiting, appointments will be limited to 10 minutes. When released, I ll everyone with instructions! Secret to best office hours experience: start early.
7 Last Week Methods with return types and values The main Method Variable Declarations Instantiating new Objects Variable Assignment
8 Method Calling in Detail
9 Parameters vs Arguments // within the Robot class void moveforward(int numberofsteps) { // code that moves robot forward } Parameter // within the RobotMover class void moverobot(robot bb8) { bb8.moveforward(3); bb8.turnright(); bb8.moveforward(1); bb8.turnright(); bb8.moveforward(3); } Arguments In declaring a method, the parameter is the name by which a method refers to its piece of information passed to it e.g. x and y in the function f(x,y) = x + y - it is a dummy name determined by the definer In calling a method, an argument is the actual value passed in e.g. 2 and 3 in add(2, 3)
10 Calling Methods That Have Parameters Each of Calculator s methods takes in two ints, which it refers to as x and y (no need or ability to know those names, also called identifiers) Whenever we call these methods on ti110, we must provide two ints first our desired value for the first parameter, then our desired value for the second class Calculator { } int multiply(int x, int y) { return x * y; } // Some code elided
11 Calling Methods That Have Parameters // Somewhere else in code mycalculator.multiply(2,3); Java does parameter passing by first checking that the one-to-one correspondence is honored, // within the Calculator class int multiply(int x, int y) { return x * y; }
12 Calling Methods That Have Parameters // Somewhere else in code mycalculator.multiply(2,3); Java does parameter passing by first checking that the one-to-one correspondence is honored, then assigning arguments to parameters, (Java does this behind the scenes) // within the Calculator class int multiply(int x, int y) { // Begin hidden step x = 2; y = 3; // End hidden step return x * y; }
13 Calling Methods That Have Parameters // Somewhere else in code mycalculator.multiply(2,3); Java does parameter passing by first checking that the one-to-one correspondence is honored, then assigning arguments to parameters, and finally executing the method body using the arguments // within the Calculator class int multiply(int x, int y) { // Begin hidden step x = 2; y = 3; // End hidden step return 2 x * 3; y; } 6 is returned
14 Calling Methods That Have Parameters Let s say we have an instance of Calculator named ti110 When we call a method on ti110, we provide a commaseparated list of arguments (in this case, ints) between the parenthesis These arguments are the values we want the method to use for the first and second parameters when it runs. Note divide (8, 4) isn t divide (4, 8) - order matters! // Somewhere else in code ti110.add(2, 3); ti110.multiply(6, 2); ti110.divide(8, 4); ti110.subtract(5, 3); Arguments
15 Calling Methods That Have Parameters When calling a method that takes in parameters, you must provide a valid argument for every parameter That means that the number and type of arguments must match the number and type of parameters with a one-to-one correspondence This is why we couldn t write bb8.turnright(3)! Order matters! The first argument you provide will correspond to the first parameter, the second to the second, etc.
16 Hands-on #1 Pull the latest lecture materials Right click Lecture > Team > Pull Under the comment TODO #1. **Using ONLY method calls on ti110, can you: 1. Call add with arguments 100 and 7. Assign the result to sum. 2. Use System.out.println to print the value of sum. Try running! 3. Check-in on PollEv.com/comp110 when you are done or stuck.
17 TBT to Lecture 2 How did the runner result in this GUI (graphical user interface)? We didn t quite get there on Thursday
18 Lecture 3 s CalculatorRunner????????????? Class Declaration main Method Declaration Variable Declaration Instantiation & Assignment Method Calling package comp110.lecture02; public class CalculatorRunner { public static void main(string[] args) { Calculator ti110; ti110 = new Calculator(); System.out.println(ti110.multiply(2, 3)); } }
19 Packages A package is a group of related classes We ve been using them without acknowledging them: package comp110; package comp110.lecture04; Packages provide organization for: large programs sharing classes between programs
20 Package Organization A package is just like a folder on your computer In fact, that s how we organize them!
21 Package Declaration Required at the top of every Java file Form: package <package name>; The package name can contain periods. The names between periods correspond to folders, i.e.: Package: comp110.lecture04 Folder: src/comp110/lecture04
22 Fully Qualified Class Names When we ve used classes in our code we ve used unqualified class names: Calculator ti110 = new Calculator(); We could use a fully qualified class name : comp110.lecture02.calculator ti110 = new comp110.lecture02.calculator(); Form of a fully qualified class name: <package>.<class> Classes in the same package can use one another with unqualified class names Classes in the different packages must be fully qualified unless you import them. More on this in a couple slides.
23 Follow Along At TODO #2: Instantiate a new comp110.autogui and give it ti110 as an argument: new comp110.autogui(ti110); Notice this is a fully qualified class name. Try running and we should see the COMP110 AutoGUI
24 Importing Classes AutoGUI is a class defined in the comp110 package. To use a class declared in another package, we have two options: 1. Use its Fully Qualified Class Name 2. import the class from the other package We ll try doing this with AutoGUI: import comp110.autogui; import statements are placed before class declarations Now when Java sees AutoGUI, it knows it is referring to comp110.autogui
25 Back to Graphics!
26 Classes and Instances (1/3) We ve been saying bb8 is a Robot. We ll now refer to it as an instance of class Robot. This means bb8 is a particular Robot built using the Robot class as a blueprint All Robots (all instances of the class Robot) have the exact same capabilities: the methods defined in the Robot class
27 Classes and Instances (2/4) The Robot class is like a blueprint.
28 Classes and Instances (3/4) We can use the Robot class to build actual Robots instances of the class Robot, using instantiation via: new Robot() Each instance has its own properties that can vary from other instances (this week). bb8 bb9 lightbot darkbot
29 Classes and Instances (4/4) Method calls are received by instances of a class. Instance Instance Instance Instance bb8 bb9 lightbot darkbot
30 Objects and Properties In Java, we model objects by their properties In Address Book, someone you know is modeled with a name, number, and address. Instances of a class have the same properties available. Each instance has its own values, though. In Address Book, the fields of each contact are the same but the values you type in are different.
31 If you made a Facebook for circles, what fields would you have for their profiles?
32 Introducing Circle Our graphics projects will use JavaFX this semester Modern library for building apps, drawing scenes, playing audio, etc. The Pokemon maze was made with JavaFX. Today we ll use the javafx.scene.shapes.circle class You don t need to memorize the package! Just note we re using a built-in Java class and will import it from a package.
33 Working with Circle s Properties Most classes have methods allowing us to get and set each instance s properties These are called getter and setter methods Thursday we ll write our own getter and setter methods Today, we ll get some practice working with Circle s A setter method allows us to say to a Circle set your radius to 5.0 A getter method allows us to ask the Circle hey, what s your radius?
34 Disable Code Folding Type Folding in the Quick Access bar of Eclipse Select Folding - Java/Editor Uncheck the Enable Folding box Press OK
35 Hands-on #2 Open comp110.lecture04.circlerunner and run After the TODO comment: 1. Call acircle s setter method for radius: void setradius(double radius) 2. Run it! The acircle instance should now be visible. 3. Call acircle s setter methods for its X and Y coordinates: void setcenterx(double x) void setcentery(double y) 4. Run it again. Check-in on PollEv.com/comp110
36 Hands-on #2 Example package comp110.lecture04; import comp110.autogui; import javafx.scene.shape.circle; import javafx.scene.paint.color; import javafx.scene.group; public class CircleRunner { public static void main(string[] args) { Circle acircle = new Circle(); acircle.setradius(10.0); acircle.setcenterx(25.0); acircle.setcentery(50.0); new AutoGUI(aCircle); } }
37 Follow Along How do we draw more than one Circle if AutoGUI only works with a single argument? We need to create a Group of shapes, and add each Circle to the Group JavaFX s Group class is in the javafx.scene package and already imported in today s hands-on. We ll declare a new Group variable, assign a new Group instance to it, and add Circles to it. Adding shapes to a Group named agroup looks funny: agroup.getchildren().add(acircle);
38 package comp110.lecture04; import comp110.autogui; import javafx.scene.shape.circle; import javafx.scene.paint.color; import javafx.scene.group; public class CircleRunner { public static void main(string[] args) { Hands-on #2 Example Group agroup = new Group(); Circle acircle = new Circle(); acircle.setradius(10.0); acircle.setcenterx(25.0); acircle.setcentery(50.0); agroup.getchildren().add(acircle); Circle anothercircle = new Circle(); anothercircle.setradius(5.0); anothercircle.setfill(color.brown); agroup.getchildren().add(anothercircle); new AutoGUI(aGroup); } }
39 Today s Important Notes When a method call expression is encountered in code: 1. arguments must match parameters 2. arguments are assigned to parameters 3. the body of the method runs line-by-line 4. if the method returns, the return value is what the original method call expression evaluates to Packages are used to organize classes To use a class from another package you must import it first Objects have properties in addition to capabilities Setter methods allow us to change an object s properties Getter methods allow us to ask an object for its properties values Thursday we ll look at how to declare properties in Classes
Open and respond to this poll: PollEv.com/comp110. Calling Methods Mr. Roboto
Open and respond to this poll: PollEv.com/comp110 Lecture 1 Calling Methods Mr. Roboto Fall 2016 Special thanks to Dr. Andy van Dam, my grad school advisor, and Brown s CS15 course for this fantastic method
More informationPull Lecture Materials and Open PollEv. Poll Everywhere: pollev.com/comp110. Lecture 12. else-if and while loops. Once in a while
Pull Lecture Materials and Open PollEv Poll Everywhere: pollev.com/comp110 Lecture 12 else-if and while loops Once in a while Fall 2016 if-then-else Statements General form of an if-then-else statement:
More informationReal World. static methods and Console & JavaFX App Intros. Lecture 16. Go ahead and PULL Lecture Materials & Sign-in on PollEv
Go ahead and PULL Lecture Materials & Sign-in on PollEv Poll Everywhere: pollev.com/comp110 Lecture 16 static methods and Console & JavaFX App Intros Real World Spring 2016 Today Our first apps without
More informationCSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall Office hours:
CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall alphonce@buffalo.edu Office hours: Tuesday 10:00 AM 12:00 PM * Wednesday 4:00 PM 5:00 PM Friday 11:00 AM 12:00 PM OR
More informationCOMP 250 Winter 2011 Reading: Java background January 5, 2011
Almost all of you have taken COMP 202 or equivalent, so I am assuming that you are familiar with the basic techniques and definitions of Java covered in that course. Those of you who have not taken a COMP
More informationArrays and while Loops. Lecture 15 - COMP110 - Spring 2018
Arrays and while Loops Lecture 15 - COMP110 - Spring 2018 Announcements PS04 - March Sadness - Due Sunday 3/25 at 11:59pm Review Session - Tomorrow at 5pm in SN014 Tutoring Friday from 12pm - 4pm in SN115
More informationCOMP110 Jump Around. Go ahead and get today s code in Eclipse as shown on next few slides. Kris Jordan
Go ahead and get today s code in Eclipse as shown on next few slides COMP110 Jump Around Fall 2015 Sections 2 & 3 Sitterson 014 November 19th, 2015 Kris Jordan kris@cs.unc.edu Sitterson 238 Classroom Materials
More informationEncapsulation. Administrative Stuff. September 12, Writing Classes. Quick review of last lecture. Classes. Classes and Objects
Administrative Stuff September 12, 2007 HW3 is due on Friday No new HW will be out this week Next Tuesday we will have Midterm 1: Sep 18 @ 6:30 7:45pm. Location: Curtiss Hall 127 (classroom) On Monday
More informationClasses and Objects 3/28/2017. How can multiple methods within a Java class read and write the same variable?
Peer Instruction 8 Classes and Objects How can multiple methods within a Java class read and write the same variable? A. Allow one method to reference a local variable of the other B. Declare a variable
More informationMaking Apps With JavaFX COMP110 - Lecture 23
Making Apps With JavaFX COMP110 - Lecture 23 COMP110 UTA Applications Have the TAs helped you this semester? Join us and help continue to improve COMP110 in the Spring! Application now open on COMP110.com
More informationClasses, Types, and Objects
Classes, Types, and Objects Lecture 6 npm run pull npm run start pollev.com/comp110 Announcements PS1 Due Friday Full EC deadline is TODAY 11:59pm Partial EC on Thurs Due Friday at 11:59pm Review Session
More informationWeek 3 Classes and Objects
Week 3 Classes and Objects written by Alexandros Evangelidis, adapted from J. Gardiner et al. 13 October 2015 1 Last Week Last week, we looked at some of the different types available in Java, and the
More informationboolean & if-then-else
boolean & if-then-else Lecture 03 Step 1: Open VSCode and its Integrated Terminal Step 2: npm run pull Step 3: npm run start Step 4: Open another tab to pollev.com/comp110 Assignments Out Problem Set 0
More informationRecommended Group Brainstorm (NO computers during this time)
Recommended Group Brainstorm (NO computers during this time) Good programmers think before they begin coding. Part I of this assignment involves brainstorming with a group of peers with no computers to
More informationProgramming Karel the Robot
Programming Karel the Robot Announcements Five Handouts Today: Honor Code Downloading Eclipse Running Karel Programs in Eclipse Programming Assignment #1 Submitting Programming Assignments Please only
More informationAnnouncements. Course syllabus Tutorial/lab signup form (due 4pm today) Lecture 1 notes Homework 1 Initial assessment
Announcements Handouts (5) to pick up Course syllabus Tutorial/lab signup form (due 4pm today) Lecture 1 notes Homework 1 Initial assessment Please do it now and hand it in as you leave lecture It s ungraded;
More informationCS 101 Spring 2007 Midterm 2 Name: ID:
You only need to write your name and e-mail ID on the first page. This exam is CLOSED text book, closed-notes, closed-calculator, closed-neighbor, etc. Questions are worth different amounts, so be sure
More informationIntroduction to Lists and Recursion
Introduction to Lists and Recursion Lecture 05 - Spring 2018 - COMP110 Navigate to localhost:3000/close - Then: npm run pull, npm start "All about that base (case)" ~Meghan Trainor All About That Bass
More informationProject #1 Seamcarve
Project #1 Seamcarve Out: Thursday, January 24 In: This is real, this is me Im exactly where I m supposed to be, now Gonna let the light, shine on me Now I ve found, who I am There s no way to hold it
More informationFUNctions. Lecture 03 Spring 2018
FUNctions Lecture 03 Spring 2018 Announcements PS0 Due Tomorrow at 11:59pm WS1 Released soon, due next Friday 2/2 at 11:59pm Not quite understand a topic in lecture this week? Come to Tutoring Tomorrow
More informationCOMP-202: Foundations of Programming. Lecture 14: static, private, public Jackie Cheung, Winter 2015
COMP-202: Foundations of Programming Lecture 14: static, private, public Jackie Cheung, Winter 2015 Announcements Assignment 3 due Tue, Feb 24 at 11:59pm 2 Happy New Year! 恭喜發財! May all your code compile
More informationActivity 1: Introduction
Activity 1: Introduction In this course, you will work in teams of 3 4 students to learn new concepts. This activity will introduce you to the process. We ll also take a first look at how to store data
More informationLesson 10: Quiz #1 and Getting User Input (W03D2)
Lesson 10: Quiz #1 and Getting User Input (W03D2) Balboa High School Michael Ferraro September 1, 2015 1 / 13 Do Now: Prep GitHub Repo for PS #1 You ll need to submit the 5.2 solution on the paper form
More informationCONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction
CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics COMP-202 Unit 1: Introduction Announcements Did you miss the first lecture? Come talk to me after class. If you want
More informationIntroduction to the course and basic programming concepts
Introduction to the course and basic programming concepts Lecture 1 of TDA 540 Object-Oriented Programming Jesper Cockx Fall 2018 Chalmers University of Technology Gothenburg University About the course
More informationLecture 2. COMP1406/1006 (the Java course) Fall M. Jason Hinek Carleton University
Lecture 2 COMP1406/1006 (the Java course) Fall 2013 M. Jason Hinek Carleton University today s agenda a quick look back (last Thursday) assignment 0 is posted and is due this Friday at 2pm Java compiling
More informationOO software systems are systems of interacting objects.
OO software systems are systems of interacting objects. Objects have Objects properties: these are things that objects know e.g. what you had for breakfast behaviors: these are things objects do e.g. being
More informationhw6, BFS, debugging CSE 331 Section 5 10/25/12 Slides by Kellen Donohue
hw6, BFS, debugging CSE 331 Section 5 10/25/12 Slides by Kellen Donohue Agenda hw4 being graded hw5 may be graded first, for feedback to be used on hw6 hw6 due next week Today hw6 BFS Debugging hashcode()
More informationpublic class Test { public static int i = 0;
Lec 25 Conclusion public class Test { public static int i = 0; public static void main(string[] args) { Test t = new Test(i++); String s = "hi"; t.method1(i, s); System.out.println(i + s); } public Test(int
More informationTutorials. Tutorial every Friday at 11:30 AM in Toldo 204 * discuss the next lab assignment
60-212 subir@cs.uwindsor.ca Phone # 253-3000 Ext. 2999 web site for course www.cs.uwindsor.ca/60-212 Dr. Subir Bandyopadhayay Website has detailed rules and regulations All assignments and labs will be
More informationProject #1 Seamcarve
Project #1 Seamcarve Out: Thursday, January 25 In: It s no use, it s no use, we are doomed! You did it! You saved us, Perry the...cs16 Student -Doofenshmirtz 1 Installing, Handing In, Demos 1. To install,
More informationLecture 10. Instructor: Craig Duckett
Lecture 10 Instructor: Craig Duckett Announcements Assignment 1 Revision DUE TONIGHT in StudentTracker by midnight If you have not yet submitted an Assignment 1, this is your last chance to do so to earn
More informationLecture 3. COMP1006/1406 (the Java course) Summer M. Jason Hinek Carleton University
Lecture 3 COMP1006/1406 (the Java course) Summer 2014 M. Jason Hinek Carleton University today s agenda assignments 1 (graded) & 2 3 (available now) & 4 (tomorrow) a quick look back primitive data types
More informationMouse / Keyboard Events & Anonymous Functions. Lecture 19
Mouse / Keyboard Events & Anonymous Functions Lecture 19 Announcements Hack110 - Friday, November 17th starting at 7pm ending at 7am! Encouraged if you're loving programming, doing well in 110, and considering
More informationAnatomy of a Method. HW3 is due Today. September 15, Midterm 1. Quick review of last lecture. Encapsulation. Encapsulation
Anatomy of a Method September 15, 2006 HW3 is due Today ComS 207: Programming I (in Java) Iowa State University, FALL 2006 Instructor: Alexander Stoytchev Midterm 1 Next Tuesday Sep 19 @ 6:30 7:45pm. Location:
More informationCS1004: Intro to CS in Java, Spring 2005
CS1004: Intro to CS in Java, Spring 2005 Lecture #13: Java OO cont d. Janak J Parekh janak@cs.columbia.edu Administrivia Homework due next week Problem #2 revisited Constructors, revisited Remember: a
More informationnpm run pull npm start
1. Open Visual Studio Code 2. At the top click on View->Integrated Terminal (if not already open) 3. In the terminal, first run: npm run pull 4. After this finishes run: npm start Strings Lecture 05 No
More informationAdvanced Object Oriented Programming. EECS2030 Section A
Advanced Object Oriented Programming EECS2030 Section A 1 Who Am I? Dr. Mufleh Al-Shatnawi office Lassonde 3057 hours : 5:30PM -- 6:30PM on Tuesdays and Thursdays; or by appointments email mufleh@eecs.yorku.ca
More informationComp Assignment 2: Object-Oriented Scanning for Numbers, Words, and Quoted Strings
Comp 401 - Assignment 2: Object-Oriented Scanning for Numbers, Words, and Quoted Strings Date Assigned: Thu Aug 29, 2013 Completion Date: Fri Sep 6, 2013 Early Submission Date: Wed Sep 4, 2013 This work
More informationAdministration. Classes. Objects Part II. Agenda. Review: Object References. Object Aliases. CS 99 Summer 2000 Michael Clarkson Lecture 7
Administration Classes CS 99 Summer 2000 Michael Clarkson Lecture 7 Lab 7 due tomorrow Question: Lab 6.equals( SquareRoot )? Lab 8 posted today Prelim 2 in six days! Covers two weeks of material: lectures
More informationCMSC202 Computer Science II for Majors
CMSC202 Computer Science II for Majors Lecture 04 Pointers Dr. Katherine Gibson Based on slides by Chris Marron at UMBC Last Class We Covered C++ Functions Parts of a function: Prototype Definition Call
More informationAnnouncements for the Class
Lecture 2 Classes Announcements for the Class Readings Section 1.4, 1.5 in text Section 3.1 in text Optional: PLive CD that comes with text References in text Assignment Assignment 1 due next week Due
More informationCT 229 Arrays in Java
CT 229 Arrays in Java 27/10/2006 CT229 Next Weeks Lecture Cancelled Lectures on Friday 3 rd of Nov Cancelled Lab and Tutorials go ahead as normal Lectures will resume on Friday the 10 th of Nov 27/10/2006
More informationCSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I
CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I Welcome to your CSCI-1100 Lab! In the fine tradition of the CSCI-1100 course, we ll start off the lab with the classic bad joke
More informationCS 177 Week 15 Recitation Slides. Review
CS 177 Week 15 Recitation Slides Review 1 Announcements Final Exam on Friday Dec. 18 th STEW 183 from 1 3 PM Complete your online review of your classes. Your opinion matters!!! Project 6 due Just kidding
More informationGolfNow Central. Marketing User Guide. February 2018
Marketing User Guide 2018 1 Table of Contents Course management Player Rules Booking Engine settings Connecting to your Social Media accounts How to send and schedule a one-time campaign How to send and
More informationTerm Definition Introduced in: This option, located within the View tab, provides a variety of options to choose when sorting and grouping Arrangement
60 Minutes of Outlook Secrets Term Definition Introduced in: This option, located within the View tab, provides a variety of options to choose when sorting and grouping Arrangement messages. Module 2 Assign
More informationClick the Add a New Value Tab. Click Add. The system will populate the Event ID field with a number after the event request is saved.
How to login to SIS: SIS-only users go to: https://buckeyelink2.osu.edu/, click on Student Information System (main page), login using your lastname.# and password. Schedule an Event Path: Main Menu Campus
More informationProject 3: Implementing a List Map
Project 3: Implementing a List Map CSCI 245 Programming II: Object-Oriented Design Spring 2017 Devin J. Pohly (adapted from Thomas VanDrunen) This project has two main goals: To give you practice in implementing
More informationCS/ENGRD 2110 FALL Lecture 2: Objects and classes in Java
1 CS/ENGRD 2110 FALL 2017 Lecture 2: Objects and classes in Java http://courses.cs.cornell.edu/cs2110 CMS VideoNote.com, PPT slides, DrJava 2 CMS. Visit course webpage, click Links, then CMS for 2110.
More informationYOUR GUIDE TO. Skype for Business
YOUR GUIDE TO Skype for Business Welcome to Skype for Business This is the Skype for Business app Your profile picture, status & location (you can change these) Your options Your contacts and groups (you
More informationPrograms as Models. Procedural Paradigm. Class Methods. CS256 Computer Science I Kevin Sahr, PhD. Lecture 11: Objects
CS256 Computer Science I Kevin Sahr, PhD Lecture 11: Objects 1 Programs as Models remember: we write programs to solve realworld problems programs act as models of the real-world problem to be solved one
More informationHow to Improve Telephone Skills in Fixed Ops!
How to Improve Telephone Skills in Fixed Ops! With Mark Rodriguez of Auto Client Care, Inc Moderated by Mike Bowers of DealersEdge Thursday, October 3, 2013 1 2:30pm ET Mark Rodriguez of Auto Client Care,
More informationBIT 115: Introduction To Programming LECTURE 3. Instructor: Craig Duckett
BIT 115: Introduction To Programming LECTURE 3 Instructor: Craig Duckett cduckett@cascadia.edu Lecture 3 Announcements By now everyone should be up and running with Java, jgrasp, and the Becker Robots
More informationPREPARING FOR PRELIM 2
PREPARING FOR PRELIM 2 CS 1110: FALL 2012 This handout explains what you have to know for the second prelim. There will be a review session with detailed examples to help you study. To prepare for the
More informationAPCS Semester #1 Final Exam Practice Problems
Name: Date: Per: AP Computer Science, Mr. Ferraro APCS Semester #1 Final Exam Practice Problems The problems here are to get you thinking about topics we ve visited thus far in preparation for the semester
More informationCMPSCI 187 / Spring 2015 Postfix Expression Evaluator
CMPSCI 187 / Spring 2015 Postfix Expression Evaluator Due on Thursday, 05 March, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI 187 / Spring 2015
More informationCSCI 161 Introduction to Computer Science
CSCI 161 Introduction to Computer Science Department of Mathematics and Computer Science Lecture 2b A First Look at Class Design Last Time... We saw: How fields (instance variables) are declared How methods
More information1B1b Inheritance. Inheritance. Agenda. Subclass and Superclass. Superclass. Generalisation & Specialisation. Shapes and Squares. 1B1b Lecture Slides
1B1b Inheritance Agenda Introduction to inheritance. How Java supports inheritance. Inheritance is a key feature of object-oriented oriented programming. 1 2 Inheritance Models the kind-of or specialisation-of
More informationJava Object Oriented Design. CSC207 Fall 2014
Java Object Oriented Design CSC207 Fall 2014 Design Problem Design an application where the user can draw different shapes Lines Circles Rectangles Just high level design, don t write any detailed code
More informationPocket Salon Guide. salonbiz.com
Pocket Salon Guide Pocket Salon is a tool for your guests to carry your salon in their pocket! The app allows them to view, confirm, and manage their visits anytime, anywhere however they want. Logging
More informationCS171:Introduction to Computer Science II
CS171:Introduction to Computer Science II Department of Mathematics and Computer Science Li Xiong 9/7/2012 1 Announcement Introductory/Eclipse Lab, Friday, Sep 7, 2-3pm (today) Hw1 to be assigned Monday,
More information4CCS1PRP, Programming Practice 2012 Lecture 6: Arrays - Part 1
4CCS1PRP, Programming Practice 2012 Lecture 6: Arrays - Part 1 Martin Chapman Java for Everyone by Cay Horstmann Copyright 2009 by John Wiley & Sons. All rights reserved. Slides by Donald W. Smith TechNeTrain.com
More informationDay 3. COMP 1006/1406A Summer M. Jason Hinek Carleton University
Day 3 COMP 1006/1406A Summer 2016 M. Jason Hinek Carleton University today s agenda assignments 1 was due before class 2 is posted (be sure to read early!) a quick look back testing test cases for arrays
More informationCOMP 250: Java Programming I. Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette
COMP 250: Java Programming I Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette Variables and types [Downey Ch 2] Variable: temporary storage location in memory.
More informationCS61A Lecture 20 Object Oriented Programming: Implementation. Jom Magrotker UC Berkeley EECS July 23, 2012
CS61A Lecture 20 Object Oriented Programming: Implementation Jom Magrotker UC Berkeley EECS July 23, 2012 COMPUTER SCIENCE IN THE NEWS http://www.theengineer.co.uk/sectors/electronics/news/researchers
More informationIntroduction to Computation and Problem Solving
Class 1: Introduction Introduction to Computation and Problem Solving Prof. Steven R. Lerman and Dr. V. Judson Harward Handouts for Today Course syllabus Academic Honesty Guidelines Laptop request form
More informationCOE318 Lecture Notes Week 4 (Sept 26, 2011)
COE318 Software Systems Lecture Notes: Week 4 1 of 11 COE318 Lecture Notes Week 4 (Sept 26, 2011) Topics Announcements Data types (cont.) Pass by value Arrays The + operator Strings Stack and Heap details
More informationDepartment of Networks College of Bardarash Technical Institute DUHOK Polytechnic University Subject: Programming Fundamental by JAVA Course Book
1 Department of Networks College of Bardarash Technical Institute DUHOK Polytechnic University Subject: Programming Fundamental by JAVA Course Book Year 1 Lecturer's name: MSc. Sami Hussein Ismael Academic
More informationICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit
ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This
More informationTA hours and labs start today. First lab is out and due next Wednesday, 1/31. Getting started lab is also out
Announcements TA hours and labs start today. First lab is out and due next Wednesday, 1/31. Getting started lab is also out Get you setup for project/lab work. We ll check it with the first lab. Stars
More informationCS 6371: Advanced Programming Languages
CS 6371: Advanced Programming Languages Dr. Kevin Hamlen Spring 2017 Fill out, sign, and return prereq forms: Course number: CS 6371 Section: 1 Prerequisites: CS 5343: Algorithm Analysis & Data Structures
More informationLec 7. for loops and methods
Lec 7 for loops and methods Announcements Quiz 1 on Friday Review today. 5:00. CENTR 212 Assume there s a method drawrandomfruit() How would you create this: While loops final int DIMENSION = 9; int row
More informationCS 553 Compiler Construction Fall 2007 Project #1 Adding floats to MiniJava Due August 31, 2005
CS 553 Compiler Construction Fall 2007 Project #1 Adding floats to MiniJava Due August 31, 2005 In this assignment you will extend the MiniJava language and compiler to enable the float data type. The
More informationCIS3023: Programming Fundamentals for CIS Majors II Summer 2010
CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Objects and Classes (contd.) Course Lecture Slides 19 May 2010 Ganesh Viswanathan Objects and Classes Credits: Adapted from CIS3023 lecture
More informationCMPSCI 187: Programming With Data Structures. Lecture 6: The StringLog ADT David Mix Barrington 17 September 2012
CMPSCI 187: Programming With Data Structures Lecture 6: The StringLog ADT David Mix Barrington 17 September 2012 The StringLog ADT Data Abstraction Three Views of Data Java Interfaces Defining the StringLog
More informationCOMP Summer 2015 (A01) Jim (James) Young jimyoung.ca
COMP 1010- Summer 2015 (A01) Jim (James) Young young@cs.umanitoba.ca jimyoung.ca Hello! James (Jim) Young young@cs.umanitoba.ca jimyoung.ca office hours T / Th: 17:00 18:00 EITC-E2-582 (or by appointment,
More informationbe able to read, understand, and modify a program written by someone else utilize the Java Swing classes to implement a GUI
Homework 5, CS 2119 B-term 2015 Completing the GUI for a Student Database Due: Thursday, December 10 at 5pm Outcomes After successfully completing this assignment, you will be able to read, understand,
More informationCHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface
CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing
More informationCSE115 / CSE503 Introduction to Computer Science I. Dr. Carl Alphonce 343 Davis Hall Office hours:
CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall alphonce@buffalo.edu Office hours: Thursday 12:00 PM 2:00 PM Friday 8:30 AM 10:30 AM OR request appointment via e-mail
More informationEECS 211 Lab 8. Inheritance Winter Getting the code. Inheritance. General Idea. An Example
EECS 211 Lab 8 Inheritance Winter 2018 In this week s lab, we will be going over inheritance, and doing some more practice with classes. If you have any lingering questions during the lab, don t hesitate
More informationDay 4. COMP1006/1406 Summer M. Jason Hinek Carleton University
Day 4 COMP1006/1406 Summer 2016 M. Jason Hinek Carleton University today s agenda assignments questions about assignment 2 a quick look back constructors signatures and overloading encapsulation / information
More informationGetting started with babylon
Getting started with babylon We ve made this quick and easy guide to help you get up-and-running with secure, confidential GP video appointments and 24/7 medical advice from your phone or PC. 1 Getting
More informationicontact for Salesforce Installation Guide
icontact for Salesforce Installation Guide For Salesforce Enterprise and Unlimited Editions Lightning Experience Version 2.3.4 Last updated October 2016 1 WARNING DO NOT SKIP ANY PART OF THIS GUIDE. EVERY
More informationJAVA: A Primer. By: Amrita Rajagopal
JAVA: A Primer By: Amrita Rajagopal 1 Some facts about JAVA JAVA is an Object Oriented Programming language (OOP) Everything in Java is an object application-- a Java program that executes independently
More informationCS 121 Intro to Programming:Java - Lecture 2. Professor Robert Moll (+ TAs) CS BLDG
CS 121 Intro to Programming:Java - Lecture 2 Course home page: Professor Robert Moll (+ TAs) CS BLDG 276-545-4315 moll@cs.umass.edu http://twiki-edlab.cs.umass.edu/bin/view/moll121/webhome Read text chapters
More informationSeng310 Lecture 8. Prototyping
Seng310 Lecture 8. Prototyping Course announcements Deadlines Individual assignment (extended) deadline: today (June 7) 8:00 am by email User testing summary for paper prototype testing- Thursday June
More informationYour username is the first portion of your address (first initial and last name) Your password is your date of birth in the form MMDDYY
ZIMBRA TRAINING This document will cover: Logging In Getting to Know the Layout Making Your Mail More Efficient Viewing by Message or Conversation Using Tags and Flags Creating Folders and Organizing Mail
More informationThe Maze Runner. Alexander Kirillov
The Maze Runner URL: http://sigmacamp.org/mazerunner E-mail address: shurik179@gmail.com Alexander Kirillov This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.
More informationOOP Part 2. Introduction to OOP with Java. Lecture 08: Introduction to OOP with Java - AKF Sep AbuKhleiF -
Introduction to OOP with Java Instructor: AbuKhleif, Mohammad Noor Sep 2017 Lecture 08: OOP Part 2 Instructor: AbuKhleif, Mohammad Noor Sep 2017 AbuKhleiF - 1 Instructor AbuKhleif, Mohammad Noor Computer
More informationReadings for This Lecture
Lecture 4 Classes Readings for This Lecture Section 1.4, 1.5 in text Section 3.1 in text Plive activities referenced in the text Please look at lecture summaries online Handouts are short version Presentation
More informationCS/ENGRD 2110 FALL Lecture 7: Interfaces and Abstract Classes
1 CS/ENGRD 2110 FALL 2016 Lecture 7: Interfaces and Abstract Classes http://courses.cs.cornell.edu/cs2110 Announcements 2 Attendance for this week s recitation is mandatory! A2 is due Today Get started
More informationhttps://www.eclipse.org/efxclipse/install.html#for-the-lazy
CSC40232: SOFTWARE ENGINEERING Professor: Jane Cleland Huang Lecture 4: Getting Started with Java FX Wednesday, January 30 th and February 1 st sarec.nd.edu/courses/se2017 Department of Computer Science
More informationCS111: PROGRAMMING LANGUAGE II
CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 1(c): Java Basics (II) Lecture Contents Java basics (part II) Conditions Loops Methods Conditions & Branching Conditional Statements A
More information1.00/1.001 Tutorial 1
1.00/1.001 Tutorial 1 Introduction to 1.00 September 12 & 13, 2005 Outline Introductions Administrative Stuff Java Basics Eclipse practice PS1 practice Introductions Me Course TA You Name, nickname, major,
More informationAnnouncements. 1. Forms to return today after class:
Announcements Handouts (3) to pick up 1. Forms to return today after class: Pretest (take during class later) Laptop information form (fill out during class later) Academic honesty form (must sign) 2.
More informationCOMP200 - Object Oriented Programming: Test One Duration - 60 minutes
COMP200 - Object Oriented Programming: Test One Duration - 60 minutes Study the following class and answer the questions that follow: package shapes3d; public class Circular3DShape { private double radius;
More informationITI Introduction to Computing II
ITI 1121. Introduction to Computing II Marcel Turcotte School of Electrical Engineering and Computer Science Inheritance Introduction Generalization/specialization Version of January 20, 2014 Abstract
More informationDeclaring and ini,alizing 2D arrays
Declaring and ini,alizing 2D arrays 4 2D Arrays (Savitch, Chapter 7.5) TOPICS Multidimensional Arrays 2D Array Allocation 2D Array Initialization TicTacToe Game // se2ng up a 2D array final int M=3, N=4;
More informationLecture 14 CSE11 Fall 2013 For loops, Do While, Break, Continue
Lecture 14 CSE11 Fall 2013 For loops, Do While, Break, Continue General Loops in Java Look at other loop constructions Very common while loop: do a loop a fixed number of times (MAX in the example) int
More information