Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language: Python Program: PyCharm Starter code is the second picture, thanks! Purpose: To practice slicing 2D arrays Degree of Difficulty: Easy Unilever Canada conducted a

Language: Python
Program: PyCharm
Starter code is the second picture, thanks! image text in transcribed
image text in transcribed
Purpose: To practice slicing 2D arrays Degree of Difficulty: Easy Unilever Canada conducted a consumer's survey to identify which of its brands is losing popularity among consumers Assume that there is one question per brand in the survey to find out consumers inclination and level of satisfaction for each brand. They would like to know if more than 75% of the consumer gave negative comment to the brand i e, greater than 75% of the consumers do not like to use the products of that brand. If increasing number of consumers are dissatisfied by a brand. it might indicate that marketing strategies must be reviewed The file a6q1-starter. py contains two example survey responses from consumers as a list of lists where 1 indicates satisfaction and O indicates dissatisfaction for a brand First example shows 4 questions in a survey completed by 5 consumers and second example shows 10 questions in a survey completed by 20 consumers Assume that the question about first brand in the survey is at index O the second is at index 1, etc (that is each sublist has the questions in the s with smaller examples first then move on the bigger one Create a program that will determine the percentage of consumers who are not satisfied by a brand in the survey. and will display the brand number for all brands where the fraction of consumers who are not satisfied by the brand is greater than 75% Your program should work no matter how many consumers are there. or how many brands are there in the survey To complete this question, you will need to: same order. It is recommended to test your program a survey (a) Create a 2D array from the lst of lists for b) Calculate the percentage of consumers who are not satisfied by a brand in survey (c) Print to the console the brand number for all brands where the fraction of consumers who are not satisfied by the brand is greater than 75% Sample Run Here is an example execution of the required program. Greater than 75% of the consumer are not satisfied by Brand 1: Marketing strategies must be reviewed Greater than 75% of the consumer are not satisfied by Brand 2: Marketing strategies must be reviewed Greater than 75% of the consumer are not satisfied by Brand 3: Marketing strategies must be reviewed

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago