EXTEND: Now it's time to modify and extend your program. Make sure you meet the following 3 requirements:

  1. Build a third function to convert weight on another planet using the conversion values from this table.
  2. Choose another animal from this list. Add a sprite for that animal and a variable for the weight of that animal.
  3. Calculate the weight of the new animal you chose for each planet using the functions you created. Have the animal sprite say its weight for each planet.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)