Inspiration
The inspiration for this project was the current climate change issue. The main reason for climate change is the increase in carbon emissions, which traps heat in the Earth's atmosphere, increasing the overall temperature of the Earth. Reducing these carbon emissions, mainly created by gasoline cars and other forms of transportation, would be highly beneficial for the Earth.
What it does
Green Earth is a place to log times whenever you went somewhere with a clean form of transportation. Every time you log a travel with a clean form of transportation, you gain Earth Points, a system of currency. This form of currency can be used to buy gift cards in the app itself, motivating people to commute to work or school with a clean form of transportation.
Note: This version of Green Earth does not buy you real gift cards.
How I built it
Green Earth is a simple Java command line application. It was made by using essential programming concepts such as conditionals, lists, classes, objects, and loops. It takes user input and then uses conditionals to redirect the user to different menus. The user's logbook is a list, and the other essential information is stored in the respective class.
Challenges I ran into
A challenge I ran into was not being able to allow the user to input multiple travels. But I later resolved this issue with the use of a while loop, checking a Boolean as a conditional.
Accomplishments that I'm proud of
An accomplishment that I'm proud of is being able to create a program with no errors overall. But I am also proud of being able to use classes and objects for a practical purpose for the first time.
What I learned
I learned how to use methods to be able to call the same code repeatedly without having to retype everything.
What's next for Green Earth
The next steps for Green Earth are probably to incorporate AI, so that it can check whether or not the mode of transportation is clean without having me to hard-code it. A UI will also be developed as well, so that it is more like a real application.
Log in or sign up for Devpost to join the conversation.