5-Oct-15 Introduction and Code. Overview In this presentation we will discuss: What is Jeroo? Where can you get it? The story and syntax of Jeroo How.

Slides:



Advertisements
Similar presentations
Using Jeroo Dianne Meskauskas
Advertisements

Introduction to Programming Java Lab 1: My First Program 11 January JavaLab1.ppt Ping Brennan
13-Jun-14 OOP features of Jeroo. Overview In this presentation we will discuss these topics: OOP terminology Jeroo syntax constructors methods.
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
COMS W1004 Introduction to Computer Science May 30, 2008.
11-May-15 Control Structures part 2. Overview Control structures cause the program to repeat a section of code or choose between different sections of.
Programming in Jessica By Joaquin Vila Prepared by Shirley White Illinois State University Applied Computer Science Department.
SIMPLE PROGRAMS Jeroo – Chapter 4 –. Basic Concepts Jeroo (Java/C++/object-oriented) programing style is case-sensative. Be consistent in coding Logic.
Section 2.3 Gauss-Jordan Method for General Systems of Equations
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
How to Debug VB .NET Code.
PowerPoint: Tables Computer Information Technology Section 5-11 Some text and examples used with permission from: Note: We are.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
30-Aug-15 Using Jeroo. Overview In this presentation we will discuss: What is Jeroo? Where did it come from? Why use it? How it works. Your first assignments.
Week 4-5 Java Programming. Loops What is a loop? Loop is code that repeats itself a certain number of times There are two types of loops: For loop Used.
Using Jeroo To Teach Object-Oriented Concepts By Christian Digout.
Noadswood Science,  To know the basics of Python coding and decoding Monday, September 07, 2015.
17-Sep-15 Using Jeroo. Overview In this presentation we will discuss: What is Jeroo? Where did it come from? Why use it? How it works. Your first assignments.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Chapter An Introduction to Problem Solving 1 1 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
Week 5 - Wednesday.  What did we talk about last time?  Exam 1!  And before that?  Review!  And before that?  if and switch statements.
Python Programming Chapter 6: Iteration Saad Bani Mohammad Department of Computer Science Al al-Bayt University 1 st 2011/2012.
Creating your first C++ program
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
16-Oct-15 Loops in Methods And compound conditions.
25-Oct-15 Jeroo Code. Overview In this presentation we will discuss: How to write code in Jeroo How to run a Jeroo program.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Chapter 12 Object Oriented Design.  Complements top-down design  Data-centered view of design  Reliable  Cost-effective.
13-Nov-15 Control Structures. Overview Without control structures, everything happens in sequence, the same way every time Jeroo has two basic control.
Chapter 5 Working with Multiple Worksheets and Workbooks
15-100: Introduction to Programming w/ Java * Ananda Gunawardena -- Lecture – School of Computer Science – Phone : (x81559) – Office: Wean Hall.
16-Dec-15 Control Structures VB. Overview Without control structures, everything happens in sequence, the same way every time Jeroo has two basic control.
Introduction to OOP in VB.NET using Robots ACSE Conference, Nov 2004 Michael Devoy Monsignor Doyle C.S.S., Cambridge
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
 Columns  Rows  Cells  Ranges  Cell addresses  Column headers  Row headers  Formulas  Spreadsheet.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
17-Feb-16 Methods. Overview In this presentation we will discuss these 4 topics: Main method vs. Jeroo methods Choosing behaviors to turn into methods.
1 Week # 4 Introduction to PDM PDM is a workbench environment that lets programmers and system operators navigate the three levels of the AS/400’s object-based.
Jeopardy $100 VariablesErrorsLoops Classes and Objects Program Structure $200 $300 $400 $500 $400 $300 $200 $100 $500 $400 $300 $200 $100 $500 $400 $300.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
L071 Introduction to C Topics Compilation Using the gcc Compiler The Anatomy of a C Program Reading Sections
11-Jun-16 Algorithms 2.2. Overview In this presentation we will discuss: What is an algorithm? 5 steps in developing an algorithm A Jeroo example.
Introduction to Jeroo a small object oriented programming language.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
Methods 9-Mar-17.
Control Structures part 2
In the beginning… software
Jeroo Code 18-Jul-18.
OOP features of Jeroo 8-Nov-18.
a small object oriented programming language.
Introduction and Code 18-Jan-19.
Overview Introduction to Jeroo: What is Jeroo? Where did it come from?
Introduction to Object-Oriented Programming in Alice
Control Structures 5-Apr-19.
Control Structures part 2
Control Structures 12-May-19.
OOP features of Jeroo 3-Jul-19.
Indentation & Comments
Control Structures VB part 2
IF 1-Jul-19.
Jeroo Code 7-Sep-19.
Presentation transcript:

