0

Need help with variables for recipe app

I have a portion of a prototype where I'd like for the user to input how many people they are cooking for, and it will show how much beef you would need to cook the recipe. 

 

For example, on one container state, the user is prompted to type in how many people they are preparing the meal for. If they put in "1," and then click "next," the next container state would show "9 ounces." If they put "2," then it would show 1.25 pounds. If they put "3," then it would show 1.75 pounds, and so on (up to 10). 

 

I know I need to utilize variables for this but I'm not sure how to do it. 

1 comment

Please sign in to leave a comment.