2/18/2008ITK 1681 Feb. 20, Wed. 8:00 – 9:30 pm STV 101 1.Closed book, notes, and no computer is allowed. 2.Everyone is allowed to bring a self- prepared.

Slides:



Advertisements
Similar presentations
11-Jun-14 The assert statement. 2 About the assert statement The purpose of the assert statement is to give you a way to catch program errors early The.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Chapter 2 - The First Program: Little Crab
Program: Little Crab Mr Gano.
Introduction to Computers and Programming Midterm Review Sana Odeh.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Slides prepared by Rose Williams, Binghamton University Chapter 3 Flow of Control Loops in Java.
 2003 Prentice Hall, Inc. All rights reserved. Customized by Sana Odeh for the use of this class. 1 Introduction to Computers and Programming in JAVA.
Assignment Array Sorter NSF WorkshopPam Lawhead. Overview The purpose of this assignment is to give the student experience using Java arrays, light sensors.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Introduction to C Programming
UML class diagrams (1) UML = Unified Modeling Language We use only class diagrams, not other UML diagrams Purpose: –keep OO concepts separate from implementation.
Applying OO Concepts Using Java. In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
CS 1110 Final Exam: Review Session 2 Part 1 : Inheriting classes 1. Inheritance Facts 2. Constructors in Subclasses BREAK : 10 sec. Part 2 : Working with.
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
Chapter 9 Interactive Multimedia Authoring with Flash - Introduction to Programming “Computers and Creativity” Richard D. Webster, COSC 109 Instructor.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Programming with JavaScript (Chapter 10). XP Various things Midterm grades: Friday Winter Career Fair – Thursday, April 28, 2011 (11 am to 3 pm). – MAC.
CSE 113 Introduction to Computer Programming Lecture slides for Week 4 Monday, September 19 th, 2011 Instructor: Scott Settembre.
Java: Chapter 1 Computer Systems Computer Programming II.
Programming in Java Unit 2. Class and variable declaration A class is best thought of as a template from which objects are created. You can create many.
1 Computer Systems -- Introduction  Chapter 1 focuses on:  the structure of a Java application  basic program elements  preparing and executing a program.
1 Biggest issue!!! You can’t do questions on this topic correctly unless you draw variables, draw objects when they are created, and draw frames for method.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
CSE 131 Computer Science 1 Module 1: (basics of Java)
How to Create a Videogame By: Connor McCann. Java Java is one of many programming languages Java is used to run web browsers and most PC video games I.
Objective You will be able to define and identify the basic components of a java program by taking notes, seeing examples, and completing a lab. Construction.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
BIT 115: Introduction To Programming LECTURE 3 Instructor: Craig Duckett
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Smalltalk (and Squeak) Aida Dungan and Rick Shreve.
Java development environment and Review of Java. Eclipse TM Intergrated Development Environment (IDE) Running Eclipse: Warning: Never check the “Use this.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
JAVA: An Introduction to Problem Solving & Programming, 7 th Ed. By Walter Savitch ISBN © 2015 Pearson Education, Inc., Upper Saddle River,
February ,  2/16: Exam 1 Makeup Papers Available  2/20: Exam 2 Review Sheet Available in Lecture  2/27: Lab 2 due by 11:59:59pm  3/2:
Inheritance (Part 2) KomondorBloodHound PureBreedMix Dog Object.
CreatingClasses-SlideShow-part31 Creating Classes part 3 Barb Ericson Georgia Institute of Technology Dec 2009.
Parallel Processing (CS526) Spring 2012(Week 8).  Shared Memory Architecture  Shared Memory Programming & PLs  Java Threads  Preparing the Environment.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
Inheritance Inheritance is the process of extending the functionality of a class by defining a new class that inherit,all the features of extending class.
Written by: Dr. JJ Shepherd
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Slides prepared by Rose Williams, Binghamton University Chapter 20 Java Never Ends.
In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The import statement and using prewritten.
Chapter 2 – The Little Crab Program:. Little Crab Scenario Inheritance: The Arrows Denote Hierarchy Crab is an Animal Animal is an Actor Therefore, It.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Alice and Java Unit 7 1. Day 1  Objective: Gain an introduction to Java and Eclipse  Essential skill: DM-1: Use technology to advance critical thinking.
Notices Assn 2 is due tomorrow, 7pm. Moodle quiz next week – written in the lab as before. Everything up to and including today’s lecture: Big Topics are.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
The need for Programming Languages
CS 302 Week 11 Jim Williams, PhD.
Midterm Exam Preperation
Midterm Exam Preperation
Conditional Statements
Chapter 1: Computer Systems
Building Java Programs
Implementing Classes Chapter 3.
Java External Libraries & Case Study
CS139 October 11, 2004.
Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me
Workshop for Programming And Systems Management Teachers
Java Programming Review 1
PreAP Computer Science Quiz Key
February , 2009 CSE 113 B.
Object Oriented Programming in java
Presentation transcript:

