Question: Create a flowchart to solve then java code: 1. I am having a super bowl party, and I need to buy enough food. Here is

Create a flowchart to solve then java code:

1. I am having a super bowl party, and I need to buy enough food.

Here is what I am planning:

Each child will eat: 1 hotdog, 2 bags of chips, no salad, 4 glasses of soda

Each adult will eat: 3 hotdogs, 1 bag of chips, 1 helping of salad, 5 glasses of soda

Each vegetarian (adult or child) will eat: 3 helpings of salad, 1 bag of chips, 3 glasses of soda

A bottle of soda contains 8 glasses (individual servings). A pre-made bag of salad contains 4 helpings.

Your process should ask how many guests there will be in each category, then determine how much food to buy.

Run with the following data: 4 children, 10 adults, 6 individuals choosing a vegetarian meal.

n.b. I have to buy full bottles of soda and bags of salad, so make sure I have enough.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!