SarthakKeshari / calc_for_everything

This repository aims to provide Calculators for educational, professional, scientific, health and well-being and other purposes.
https://calc-for-everything-psi.vercel.app
MIT License
113 stars 103 forks source link

Macro calc #498

Closed tiwari00ayush closed 10 months ago

tiwari00ayush commented 10 months ago

Issue Id you have worked upon -

484

Briefly explain your program logic -

here's a short explanation of the program logic for your Macronutrient Ratio Calculator:

  1. The user enters their age, gender, height, weight, activity level, and their goal (e.g., maintain weight, lose weight, or gain weight).
  2. When the "Calculate" button is clicked, the program calculates the user's Basal Metabolic Rate (BMR) based on their age, gender, weight, and height.
  3. It then applies an activity factor based on the selected activity level (e.g., sedentary, light exercise, or very active).
  4. The program adjusts the user's daily caloric intake based on their selected goal (e.g., maintain weight, lose weight, or gain weight).
  5. The calculated caloric intake is used to determine the recommended macronutrient ratios: carbohydrates, proteins, and fats.
  6. The results, including the total calories and macronutrient values, are displayed along with a pie chart illustrating the macronutrient ratio.

Screenshots(Attach 2 screenshots of your own input and output) -

Screenshot 2023-10-24 at 8 51 22β€―PM Screenshot 2023-10-24 at 8 51 46β€―PM


By raising this PR I affirm that -

SarthakKeshari commented 10 months ago

Congratulations πŸŽ‰ @tiwari00ayush on your contribution. Thanks for adding value to this repository. 😊

Let's celebrate this fest πŸ˜ƒ by providing more developers πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’» an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.

Your efforts can make difference.

SarthakKeshari commented 10 months ago

Hey πŸ‘‹, may you also encourage us by clicking the star icon on the repository main page. ⭐

image