Lexyful / What-s-Cookin

0 stars 0 forks source link

Create Recipe class #5

Closed quynhtlluu closed 1 year ago

quynhtlluu commented 1 year ago

To calculate the cost of a recipe, you will need to factor in the amount listed in the recipe. The price (estimatedCostInCents) of an ingredient is per unit.

For example, if flour is marked as 100 cents, and the recipe calls for 1.5 cups, then it would cost 150 cents. Similarly, if a tomato is $2, and the recipe requires 2 tomatoes, then the cost would be $4.

jmartin777 commented 1 year ago

pushed up to Github!