Welcome to the Carbon Footprint Calculator, a simple C++ program designed to help you estimate the carbon emissions associated with various activities in your daily life. This project provides an interactive console application that calculates your carbon footprint based on transportation, electricity usage, and waste managements.
The Carbon Footprint Calculator is a tool to raise awareness about personal contributions to carbon emissions. By understanding these contributions, individuals can make more informed decisions to reduce their impact on the environment. This calculator provides estimates based on common emission factors for each category of activity.
- Transportation: Calculate emissions based on miles driven and vehicle fuel efficiency.
- Electricity Usage: Estimate emissions based on electricity consumption in kilowatt-hours.
- Waste Management: Evaluate emissions based on the number of people in a household.
-
Compile and Run: Compile the C++ code using a compatible compiler like
g++
, then run the executable to start the program.g++ -o CarbonFootprintCalculator CarbonFootprintCalculator.cpp ./CarbonFootprintCalculator
-
Choose an Option: Upon running, the program displays a menu. Select the activity you wish to calculate:
- Press
1
for Transportation. - Press
2
for Electricity Usage. - Press
3
for Waste Management.
- Press
-
Enter Required Data: Follow the prompts to enter necessary data, such as miles driven, electricity usage, or household size.
-
View Results: The program will calculate and display your carbon footprint for the chosen category.
-
Repeat or Quit: After each calculation, you can choose another option or quit the program by entering 'Q'.
- A C++ compiler (e.g., g++)
- Basic understanding of running console applications
This project was initially developed in May 2024 on my local machine. The project completion was delayed due to internet issues, but it is now available for use and further development.
The Carbon Footprint Calculator is planned to be expanded into a web application using React, with the development starting in June 2024. The web version will provide a more user-friendly interface and enhanced features for a broader audience.
copied by Curtis