Prompt: Dough hydration is the water/flour ratio of the dough in grams. Neapolitan-style pizza typically has a hydration level of around 65%. Given the int variables called flourWeight and waterWeight, which contain the corresponding integer numbers, please calculate the value of the corresponding hydration and store it in the float flourHydration variable, which has already been declared. Be mindful of the fact that a fractional result is expected.
Issue: I keep getting an logic error and I really cannot see where I'm going wrong.
The check solution box states: The resulting value is not correct. Are you sure to have performed the correct calculation? you should multiply the flower weight by the hydration percentage, which has been divided by 100
Desired input is 0.8 but I'm getting 3.25 as an output.
Code:
flourHydration = static_cast<float>(flourWeight) * (0.65 / 100)