Question: can I get your answer with python programming 1 / 1 1001 + COSC 1336 In-Class (Nested Loops) The boy scouts' popcorn supplies are all

 can I get your answer with python programming 1 / 1
1001 + COSC 1336 In-Class (Nested Loops) The boy scouts' popcorn supplies
can I get your answer with python programming

1 / 1 1001 + COSC 1336 In-Class (Nested Loops) The boy scouts' popcorn supplies are all over the place and troops are only receiving certain flavors of popcorn. Write a program that uses a nested loop structure to produce the following output: How many boy scouts are in your troop: 2 How many flavors of popcorn were sold by boy scout #1: 3 How many bags were sold of flavor 1: 85 How many bags were sold of flavor 2: 78 How many bags were sold of flavor 3: 96 The average number of bags of popcorn sold by boy scout #1 is: 86.0 How many flavors of popcorn were sold by boy scout #2: 2 How many bags were sold of flavor 1: 78 How many bags were sold of flavor 2: 69 The average number of bags of popcorn sold by boy scout #2 is: 73 hp Emphasis Heading 1 Strong Subtitle Tho Sac Suite Paragon IPO CHART INPUT OUTPUT PROCESSING Processing Items: 77 number of scouts in troop number of flavors sold number of bags sold average number of bags sold by each boy scout Algorithm total number of bags sold 1. get number of boy scouts in troop 2. Validation Check 3. for flavors I to number of boy scouts 4. get the number of flavors sold by the scout 5. Validation Chick 6 for bags 1 to number of flavors 7 get the number of bags sold 8.77 9. calculate sum of bags by adding sum of bags to number of bags sold 10 calculate the average by dividing the sum of the bags by the number of flavors. Remember: Inputs any data that the program receives while it is running Outputs any information that the program produces and displays to the user/screen Processing Items - intermediate values required by the program to arrive at the output that are neither inputs tor outputs Desk Check Table (hp

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!