PokéTrader

Download the following code, and get it to compile.

Files Needed

What You Should See

EXCHANGE POKEMON

0. PIKACHU
        1. CHARMELEON
        2. GEODUDE
        3. GYARADOS
        4. BUTTERFREE
        5. MANKEY

Choose a Pokemon to exchange with PIKACHU. (Or enter 0 to quit.)
> 2
EXCHANGE POKEMON

0. GEODUDE
        1. CHARMELEON
        2. PIKACHU
        3. GYARADOS
        4. BUTTERFREE
        5. MANKEY

Choose a Pokemon to exchange with GEODUDE. (Or enter 0 to quit.)
>

What You Should Do on Your Own

Assignments turned in without these things will receive no credit.

  1. Write code where indicated that exchanges the Pokémon in slot 0 with the selected Pokémon.



©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License