Exercise 33: Unit conversions and dietary information

Use cases:

Unit conversions. For example:
"Convert X kilograms to pounds"
"Convert X kilometers to miles"
"Convert X metres to feet"
Alternatively "What is X kilograms in pounds?" or "How many pounds are in X kilograms?"
Support: pounds, kilograms, grams, ounces, metres, feet, inches, feet_and_inches, yards, miles, kilometres, celsius, fahrenheit, kelvin, cups, tablespoons, teaspoons, litres, millilitres, gallons, cubic metres

Dietary information:
How many calories are in {quantity} of {food_item}?
ex. How many calories are in a can of Pepsi? 
How many grams of {nutrient} are in {quantity} of {food_item}
Nutrient types: carbohydrate, protein, fat 
Support at least 10 food items.

Solution

Click here

Grace application

Click here