5-Oct-15 Introduction and Code

Overview In this presentation we will discuss: What is Jeroo? Where can you get it? The story and syntax of Jeroo How to create islands, write code and run programs. Your first assignments.

What is Jeroo? An environment for learning object oriented programming in Java, Basic or Python. (OOP). you create objects and then do things with them. Created in Java. It’s free.

The story behind Jeroos Jeroos similar to the wallabies of Australia have a pouch to hold flowers Winsum Flower: Jeroo's source of food Where they live: Santong Island in the South Pacific can't swim – fur gets waterlogged-must dry Humans arrive and set nets to catch Jeroos. Jeroos try to avoid the nets

The Jeroo environment The island is made of rows and columns. Locations are written ( row, column) The programmer chose to number both the rows and columns starting with zero at the northwest corner of the island. (0,0)(0,1) (?) (3,2) NORTH What location is this? columns rows

What a Jeroo can do A Jeroo can execute 6 action methods 1. hop ()  hop once or hop(n) to hop n times 2. turn (relative_direction ) 3. pick ()  pick a flower 4. plant ()  plant a flower from the pouch 5. toss ()  throw a flower 1 space ahead. 6. give (relative direction)  give a flower to another Jeroo They always follow directions in order, from top to bottom. Put it all together to solve various problems. Four relative directions: LEFT RIGHT AHEAD HERE When you turn or give, you must specify a relative direction turn(relative_direction ) give(relative direction)

Creating a program in Jeroo 3 steps: 1. Create the environment 2. Write the program 3. Run the program

Step 1. Create the Environment To start: Open an existing Island File Or Create your own Island Add or remove: Flowers Nets Water Be careful, this one is different: it resets the island Land You can save and re-use your islands.

Creating the Jeroo environment To create your environment in Jeroo: Left-click to draw Right-click to remove

Step 2. Write the program You can create and control up to 4 Jeroos. Your program must have a main method { curly braces } surround statements to group them together In Java every statement ends with a ; semicolon Each Jeroo gets a name when it is created

The constructor statement Jeroo alfred = new Jeroo(); A new Jeroo is created and assigned the name alfred. alfred will appear in the top left corner of the island, facing east. All statements in the main program must specify which Jeroo is to act, and what it is to do. alfred.toss(); tells alfred to toss a flower into the space ahead.

Coding practice Write the code to create a new Jeroo named neo Write the code to make neo hop Write the code to make neo turn right. Answers: Jeroo neo = new Jeroo(); neo.hop( ); neo.turn(RIGHT);

hopping hop() alone means hop once in the direction the Jeroo is facing hop(n) will tell the Jeroo to hop n times Example: alexandria.hop(3); is the same as: alexandria.hop(); Write the code to make neo hop forward 5 times. neo.hop(5);

Step 3: Run the program Animation shows Jeroos moving around the island Source code highlights while executing You can run one step at a time Run the whole program continuously Pause at any time Go back to the beginning, or stop

Step 3: Run the program 3 different language modes You want Java/C++/C#

Watch a program running the code is highlighted the Jeroo acts

Find the logic errors Go to Jeroo and demonstrate and fix alexandria

Lab 1 Start Jeroo Enter your name 1. Create the environment Clear the island layout. Place a flower at location Row 3 Column 2 2. Write the program Create a Jeroo with your name Tell it to hop to the flower Tell it to pick the flower 3. Run the program If it doesn’t work, fix it!

The program goes in the main method Create a Jeroo with your name Jeroo mrsOC = new Jeroo( ); It will appear in location 0,0 facing EAST with no flowers in its pouch. Tell it to hop onto the location with the flower mrsOC.hop( ); You must address your Jeroo by name. repeat this statement each time you want your Jeroo to hop mrsOC.turn (relative direction); You must turn either LEFT or RIGHT Tell it to pick the flower mrsOC.pick( ); It will stop when it reaches the end of the program.

Icons used to create and edit islands Set the speed of the Jeroos Create a new island layout Open an existing island Save the island Save as Print Plant flowers on the island Set nets on the island Add water to the island Clear the island layout (remove all extra flowers, water and nets) Get help with the Jeroo language Quit Jeroo

Learn how to create islands. Select water, flower or net left-click to add right-click to remove Learn how to save islands. Programs and islands are saved separately Source_file save (.jsc) Island_file save (.jev) First Assignment Create an attractive island based on your initials using water, land, flowers and nets.

Top Grade Write a program to get a Jeroo from one end of your original letter island to the other using AT LEAST 8 programming steps. Add a comment to your code with your name in it and print the code. (comments start with //)

The End