Inspiration: The Wellness Tracker was inspired by the growing need for individuals to monitor and improve their health and well-being in a simple, accessible way. In today’s fast-paced world, people often forget to track their daily habits, which directly impact their health. I wanted to create a tool that encourages users to take small steps toward a healthier lifestyle by tracking essential factors like steps, water intake, and sleep. By providing immediate feedback on their wellness efforts, the goal is to motivate users to develop consistent habits that lead to better physical and mental well-being.

What I Learned: Throughout this project, I deepened my understanding of basic Java programming concepts, including:

Data input and output using Scanner. Conditionals to compare user input against wellness goals and provide feedback. Structuring the project in a simple, modular way that focused on creating a positive user experience. The importance of user-centered design by creating a straightforward and easy-to-use program that promotes healthy behaviors. Additionally, I learned how to work with simple Java classes and manage user input in a way that makes the program both interactive and informative.

How I Built the Project: To build the Wellness Tracker, I followed these steps:

Initial Planning: I defined the wellness categories I wanted to track: steps, water intake, and sleep. I also set realistic goals for each category: 10,000 steps, 8 cups of water, and 8 hours of sleep. User Interface: I created a simple text-based user interface using Scanner for user input. The program prompts the user to enter their data and then gives them feedback on their performance. Conditional Logic: I implemented logic to compare the user’s input to the wellness goals and provide feedback based on whether they met the targets or not. Testing: I tested the program with various inputs to ensure that the logic and output were functioning as expected. This step helped ensure that the feedback provided was accurate and motivating. Challenges Faced: Goal Setting: One of the challenges was setting reasonable and motivational wellness goals that users would relate to. I had to balance creating achievable targets with encouraging users to push themselves towards healthier habits. User Input Handling: Ensuring that the program properly handled all types of input (including edge cases) was another challenge. For example, if the user entered negative values for sleep or steps, the program needed to handle that gracefully. Providing Useful Feedback: Designing feedback that was both positive and encouraging (even when the goals weren't met) was a challenge. I had to ensure the language was motivating rather than discouraging to help users stay committed to their wellness journey. In conclusion, this project was a rewarding way to combine programming skills with promoting healthier habits, and it taught me valuable lessons about user interaction and real-world applications of code.

Built With

Share this project:

Updates