CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for the Final Lecture Dec 7, 2011 Aditya Mathur Department of Computer Science Purdue.

Slides:



Advertisements
Similar presentations
CS18000: Problem Solving and Object-Oriented Programming.
Advertisements

Written by: Dr. JJ Shepherd
Chapter 10 Introduction to Arrays
CS-I Final Review Hao Jiang Computer Science Department Boston College.
CS 180 Problem Solving and Object Oriented Programming Spring 2011 February 16, 2011 Aditya Mathur Department of Computer Science Purdue University West.
CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for Week 10: Oct 24-28, 2011 Aditya Mathur Department of Computer Science Purdue.
CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for Week 8: Oct 10-14, 2011 Aditya Mathur Department of Computer Science Purdue.
CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for Week 4: September 12-16, 2011 Aditya Mathur/Tim Korb Department of Computer.
CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for Week 9: Oct 17-21, 2011 Aditya Mathur Department of Computer Science Purdue.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Road Map Introduction to object oriented programming. Classes
Lecture 27 Exam outline Boxing of primitive types in Java 1.5 Generic types in Java 1.5.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
© The McGraw-Hill Companies, 2006 Chapter 5 Arrays.
COMS S1007 Object-Oriented Programming and Design in Java August 7, 2007.
Alice in Action with Java
COMP1170 Midterm Preparation (March 17 th 2009) Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education.
Java Data Types  Everything is an Object  Except Primitive Data Types  For efficiency  Platform independent  Portable  “slow”  Objects are often.
1 CMSC 132: Object-Oriented Programming II Java Constructs Department of Computer Science University of Maryland, College Park.
CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for Week 11: Oct 31-Nov 4, 2011 Aditya Mathur Department of Computer Science Purdue.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Summary and Exam COMP 102.
Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines P.
Object Oriented Programming Lecture 8: Introduction to laboratorial exercise – part II, Introduction to GUI frames in Netbeans, Introduction to threads.
Introduction. 2COMPSCI Computer Science Fundamentals.
Basic Java Syntax CSE301 University of Sunderland Harry R Erwin, PhD.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
1 Java: AP Curriculum Focus and Java Subset Alyce Brady.
Netprog: Java Intro1 Crash Course in Java. Netprog: Java Intro2 Why Java? Network Programming in Java is very different than in C/C++ –much more language.
1 Wright State University, College of Engineering Dr. T. Doom, Computer Science & Engineering CS 241 Computer Programming II CS 241 – Computer Programming.
CS 112 Department of Computer Science George Mason University CS 112 Department of Computer Science George Mason University Final Review Lecture 14.
Chapter 6 Programming Languages © 2007 Pearson Addison-Wesley. All rights reserved.
CS 206 Introduction to Computer Science II 09 / 10 / 2009 Instructor: Michael Eckmann.
Number Representation, Data Types and Elementary Programming Shirley Moore CS 1401 February 5-7, 2013.
1 Even even more on being classy Aaron Bloomfield CS 101-E Chapter 4+
Final Exam Review CS Total Points – 60 Points Writing Programs – 50 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Chapter 14 Abstract Classes and Interfaces. Abstract Classes An abstract class extracts common features and functionality of a family of objects An abstract.
CS 180 Problem Solving and Object Oriented Programming Fall 2010 Notes for Week 12: Nov 8-12, 2010 Aditya Mathur Department of Computer Science Purdue.
CS 180 Problem Solving and Object Oriented Programming Fall 2010 Notes for Week 11: Nov 1-5, 2010 Aditya Mathur Department of Computer Science Purdue University.
CS1101 Group1 Discussion 10 Lek Hsiang Hui comp.nus.edu.sg
Programmeren 1 6 september 2010 HOORCOLLEGE 2: INTERACTIE EN CONDITIES PROGRAMMEREN 1 6 SEPTEMBER 2009 Software Systems - Programming - Week.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Summary and Exam COMP 102.
CS 180 Problem Solving and Object Oriented Programming Fall 2010 Notes for Week 9: Oct 18-22, 2010 Aditya Mathur Department of Computer Science Purdue.
CSC 142 Computer Science II Zhen Jiang West Chester University
Written by: Dr. JJ Shepherd
Methods Chapter 6. 2 Program Modules in Java What we call "functions" in C++ are called "___________________" in Java Purpose –Reuse code –Modularize.
Arrays Chapter 7. MIS Object Oriented Systems Arrays UTD, SOM 2 Objectives Nature and purpose of an array Using arrays in Java programs Methods.
AP Java Ch. 4 Review Question 1  Java methods can return only primitive types (int, double, boolean, etc).
Chapter 1: Preliminaries Lecture # 2. Chapter 1: Preliminaries Reasons for Studying Concepts of Programming Languages Programming Domains Language Evaluation.
CS 100Lecture 231 Announcements Check your grades on the door of 5141 Upson More review tomorrow Review session Sunday night w/Alan FINAL EXAM: Tuesday.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 10 Java Fundamentals Objects/ClassesMethods.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Chapter 5 Introduction to Defining Classes Fundamentals of Java.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Week 15 – Monday.  What did we talk about last time?  Tries.
Chapter 3 Syntax, Errors, and Debugging
CSC 221: Computer Programming I Fall 2005
Week 15 – Monday CS221.
CS 1428 Final Exam Review.
Introduction to Data Structure
COMPUTER 2430 Object Oriented Programming and Data Structures I
CS Problem Solving and Object Oriented Programming Spring 2019
CS Problem Solving and Object Oriented Programming Spring 2019
CS Problem Solving and Object Oriented Programming Spring 2019
CS Problem Solving and Object Oriented Programming Spring 2019
CS Problem Solving and Object Oriented Programming Spring 2019
CS Problem Solving and Object Oriented Programming Spring 2019
Presentation transcript:

