In this final project for MIS2402 (Web App Development), we were asked to use AI to create two special-purpose calculators. A “special purpose” calculator is a web application that takes one or more inputs and generates a useful result. The first calculator was the same for all students– a loan repayment calculator. For the second one, I chose to create “The Meal Prep Macro Calculator”. It’s an online special purpose calculator that can help users to quickly plan out their daily food intake using their chosen calorie goal and percent of macros as the basis for determining grams of protein, carbohydrates and fat to be consumed in a given day. Many individuals who plan their meals or follow some form of structured diet struggle with figuring out how many grams of protein, carbohydrates and fat to consume on a daily basis. They may also struggle with dividing those totals up among all of their meals they plan to eat in a day. The calculator removes this problem. The user would just have to enter their total daily calorie needs, the amount of their total daily calories they want to be from protein, carbs, and fat, and the number of meals they will be consuming each day. After, the Meal Prep Macro Calculator will automatically compute their total daily grams of protein, carbohydrates and fat, and their grams per meal. The calculator assumes that the user will distribute these grams evenly among their meals, which makes the Meal Prep Macro Calculator useful for individuals looking for consistent and balanced portions throughout their day. Users can benefit from this calculator and would want to use it to:
- plan their daily nutrients
- support fitness and health goals
- decreases errors in calculating their nutrient intake
This project helped me to better understand writing HTML and JavaScript code and how AI can play a role in creating the web application.
