Tuesday, 8 October 2013

Potato Batteries: How to Turn Produce into Veggie Power!


Experimental Procedure
  1. Insert the electrodes into the potatoes.
    1. Note that some juice may leak out of the potatoes during this process, so work on a surface that is easy to clean, or use paper towels.
    2. Press one copper and one zinc electrode into the middle of a potato, spaced roughly 1 inch apart, as shown in Figure 4. Press the electrodes in until they almost poke out of the other side of the potato. Note: If they do accidentally go through, that's ok. Just pull them back up a little bit.
    3. Repeat this for the other two potatoes.
a clip_image001   
Figure 4. Copper and zinc electrodes inserted into a potato.

Saturday, 7 September 2013

Syntax and Semantic Errors

Syntax and semantic errors typically occur in the source program. They identify actual programming errors. When one of these errors is encountered, the compiler attempts to recover from the error and continue processing the source file. As more errors are encountered, the compiler outputs additional error messages. However, no object file is produced.

Syntax and semantic errors produce a message in the list file. These error messages are in the following format: