Introduction to Jeroo a small object oriented programming language.
What is a Jeroo? A category or a class of an animal that can do things …. The Jeroo Program simulates how to create and use Java objects to perform tasks…. While having fun!
Jeroo’s World - Santong Island Located in an uninhabited land in the South Pacific Ocean A Jeroo is similar to the Wallabies in Austrailia
Behaviors/Methods of a Jeroo Object
Jeroo Behaviors (methods) ❏ hop() ❏ toss() ❏ pick() ❏ plant() ❏ turn() Attibutes (facts associated with aJeroo object ❏ similar to a wallaby ❏ poor swimmers ❏ careless ❏ has a pouch ❏ telepathic
What is a Program?
A set of instructions for a computer
A Computer Program is written in a programming language. ★ Java ★ C++ ★ C# Visual Basic ★ Python
Source Code Set of instructions written by a programmer in a programming language.
Source Code: hop() ; pick() ; plant() ;
A computer program requires a compiler to translate a program as a whole from one form into another.
the 2-Step process...
1. A compiler translates the source code to an intermediate language An intermediate language is the language of an abstract machine to aid in the analysis of computer programs
Step 2 The Interpreter translates the intermediate language to Binary (1’s and 0’s)
An Interepreter translates a program into Machine Language
Every Program starts with a Plan called an algorithm. Steps to solve a problem. Problem: how will I get a Jeroo object to move forward three steps? hop();