Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago