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 3 Decision Structures
Problem 1. 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 100,000 subscribers and an average view count of 10,000 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 1,000 views in the last 30 days, do not display any ads.
If your video has between 1,000 and 5,000 views in the last 30 days, display only "Skippable" ads.
If your video has more than 5,000 views in the last 30 days and an engagement rate above 2%, display both "Skippable" and "Non-Skippable" ads.
If your video's engagement rate is below 2%, pause monetization for that video.
Assume that a Skippable ad earns an average of $0.01 per view, and a Non-Skippable ad earns an average of $0.15 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 30 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:
1. Select: Create New Diagram
2. Select: Flowcharts >> Press Create
3. Using the shapes and lines at the left, create a flowchart for your program logic.
4. To Rename File: File >> Rename >> yourlastname_lab3
5. To Save as pdf: Export as >> pdf
6. If for some reason this doesnt work, you can do File>>Save As and save it as an .XML file.
You may also use Powerpoint to draw your flowchart if you prefer.
See Section 3.4 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 yourlastname_Lab3.py
Output. Your program should produce correctly labeled output with dollar amounts rounded to 2 decimal places and dollar signs displayed. See section 2.8 More About Output. Sample dialog:
Enter the number of views in the last 30 days: 1500
Enter the engagement rate percentage: 3
Monetization Strategy: Display only Skippable ads.
Total Potential Revenue: $ 15.00
>>>
Programming Style Requirements.
Comments Begin your program with a comment that includes: a) your name, b)program status either Complete or describe any incomplete or non-functioning part of your program c)A 1-3 line description of what the program does.
Variable names use meaningful variable names such as total_taxes or num_cookies.
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!