Tuesday, March 18, 2008

ICA-CP Class Summary: String Arrays

State:
An array is a data structure for storing data of the same type.

Elaborate:
An array is declared by listing the data type followed a set of square brackets, then the name of the array. For example, to create an array of type string called names, we would use this line:

string [] names;

To declare and fill a string array, we would list the contents after declaring the array:

String [] names = ("Huey", "Dewey", "Louie");

Exemplify:
An array is like a set of lockers, each being numbered successively. For example, if we want an array of 8 items, it would be like having a row of lockers numbered 0, 1, 2, 3, 4, 5, 6, and 7. What goes inside is our data. For example, if we have an array with three names: Huey, Dewey, and Louie, the array would have:
1) Huey in locker 0.
2) Dewey in locker 1.
3) Louie in locker 2.

In Java, the array would have
1) Huey in names[0]
2) Dewey in names[1]
3) Louie in names[2]

Illustrate
So, arrays are like rows of lockers. Each row has a unique name. Each locker in a row has a unique number.

ICA-CP: 3/18/08 - More on string arrays

Good morning!

We will spend time going over string arrays again. We will write some Java pseudo code in class. Then, lab time will be spent working on modifying your Eliza program to become the Meyers-Briggs program. Eventually, this program will end up running on the Razr cell phones.

Friday, March 14, 2008

ICA-CP: 3/14/08 - Arrays on our Razor cell phones

Good afternoon!

Today we start a new topic, and a new programming project. We will talk over the concept of arrays in Java today. Stage 1 of your next project will be to make an array with all of our names and Meyers-Briggs results. A user will type a name, and the Meyers-Briggs for that person will appear on the Razr display. For this project, we will need a for loop, a while loop, StringTokenizer, and some arrays. We will also need to use more of the commands in the MIDP (which is an acronym for Mobile Information Device Profile).

These web sites below have some information which will help us with our new project. Stage 2 will involve adding someone's picture next to her name. After that, we may try programming a game.

http://today.java.net/pub/a/today/2005/05/03/midletUI.html

http://www.microjava.com/articles/techtalk/midp2_games

http://www.onjava.com/pub/a/onjava/excerpt/j2menut_3/index1.html

Link to pictures: http://picasaweb.google.com/dlclingingsmith/ICA?authkey=pjaBcWpWmxw

Wednesday, March 12, 2008

ICA-CP: 3/11/08 - Catch up today.

Like Monday, today is a catch-up day. Friday, we start something new (plus it's the last day of the quarter). So, use your time well.

ICA-CP: Question of the Week

[This is a 2 meeting week. So, your reply should be at least 200 words. If you are making up blogs for previous weeks, it's 100 words per day.]

Question of the week: Actually, this week it's several questions. What do you think of using your brain waves to play video games or to control your computer instead of a keyboard? What if, in the middle of writing a paper, you suddenly think of something else (like your dog or the concert next weekend or chocolate because you're hungry) other than your paper? What might happen to the computer? What if you were performing brain surgery and controlling a robotic arm instead of writing peper? What might be the consequences to your patient?


Background: See these articles -
http://news.bbc.co.uk/2/hi/technology/3485918.stm or http://news-info.wustl.edu/tips/page/normal/800.html or http://www.usatoday.com/tech/gaming/2008-02-21-brain-headset-games_N.htm
For paralyzed individuals, using brain waves could be a life line.

Thursday, March 06, 2008

ICA-CP: 3/5/08 - Double Jeopardy Quiz Day

Good morning!

Your quiz (worth double) awaits:

http://www.quia.com/quiz/1330540.html


We've gone over all of the material in the quiz at least four times - including a practice quiz. You know it all!!!! All you need to do this morning is pull out all the knowledge you already have about bits, bytes, and nybbles!

Tuesday, March 04, 2008

ICA-CP: 3/4/2008

Good morning!

Today, the "sign-off" sheet is due with the Razr exercises. However, people are having trouble unlocking their cell phones to run the "hello World" program. So, the "Hello World" program due date will be later. However, the other 3 programs are due today. Please turn in your sheets at the end of class today.

Today, we will go over the Java datatypes quiz together today. Log into the quiz, and we will review it question by question. Then, on Thursday, there will be another version of the quiz we will be taking.