Question: Lab 3 Decision Structures Problem 1 . Monetizing Your YouTube Content As a YouTube content creator, you want to maximize your earnings from ads on
Lab Decision Structures
Problem Monetizing Your YouTube Content
As a YouTube content creator, you want to maximize your earnings from ads on your videos. In this assignment, you will create a program that helps you decide which types of ads to display and when to pause or resume monetization based on your channel's performance and make a simple prediction of potential ad revenue.
Problem Statement:
You have a YouTube channel with subscribers and an average view count of per video. You earn money from ads displayed before and during your videos. However, you want to optimize your earnings by displaying the right types of ads at the right times and considering your channel's engagement rate for potential ad revenue predictions.
Here are the rules to consider:
If your video has less than views in the last days, do not display any ads.
If your video has between and views in the last days, display only "Skippable" ads.
If your video has more than views in the last days and an engagement rate above display both "Skippable" and "NonSkippable" ads.
If your video's engagement rate is below pause monetization for that video.
Assume that a Skippable ad earns an average of $ per view, and a NonSkippable ad earns an average of $ per view. For a given video, if the program determines it's eligible to display both types of ads based on view count and engagement rate, calculate the potential revenue for each type of ad and sum them up as the predicted ad revenue.
Assignment. Write a program that asks the user to enter the number of views the video has received in the last days and the engagement rate for that video. The program should then display the advice based on the rules above and if met, the revenue based on the ad type.
Design. You will be using a flow chart to design your program. You can use this free tool: draw.io to make your flow chart. Once you have opened the application:
Select: Create New Diagram
Select: Flowcharts Press Create
Using the shapes and lines at the left, create a flowchart for your program logic.
To Rename File: File Rename yourlastnamelab
To Save as pdf: Export as pdf
If for some reason this doesnt work, you can do FileSave As and save it as an XML file.
You may also use Powerpoint to draw your flowchart if you prefer.
See Section for information and examples of nested decision structures and multiple nested decision structures.
Code. Write your program in Python using the above steps. Save your program as a py file with the name yourlastnameLabpy
Output. Your program should produce correctly labeled output with dollar amounts rounded to decimal places and dollar signs displayed. See section More About Output. Sample dialog:
Enter the number of views in the last days:
Enter the engagement rate percentage:
Monetization Strategy: Display only Skippable ads.
Total Potential Revenue: $
Programming Style Requirements.
Comments Begin your program with a comment that includes: a your name, bprogram status either Complete or describe any incomplete or nonfunctioning part of your program cA line description of what the program does.
Variable names use meaningful variable names such as totaltaxes or numcookies.
Named constants Use named constants for all number values that will not be changed in the program.
You will have two files to turn in to Blackboard. One py file and one flow chart pdf Attach all files before pressing SUBMIT.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