2/18/2008ITK 1681 Feb. 20, Wed. 8:00 – 9:30 pm STV Closed book, notes, and no computer is allowed. 2.Everyone is allowed to bring a self- prepared hand-writing crib to the test. You can write down anything on both sides of one piece of letter-sized paper. You can’t share the crib during the test. Test I, 100 points

2/18/2008ITK 1682 Check List for Midterm #1 No. 1 1.What is class in Java? 2.What is object in Java? 3.What is IDE? 4.What is a “project” in Eclipse. 5.What are packages? 6.How to tell Java compiler which package(s) is (are) needed for a java program? 7.What is the file with “jar” extension? 8.How to tell Eclipse where to find a jar file for a project?

2/18/2008ITK 1683 Check List for Midterm #1 No. 2 1.What is syntax of a programming language like Java? 2.What is class diagram? What does a class diagram have? What are they? 3.What is inheritance? 4.How to do inheritance in Java? I.e., what is Java’s syntax of doing it? 5.What is a constructor of a class? 6.What is instantiation? How to do it? 7.What does a pair of { } do in Java? 8.What are comments, their purposes, syntax? 9.What does a good “programming style” need to consider? Why? 10.What does “;” (the semicolon) do in Java

2/18/2008ITK 1684 Check List for Midterm #1 No. 3 1.What is the attribute of an object. 2.What is the service (method) of an object. 3.How to use the “services” (methods) of an object? 4.What does that mean by “pass values” to a method? 5.What does that mean by “receive a value” from a method? 6.What are reserved words (key words). 7.What are the meanings of the follow java reserved words: int, new, void, super, this, return. 8.What is the difference between classes with and without the main method?

2/18/2008ITK 1685 Check List for Midterm #1 No. 4 1.What is “stepwise refinement”? When does the refining procedure stop? 2.What is pseudo code? 3.What is overriding a method? 4.What are Boolean expressions, ( “!”, true, false )? 5.Syntaxes of if, if-else, and while statements. Basic programming skill:

2/18/2008ITK 1686 Check List for Midterm #1 No. 5 1.Create a City 2.Create a Thing (in a City) 3.Create a Wall (in a City) 4.Create a robot (in a City) 5.Create more than one robot and make them run at the same time (thread) 6.Use every method of Robot used in the text of chapters 1 to 4. 7.Extend one version of Robot to another one. 8.Extend City (the new one’s constructor may take arguments) Know how to use Robot packages, including: More programming skills:

2/18/2008ITK 1687 Check List for Midterm #1 No. 6 Understand the sample robot we discussed in the class and make sure you can created a similar one; in particular, PositionRobot and HistogramRobot. Create new methods to do some little trick or chore like those in the labs Given a class you never saw and used before, how to read its document and use its methods to do a required task? Know how to use Robot class, including: More programming skills: