using jeroo

14
Jul 20, 2 022 Using Jeroo

Upload: ulric-baker

Post on 31-Dec-2015

30 views

Category:

Documents


0 download

DESCRIPTION

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. What is Jeroo?. An environment for learning object oriented programming. (OOP) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Using Jeroo

Apr 19, 2023

Using Jeroo

Page 2: 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.

Page 3: Using Jeroo

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.

Page 4: Using Jeroo

Where did Jeroo come from?

NW Missouri State University It’s free. www.jeroo.org

Page 5: Using Jeroo

Jeroo

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.

Page 6: Using Jeroo

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?

columns

rows 0

1

2

3

0 1 2 3 4

Page 7: Using Jeroo

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.

Page 8: Using Jeroo

How Jeroo works

3 steps:1. Create your environment

2. Write the program

3. Run the program

Page 9: Using Jeroo

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

Page 10: Using 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.

Page 11: Using 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)

Page 12: Using Jeroo

Creating the Jeroo environment

To create your environment in Jeroo:

Left-click to draw

Right-click to remove

Page 13: Using Jeroo

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.

Save as yournameLetterIsland and print your island design.

Page 14: Using Jeroo

The End