Programming+Task+1+-+Planet+Age+Calculator

"The heavens declare the glory of God; the skies proclaim the work of his hands." - Psalm 19:1 Our solar system is an amazing place! Try http://www.exploratorium.edu/ronh/age/ to find out what your age is on other planets. Your goal is to make a similar (but simpler!) calculator in Flash.

Your calculator needs to have a place for the user to input their age on Earth. Then, they click a button and they are told their age on another planet. You are only required to calculate their age in years (not days), and you only need to calculate it for one planet.

Task 1: Design the Interface Your interface must have a place for the user to enter their age, and this should be labelled appropriately (use the Text tool or a Label to label it). You also need to have a button (with an appropriate label) and an output area for the user to see their age on the other planet. You can also decorate your interface to make it look "spacey!"

Task 2: Write the code Using the Graphical User Interfaces tutorial as a reference, you need to take in the user's age on Earth, calculate their new age (store it in a variable!), and output the result (as a sentence) to the user. Here is a list of all of the planetary years in Earth years: @http://www.enchantedlearning.com/subjects/astronomy/age.shtml Hint: Figure out the math on paper first!

Marking Scheme: 10 marks - User interface has all required elements and all components are appropriately named. Interface looks professional. 10 marks - Code works as expected. Output appears as a sentence and calculations are correct. At least one variable is used in the program. 5 marks - In comments, please write your name at the top of the program. Also, please add a very short description of what the program does. In your program, explain what your code does briefly.

Here is an example of how the program works. You may use any planet - you do not have to use Neptune! media type="file" key="Neptune.swf" width="513" height="513"