Introductory Programs

Assignments that teach Introductory Programs

Typical introductory programs that use the Finch rely on the "set" methods of the API to create scripts that cause the Finch move, change its beak color, or say something.  

Although a simple Finch program requires several extra lines compared to the very simplest type of "Hello World" program, we have not found these to be distracting to students.  This is especially true in the case of a language like Java, where the first program students are presented with already contains several mysterious lines (e.g., public static void main(final String[] args)) that are typically explained later in the course.  

Generally, first programs that use the Finch will need to have an import statement to add the Finch library, and they will need to have a line to instantiate the Finch object.  If you wish to get students started quickly, we recommend that you start students with a skeleton file that includes those lines - such a skeleton is provided in the Finch java download (the FinchTemplateFile.java in the Code package).  

Students should learn four methods to create interesting scripts with the Finch:  saySomething, setWheelVelocities, setLED, and sleep.  With these four methods, a student can create a program of arbitrary length that changes the Finch beak's color, drives it around, and has it "say" phrases through the computer's speakers.

Of the four methods, sleep is often the least understood by students.  Sleep is required to ensure that the program's output is visible to the user - e.g., if I set the LED to green and then to blue without an intervening sleep, the LED will flash green for an infinitesimally short period.

We have observed great success in using a part of a class period to have students begin creating scripts with the Finch.  The teacher can roll out the methods one at a time, explain how they operate, and demonstrate the need for sleep.   

Comments

Year 2013 has been quite

Year 2013 has been quite eventful. SRSG also witnessed events and evolved in terms of business verticals, technologies, people and processes.
FM Channel License

Artemis Hospital, spread

Artemis Hospital, spread across 9 acres, is a 350 bed, state-of-the-art multi-speciality hospital located at Gurgaon, in the Capital Region, India. Artemis Hospital is the first JCI and NABH accredited hospital in Gurgaon.
Hospital in gurgaon
Heart surgery in gurgaon
Liver transplant in gurgaon

OPY World School is promoted

OPY World School is promoted and managed by Rao Mohar Singh Education Society with the mission to provide quality education at school level.
Best school in rewari
School in mahendergarh

OPJS University has been

OPJS University has been established in the year 2013, by an Act (Act No. 19 of 2008) Act No.-16 of 2013, of the Rajasthan State Legislature and is approved under section 2(f) of UGC Act 1956 vested with the authority to award Degrees, Diplomas and Certificates.
Phd admission 2015
Phd Courses
MPhil admission

Vehicle Fleet Manager by

Vehicle Fleet Manager by Vinity Soft Inc. is fleet management software which makes easy and quick work of monitoring and organising precautionary and restoration servicing info for the fleet. Its versatile enough to help you to monitor whatever amount details while you want, and notifications will make sure that you when a specific automobile or equpiment is due for services.

I really enjoyed reading this

I really enjoyed reading this post, I was just wondering do you trade featured blog posts. Thanks for sharing your Blog with others. You really share valuable information.
How to No No by Radiancy.

I simply want to tell you

I simply want to tell you that I am new to weblog and definitely liked this blog site. I have been meaning to write something like this on my website and you have given me an idea.
Broadcast consultancy

interesting

I don't know too much about this Finch program, but I am proficient in solving computer issues, such as how to repair a AppCrash and the like.

I'd like to learn more about this language.

I really like your blog..

I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to do it for you?

Plz answer back as I'm looking to construct my own blog and would like to find out where u got this from.
many thanks

getnamenecklace

Finch procedural requirements

Finch procedural requirements compared very simple? I do not think, I think the more complicated process. Script created by the students began to explain how they work. Need some time to adapt.

Men's Rolex

First of all, these

First of all, these assignments have been quite helpful. I didn’t know that these assignments can be used for either python or java. I have not yet checked out its usability with python. I will certainly check it out anyway.

Bob Marley shoes

Unable to see introductory program code.

I am unable to download/see practice exercises for Jython. as soon as I click the link it takes me to Python source code page.

am I doing something incorrectly ?

thanks !
D

Most of the assignments

Most of the assignments currently posted to the site can be used for either python or java.

Unlike the Java package download which has a large number of sample programs, the Jython package only has three examples, though they do cover the basics of sensing, actuation, and using computer peripherals like speakers and internet data through RSS. Consider downloading the Java package to look at the example programs if you'd like more ideas for what to do with Finch.