forloop to assemble 6 meals.
- The meals must include one item from each of the source arrays.
- Each ingredient can only be used ONCE.
- Print out each meal.
I created six empty arrays for each meal. Then, I initialized an empty array to hold all of the meal arrays. I tried to use two for loops to add items to more than one meal. In one instance, it just repeated the user’s item about four times per meal.
I was able to solve it for creating one meal, including user input, but not for multiple meals.
I also was able to complete Assignment 1. I’ll try to apply the same approach to this problem.
If anyone could help me understand the instructions better, I would appreciate it.