Presentation Week3 Presented by: Hanan Alnizami Wednesday June - - PowerPoint PPT Presentation

presentation week3
SMART_READER_LITE
LIVE PREVIEW

Presentation Week3 Presented by: Hanan Alnizami Wednesday June - - PowerPoint PPT Presentation

Presentation Week3 Presented by: Hanan Alnizami Wednesday June 11,2008 sdsa Plans for week 3: Reading-Teaching CS1 with Karel the Robot Introduction to Programming Using Java- Chapter 3 Problem Solving/Research Java Code and


slide-1
SLIDE 1

Presentation Week3

Presented by: Hanan Alnizami

Wednesday June 11,2008

slide-2
SLIDE 2

sdsa

Plans for week 3:

  • Reading-Teaching CS1 with Karel the Robot
  • Introduction to Programming Using Java- Chapter 3
  • Problem Solving/Research Java Code and programming
  • DMP Website- Uploaded
  • Shapes Applet Project

Hanan Alnizami- week 3 presentation 2

  • Shapes Applet Project
  • Adding Icons to an applet
  • Drag and Drop (DnD)
  • Applying the Icons to an interactive panel
slide-3
SLIDE 3

sdsa

Lit Review:

  • Using interesting predefined classes to introduce the

fundamentals of OOP followed quickly by the traditional fundamentals of iteration and selection, also using the same predefined classes

  • Shift the paradigm from procedural programming to

OOP

  • Karel ++: A General Introduction to the Art of OOP
  • Translate Karel++ and use Karel the Robot

Hanan Alnizami- week 3 presentation 3

  • Translate Karel++ and use Karel the Robot

Karel the Robot inhabits a simple world with streets, intersections and

  • avenues. Robots carry beepers that

may be placed on intersections. Several robots may exist in the same world.

slide-4
SLIDE 4

sdsa

Lit Review(continue):

  • Differences from previous Implementation and the

New approach: i. Old uses Karel and Karel++; New uses Java ii. Old does not support parameters; Java uses objects, local and instance variables and threads.

Hanan Alnizami- week 3 presentation 4

and threads. iii. Old integrated a development environment with simulator; New uses standard Java development environment.

slide-5
SLIDE 5

sdsa

Lit Review(continue):

  • Course Outline

i. Week One: Describe Robot and the world they

  • Inhabit. Introduce Objects and methods.

ii. Week Two: Extend Robot class with behaviors; move left, move right..etc iii. Week Three: Introduce Selection and Iteration; value returning methods.

Hanan Alnizami- week 3 presentation 5

value returning methods. iv. Week Four: Adding Parameters to methods. v. Week Five: Extending robots with instance variables; DeliverRobot, how many moves a robot takes to deliver a service

slide-6
SLIDE 6

sdsa

Lit Review(continue):

  • Discussions:
  • Robots are overly used!
  • Robots are fun! Students learn and have fun!
  • Course is learning about robots?!
  • Robots are tool to teach programming.

Hanan Alnizami- week 3 presentation 6

  • Robots are tool to teach programming.
  • Visual representation of a subject makes it

easier to learn

slide-7
SLIDE 7

sdsa

Lit Review(continue):

  • Future Plans:

i. Discuss attributes along with behaviors ii. Adding richer collections of classes, more interaction with the environment.

  • iii. Adding GUI applications to enhance

Hanan Alnizami- week 3 presentation 7

learning experience. Becker is writing a book that starts off with Karel and also include all CS1 courses topics.

slide-8
SLIDE 8

sdsa

Tasks:

  • Documents:
  • Introduction to Programming Using Java: Chapter 3
  • Projects:
  • Adding objects (icons) to form

Hanan Alnizami- week 3 presentation 8

  • Adding objects (icons) to form
  • Drag and Drop icons to panel
  • Drawing 3D shapes into canvas
slide-9
SLIDE 9

sdsa

Accomplished:

  • Readings
  • DMP website

Partially Accomplished:

Hanan Alnizami- week 3 presentation 9

Partially Accomplished:

  • Shapes Applet Project
slide-10
SLIDE 10

sdsa

What’s learnt:

  • Importing icons to labels in NetBeans
  • Drag and Drop– how it works.

Hanan Alnizami- week 3 presentation 10

slide-11
SLIDE 11

sdsa

Problems:

  • Enable drop to a panel. The framework for drop

is in place for the following components:

  • JList
  • JTable
  • JTree

Hanan Alnizami- week 3 presentation 11

  • How I am going about it?
  • - Google
  • - Sun Forums

(http://forum.java.sun.com/forum.jspa?forumID=54)

  • -Mahjoob Forums

(http://www.mahjoob.com/en/forums/forumdisplay.php?f=21)

slide-12
SLIDE 12

sdsa

Week 4 Plans:

  • Readings– Chapter 4, Lit Review
  • How to add drop to a jEditorPane
  • Update DMP website

Hanan Alnizami- week 3 presentation 12

  • Play a few games
slide-13
SLIDE 13

sdsa

References:

  • Becker, Byon. Teaching CS1 with Karel the Robot in Java. Ontario, CA,

50-54.

  • Sun Developer Network-- Forums

(http://forum.java.sun.com/forum.jspa?forumID=54)

  • Mahjoob Tech Talk Forums

(http://www.mahjoob.com/en/forums/forumdisplay.php?f=21) Hanan Alnizami- week 3 presentation 13 (http://www.mahjoob.com/en/forums/forumdisplay.php?f=21)

  • Editor Drop Target

(http://www.java2s.com/Code/Java/Swing-JFC/EditorDropTarget.htm)

  • Eck, D. J. Introduction to Programming Using Java. November 2007,

Geneva, NY 1-676.

slide-14
SLIDE 14

sdsa

The End

  • Any questions or comments?

14

Hanan Alnizami