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 5 different types of pricing: premium, family, normal, student, and ads. The family subscription is 15% more expensive than normal, and the premium is 20% more expensive than the family subscription. On the other hand, the student subscription is 8% less expensive than the normal one and the ads subscription is 14% 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:
(1) The price for normal subscription is initially set to 250 PHP
(2) The servers have a capacity for 2000 accounts
(3) The system tracks total sales
(4) The system also tracks the subscriptions sold for each of the five types
(5) The system must track the total expenditure for expenses
(6) The cost of expenses per month is fixed at 6274.83 PHP
The Netflix must implement the following methods:
(1)(self): initializes the values of all fields
(2) sellSubscriptions(self, premium, family, normal, student, ads):
if there isn't enough room, this method ends and prints "Total cost is 0.00 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
(3) endMonth(self): increases total expenditure based on expenses and resets available capacity to 2000
(4) updateSubscriptionPrice(self, newCost): updates subscription prices based on the value of the parameter
(5) updateMonthlyExpenses(self, newCost): updates the cost of expenses based on the parameter
(6) printReport(self): 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:
(1) Create a Netflix object
(2) A customer attempts to buy 30 premium, 114 family, 308 normal, 52 student, and 17 ads
(3) It is end of month
(4) A customer attempts to buy 600 premium, 409 family, 270 normal, 231 student, and 57 ads
(5) A customer attempts to buy 600 premium, 100 family, 50 normal, 100 student, and 50 ads
(6) It is end of month
(7) Print the report
(8) Due to the recent surge in demand, subscription price in normal rises up to 3750, all subscription prices follow
(9) A customer attempts to buy 500 premium, 309 family, 170 normal, 131 student, and 57 ads
(10) A customer attempts to buy 400 premium, 100 family, 50 normal, 100 student, and 50 ads
(11) The Philippine government remains incompetent; inflation makes expenses rise to 860578.91
(12) It is end of month
(13) A customer attempts to buy 600 premium, 408 family, 242 normal, 350 student, and 47 ads
(14) A customer attempts to buy 400 premium, 125 family, 75 normal, 125 student, and 75 ads
(15) It is end of month
(16) Print the report
Sample Output [from the previous instructions]
Total Cost is 135,447.60PHP
Total Cost is 456,492.10PHP
Total Cost is 0.00 PHP
q,
Total sales so far: 591,939.70
Total Subs sold per area:
Premium: 630
Family: 523
Normal: 578
Student: 283
Ads: 74
Total expenditure: 12,549.66
q,
Total Cost is 3,182,100.00 PHP
Total Cost is 7,118,949.00 PHP
Total Cost is 0.00 PHP
q,
Total sales so far: 16,071,620.20
Total Subs sold per area:
Premium: 2,130
Family: 1,340
Normal: 1,040
Student: 864
Ads: 228
Total expenditure: 1,733,707.48
----------REPORT-END-----------
Total Cost is 5,178,631.50 PHP
create a python program for this. A Netflix

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!