Inspiration
I was inspired by the projects that we did in Health class. I learned much about the importance of being eco-friendly and many other things to protect the environment and the actions we must take to become so.
What it does
My project is a quiz that takes information from the user and then calculates the amount of Earths that would be needed if everyone on Earth lived the same/similar lifestyle. It is to show people how harmful people's lifestyles can be, and to take action to improve their "Earth Count."
How we built it
I built it in CodeHS using the knowledge I gained from my AP Java class. At the beginning of my project, I worked non-stop on the project; programming all the ideas I had. Over the next few days, I slowly worked on tweaking, debugging, and improving my code.
Challenges we ran into
I ran into lots of challenges with ideas, as well as making my code efficient. Sometimes I would find myself repeating code and wondering what I could do to make it simpler. I also had to test many inputs into my code to make sure all if not most of the loopholes were covered.
Accomplishments that we're proud of
I am proud of the project overall. I think that this is pretty simplistic, as it is mostly just a question-and-answer style quiz; however, I have never worked this long and hard on a project before. It makes me feel great!
What we learned
I learned a few new things, notably this method:
public static void clearScreen()
{
System.out.print("\033[H\033[2J");
System.out.flush();
}
'''
This method clears the console from the previous text. I utilized this to simulate moving to the next question/page in my quiz for a better experience.
# What's next for Ecological Footprint
I want to slowly work on improving the efficiency of the code, as well as adding features to the end. I have some ideas of suggesting to the user what they can do based on their score, along with adding photos (which I hadn't known was possible) to make it more aesthetically pleasing.
Built With
- codehs
- java
Log in or sign up for Devpost to join the conversation.