Inspiration
We were inspired by our former research in our Chemistry class that investigated carbon dioxide emissions.
What it does
Our project simulates a rocket blast and the distance it travels using the amount of fuel the rocket has, alongside the amount of passengers on the rocket. Then, by using the amount of passengers to determine the amount of CO2 released, we calculate the amount of reduced CO2 using biofuels. However, keep in mind that these calculations are not accurate because many simulated variables are eliminated, such as mass or wind.
How we built it
We built our code using Javascript hosted on CodeHS.
Challenges we ran into
We weren't too familiar with Javascript, encountering difficulties with setTimer and UI creation. For example, for the UI creation, we did not know that we can form triangles from the polygon() feature. The rocket itself as difficult to create due to the scaling and the dimensions of the polygons. As for the setTimer feature, it was a brand new concept that was presented to us. setTimer acted as a loop, which we were familiar with, but it consisted with a stopTimer(function) instead of a break.
Accomplishments that we're proud of
We were able to find work arounds difficulties with setTimer and made a functionable UI using key inputs. So for the setTimer, we were able to implement the stopTImer feature, consisting of a continuous variable (counter) that allows the program to keep track of the milliseconds, resulting into using the counter for the stopTimer.
What we learned
We learned how to build a functioning simulator, with an improved UI. We also learned how to make a math equation that calculates the amount of kilometers, days, and gallons. But most of all, we learned how to use setTimer and stopTimer.
What's next for Blast off Simulator
Adding other variables such as mass, food, and gravity. We also want to make the system more scalable so it doesn't stop at 7 days.
Slidedeck: https://docs.google.com/presentation/d/19dM8DVmIQmh-g-PUKcPC3i7pKw6ba44FEkyjS7qGnrY/edit?usp=sharing
Log in or sign up for Devpost to join the conversation.