CS 180 Problem Solving and Object Oriented Programming Fall 2011 Notes for the Final Lecture Dec 7, 2011 Aditya Mathur Department of Computer Science Purdue University West Lafayette, IN, USA This class: 12/7 1.Centipede game 2.Review 3.Final Exam 4.Best wishes

Programming and the “Nupe”d! Moments Oh! Moments Wow! Moments

Project 5 Black Screen does not show! Mushrooms do not show! Centipede does not move! Nuped! (Null pointer exception () Nuped!

Project 5: and more Centipede moving too fast!! Projectiles do not move! GameLogic loop does not execute! Oh S… Nuped!

Project 5: and more and more Ship not moving past the mushrooms Projectiles not colliding with the centipede! Nuped! And more…but then?

Project 5: The End! Finally!!! Aaaaah…It all works! Thanks CS 180!

Centipede Game: Advanced version Deep Space Remix By Denis Luchkin-Zhou

Java classes Used Graphics: Draw screen and game characters Point, Dimension, Rectangle: Positioning and collision Font, Font Metrics: Drawing text Robot: Locking the mouse Image: Ship, asteroids, centipede, background Use of texturing Animation: modified implementation of circular buffer

Additional Game Features Weapon upgrades Debugging mode Object pooling: efficiency of memory usage Mega laser Chained asteroid explosion: Asteroids around an exploding asteroids are damaged based on hit- points Game menu Overall design

Now-- Demo by Denis!

Course Review

Chapter 1 No questions from this chapter on the final exam Number systems (binary, hexadecimal, octal) Integers and floating point numbers Conversion across bases (e.g., int to binary) Errors in number representation Overflow and underflow

Chapters 2 and 3 Program structure Variables, constants, operations (+, -, %, /, etc.) Statements Strings Primitive types: int, long, double, boolean etc. Conversion across types Math library Classes and objects Scanner

Chapters 4 and 5 If-then and if-then-else statements Loops: – while and for statements

Chapter 7 Arrays: – Single dimension – Double dimension – Array creation – Array index bounds exception – Looping through arrays – Searching and sorting

Chapter 8 Methods: – Method signature – Parameters – Return type and void – Recursive methods – GCD and Fibonacci – Tree creation and traversal

Chapter 9 Classes and objects: – Constructors – Instance variables – Instance methods – Access modifiers (public, private) – Object creation and use – Arrays of objects

Chapters 10 and 11 Interfaces and inheritance – Implementation of interface – Interfaces in GUI construction – Access restriction

Chapter 12 Exceptions – Try-catch-finally

Chapter 14 Creating a thread The run() method Passing data to a thread Getting data from a thread Dividing work amongst thread start() and join()

Chapter 18 Trees Creation Searching Traversing

Chapter 19 File objects Opening and closing files Reading and writing into files

Final Exam: Friday 12/16: 1-3pm. LAMBF101

Part A Closed book/notes 10 Multiple choice questions Chapters 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19 You may ignore the chapters NOT listed above To prepare, review: – the quiz questions during in class quizzes – the conceptual problems at the end of the chapters mentioned above.

Final Exam: Part B Open book/notes; no laptop, etc; no internet connection Chapters 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 14, 18, 19 Two programming questions Q1: You will be asked to write several short methods. Q2: You will be asked to write one concurrent program.

Final Exam: Part B Recursion: Yes Threads: Yes GUI: No (no listeners) Binary numbers: No Synchronization (wait and notify): No

Thank you! For this most enjoyable class! Best wishes for success in the rest of your career at Purdue and beyond!