Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Imagine 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.
Test cases
content_sharing(5,20,7)==17
content_sharing(3,50,6)==34
Format
The final number of content pieces should be an int. Round down your result to meet this requirement.
PYTHON PLEASE

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_2

Step: 3

blur-text-image_3

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 Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago

Question

Question How is life insurance used in a DBO plan?

Answered: 1 week ago