Using Jeroo Dianne Meskauskas

Slides:



Advertisements
Similar presentations
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 Getting Started with Java.
Advertisements

13-Jun-14 OOP features of Jeroo. Overview In this presentation we will discuss these topics: OOP terminology Jeroo syntax constructors methods.
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Programming Types of Testing.
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Tracking individual employee skill development S KILLS P ASSPORTS.
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.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
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!
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
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.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
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.
A First Program Using C#
Using Jeroo To Teach Object-Oriented Concepts By Christian Digout.
CSM-Java Programming-I Spring,2005 Introduction to Objects and Classes Lesson - 1.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
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.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
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.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
The Java Programming Language
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
25-Oct-15 Jeroo Code. Overview In this presentation we will discuss: How to write code in Jeroo How to run a Jeroo program.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
Introduction to OOP in VB.NET using Robots ACSE Conference, Nov 2004 Michael Devoy Monsignor Doyle C.S.S., Cambridge
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
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.
LECTURE IV MODELSIM. Go to the link listed below for a demonstration of how to begin working with Modelsim. The video shows you how to write a Verilog.
Objective You will be able to define the basic concepts of object-oriented programming with emphasis on objects and classes by taking notes, seeing examples,
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.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Introduction to Jeroo a small object oriented programming language.
Methods 9-Mar-17.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Computer Basics.
Component 1.6.
Control Structures part 2
In the beginning… software
Lecture 1 Introduction Richard Gesick.
Key Ideas from day 1 slides
Jeroo Code 18-Jul-18.
Chapter 2 First Java Programs
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
Tonga Institute of Higher Education IT 141: Information Systems
Control Structures part 2
OOP features of Jeroo 3-Jul-19.
Control Structures VB part 2
IF 1-Jul-19.
Jeroo Code 7-Sep-19.
Presentation transcript:

Using Jeroo Dianne Meskauskas 25-Mar-17

Overview In this presentation we will discuss: What is Jeroo? Where did it come from? Why use it? How it works. Your first assignments.

What is Jeroo? An environment for learning object oriented programming. (OOP) The Jeroo language is a small object-oriented programming language. you create objects and then do things with them. Created in Java.

Essential Concepts Program – a set of instructions for the computer Source Code – a program written by a programmer in a programming language Compiler – translates a program (or class) as a whole into another form such as byte code or machine code Interpreter – translates a program into machine language one statement at a time Java Byte Code – intermediate language created by the Java compiler. The JVM translates byte code into machine code. Machine Code – program in the form of binary codes - a series of 1’s and 0’s - that are understandable by the computer’s CPU

Essential Concepts Algorithm – a plan for solving a problem Syntax – a set of rules for writing or speaking a language Semantics – the meaning associated with valid expressions

Essential Concepts - OOP Object – represents a specific concept or item that is relevant to a problem to be solved. There are two parts to an object, facts about the object and tasks it can perform. Attribute – is a fact associate with a specific object Behavior – is an action an object can perform in response to a request from an external source

Essential Concepts - OOP Method – a collection of statements that are written in some programming language to describe a specific behavior Method Precondition – something that is assumed to be true before the method is invoked Method Postcondition – something that is assumed to be true after the method has been executed

Essential Concepts - OOP Message – a request for a specific object to perform a specific task When we ask an object to perform a task (behavior), we are sending a message to the object or invoking the method that describes the task.

Essential Concepts - OOP Class – is a collection of statements that are written in some programming language to describe both the attributes and the behaviors of an object. Instantiation – the process of creating a specific object. Jeroo clyde = new Jeroo(); clyde is an instance of the Jeroo class.

Where did Jeroo come from? NW Missouri State University Used in introductory college programming classes. Under development It’s free. www.jeroo.org

Why use Jeroo? Jeroo keeps the focus on important topics. Students master ideas faster. Jeroo stimulates problem solving. Jeroo encourages experimentation. It’s fun!

Jeroo Jeroos Humans arrive and set nets to catch Jeroos. Place: Santong Island in the South Pacific Two unknown species Jeroo: similar to the wallabies of Australia Winsum Flower: Jeroo's source of food Jeroos have a pouch to hold flowers can't swim – fur gets waterlogged-must dry Humans arrive and set nets to catch Jeroos.

The Jeroo environment The island is made of rows and columns. 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?

Programming steps A Jeroo can execute 6 action methods hop()  hop once or hop(n) to hop n times turn( relative_direction ) pick()  pick a flower plant()  plant a flower from the pouch toss()  throw a flower one space ahead. 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.

How Jeroo works 3 steps: Create your environment Write the program Run 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

Step 1. Create the Environment To start: Open an existing Island File Or Create your own Island Add or remove: Flowers Nets Water Land You can save and re-use your islands.

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)

A video demonstrating the Jeroo environment To create your environment in Jeroo: Left-click to draw Right-click to remove (click the link below) Start the video

Your first island: Assignment Design an island that uses water, nets and flowers to create an attractive design based on one or more of your initials. Click the floppy disk on the island side and save as yournameLetterIsland1 to your folder by clicking the down arrow for Save in and choosing the Thawspace (T:) and double clicking the lower case: wbhs-lab6105 (middle) and double clicking My Documents folder and double clicking your folder. Print your island design. Now try to make the rest of your initials yournameLetterIsland2 and 3

The End Staple the fill in the blank sheet on top of your print out. With the rubric

Jeroo Code 25-Mar-17

Overview In this presentation we will discuss: How to write code in Jeroo How to run a Jeroo program

Review: Step 1. Create the Environment To start: Open an existing Island File Or Create your own Island Add or remove: Flowers Nets Water Land You can save and re-use your islands.

Step 2. Write the program You can create and control up to 4 Jeroos. Your program must have a main method Each Jeroo gets a name when it is created Refer to them by name to send them a message

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 Answers: Jeroo neo = new Jeroo(); neo.hop( ); 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. Jeroo neo = new Jeroo(); neo.hop( ); neo.turn(RIGHT);

Choosing directions Four relative directions Four compass directions LEFT RIGHT AHEAD HERE Four compass directions NORTH SOUTH EAST WEST When you turn, you must specify a relative direction

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

Watch a program running the code is highlighted the Jeroo acts Click the link to see demonstration of A Jeroo program running continuously

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

Find the logic errors Go to Jeroo and create a flower at 3,2. (left click to create a flower, right-click to erase a flower) Type the commands exactly as you see them then run the program to find the errors Save it as Your Initials Alexandria to your folder

Your First Program Start Jeroo Enter your name 1. Create the environment Clear the island layout. Place a flower at location Row 12 Column 12 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 mrsH = 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 mrsH.hop( ); You must address your Jeroo by name. repeat this statement each time you want your Jeroo to hop mrsH.turn (relative direction); You must turn either LEFT or RIGHT Tell it to pick the flower: the Jeroo must be ontop of the flower to pick it mrsH.pick( ); It will stop when it reaches the end of the program.

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. Save the program as yourNameLetterIsland (the programming code will be saved with .jsc for jeroo source code as the extension. The island will be saved with .jev for jeroo environment as the extension so it is safe to name the island the program with the same name)

The End