Inspiration
I wanted to make something space-related that was educational and mind-boggling. I thought creating a project where people could determine the weight of common objects on different planets would be great since it would be cool to see how objects that are normally light on Earth are heavy on other planets and vice versa. Could you imagine throwing a baseball on Jupiter? It would be double the weight! Or, could you imagine a paperclip getting any lighter? Well, on Mercury, it would be 1/3 it's normal weight on Earth!
What it does
The website has two dropdown selectors, one to pick an object and another to pick a planet. Then click the button and the weight of that object on that planet will be calculated and displayed.
How I built it
I built the website using HTML, CSS, and JavaScript.
Challenges I ran into
I needed to determine the calculation for converting weight on Earth to weight on other planets. Luckily, there are some simple formulas that have to do with the gravity on each planet.
Accomplishments that I'm proud of
I am proud of myself for completing a project and learning something new. Hopefully my project can be useful and fun for others.
What I learned
I learned about how to take user input from the front-end, make some calculations on the back-end based on the user input, and then display the results on the front-end. I also learned much about how the weight of common objects varies on different planets.
What's next for Space Weight
It would be nice to include another user input field so they can specify the unit of measurement for the results (g, lbs, etc...). Also, it would be cool to include some more calculations, such as how long it would take to throw the baseball across the field on another planet, or how long it would take a brick to hit the ground if you dropped it from different heights on different planets.
Log in or sign up for Devpost to join the conversation.