Question: create a python program for this. A Netflix subscription has 5 different types of pricing: premium, family, normal, student, and ads. The family subscription is
create a python program for this.
A Netflix subscription has different types of pricing: premium, family, normal, student, and ads. The family subscription is more expensive than normal, and the premium is more expensive than the family subscription. On the other hand, the student subscription is less expensive than the normal one and the ads subscription is less expensive than the student subscription. A user can buy any combination of premium, family, normal, student, and ad subscriptions. However, the total number of subscriptions that a user can buy cannot exceed the capacity of the server. Every month, the subscriptions reset and this incurs a fixed expenditure on various expenses.
Create a class called Netflix with the following characteristics:
The price for normal subscription is initially set to PHP
The servers have a capacity for accounts
The system tracks total sales
The system also tracks the subscriptions sold for each of the five types
The system must track the total expenditure for expenses
The cost of expenses per month is fixed at PHP
The Netflix must implement the following methods:
self: initializes the values of all fields
sellSubscriptionsself premium, family, normal, student, ads:
if there isn't enough room, this method ends and prints "Total cost is PHP
otherwise, this method computes the actual cost, decreases the number of available capacity, and updates the counts of subscriptions sold per type sold
this method updates total sales
this method prints the total cost of the transaction
endMonthself: increases total expenditure based on expenses and resets available capacity to
updateSubscriptionPriceself newCost: updates subscription prices based on the value of the parameter
updateMonthlyExpensesself newCost: updates the cost of expenses based on the parameter
printReportself: prints the total sales, the total number of premium, family, normal, student, and ad subscriptions sold, and the total expenditure for all the months so far
On a separate code cell, do the following instructions in the same sequence:
Create a Netflix object
A customer attempts to buy premium, family, normal, student, and ads
It is end of month
A customer attempts to buy premium, family, normal, student, and ads
A customer attempts to buy premium, family, normal, student, and ads
It is end of month
Print the report
Due to the recent surge in demand, subscription price in normal rises up to all subscription prices follow
A customer attempts to buy premium, family, normal, student, and ads
A customer attempts to buy premium, family, normal, student, and ads
The Philippine government remains incompetent; inflation makes expenses rise to
It is end of month
A customer attempts to buy premium, family, normal, student, and ads
A customer attempts to buy premium, family, normal, student, and ads
It is end of month
Print the report
Sample Output from the previous instructions
Total Cost is
Total Cost is
Total Cost is PHP
Total sales so far:
Total Subs sold per area:
Premium:
Family:
Normal:
Student:
Ads:
Total expenditure:
Total Cost is PHP
Total Cost is PHP
Total Cost is PHP
Total sales so far:
Total Subs sold per area:
Premium:
Family:
Normal:
Student:
Ads:
Total expenditure:
REPORTEND
Total Cost is PHP
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
