Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

magine a scenario where you create a piece of digital content and share it on a social network. Every day, a certain percentage of the

magine a scenario where you create a piece of digital content and share it on a social network. Every day, a certain percentage of the people who see your content also create their content and share it. We want to predict the total number of pieces of content on the network after a certain number of days.
Complete a function using a for-loop to predict the number of content pieces on the network. Parameters are:
The initial number of content pieces shared.
The daily content sharing increase (as a percentage)(enter 20 and convert it to 0.2).
The number of days the content will be shared and reshared.
Take these three parameters (all 3 are integers) as inputs of the function, and then return the predicted number of content pieces on the network.
1.4.1 Test cases
content_sharing(5,20,7)==17
content_sharing(3,50,6)==34
1.4.2 Format
The final number of content pieces should be an int. Round down your result to meet this requirement.
def content_sharing(start,increase,days):

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

Public Finance

Authors: Harvey S. Rosen

5th Edition

025617329X, 978-0256173291

Students also viewed these Databases questions