dmbclub / pe

0 stars 0 forks source link

Need some explanation #2

Open dmbclub opened 3 years ago

dmbclub commented 3 years ago

I dont know why I can get the number 48g since all attributes are empty in the list. image.png

nus-pe-bot commented 3 years ago

Team's Response

The application is working as intended.

When the nutritional values are missing, the application tries to estimate them using the values that were provided. In this case, only the calories was provided for both entries. The estimation of the nutritional values is done such that the contrbution to calories of all the missing values is the same: i.e. the calories from carbs = calories from proteins = calories from fats.

Hence, for the banana: 1000 calories -> 333 calories from fat -> 37g of fat (9 calories per g)

For the chicken rice: 300 calories -> 100 calories from fat -> 11g of fat

This brings the total fat to 48g, which is what was shown in your screenshot.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: But i think need to mention the algorithm in the dg or ug. I still do not know how you calculate them after reading through the ug and dg.