Old MacDonald Had A Farm.
From Huben's Wiki
Line 1: | Line 1: | ||
You may be wondering why, here in Starfleet Academy, we are studying farms. Allow me to remind you that [[http://en.wikipedia.org/wiki/James_Kirk James Tiberius Kirk]] grew up on a farm in Iowa. | You may be wondering why, here in Starfleet Academy, we are studying farms. Allow me to remind you that [[http://en.wikipedia.org/wiki/James_Kirk James Tiberius Kirk]] grew up on a farm in Iowa. | ||
− | + | Download these two files: | |
− | * [http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/Animal.class Animal.class] | + | * [[http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/Animal.class Animal.class]] |
− | * [http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/TestAnimal.java TestAnimal.java] | + | * [[http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/TestAnimal.java TestAnimal.java]] |
− | + | into a new folder, and then load them into DrJava. | |
Instructions are in TestAnimal.Java. When you are successful, the program will inform you. At that point, you can uncomment the "Animal.song();" line, and you should get a correct rendition of the song. When you know how to make your computer read the song, we can put the instructions here. | Instructions are in TestAnimal.Java. When you are successful, the program will inform you. At that point, you can uncomment the "Animal.song();" line, and you should get a correct rendition of the song. When you know how to make your computer read the song, we can put the instructions here. | ||
− | Reading the song on Macs: | + | * Reading the song on Macs: |
+ | ** Put the text you want read into TextEdit. | ||
+ | ** Select the text. | ||
+ | ** Use the menu option Edit/Speech/Start Speaking. | ||
+ | ** If you open the System Preferences/Speech menu, you can change the voice and the rate. | ||
− | Reading the song on PCs: | + | * Reading the song on PCs: |