Problem 2: Write the code to answer each question below. (a) The profit Netflix
ID: 3071350 • Letter: P
Question
Problem 2: Write the code to answer each question below. (a) The profit Netflix earned from US streaming in Q3 2017 was $553.9 million coming from 51.3 million US streaming customers. What is their profit per US streaming customer (b) For budgeting purposes, it is best to underestimate profit slightly. Use a function to determine the appropriate whole number budgeting estimate for their profit per US streaming customer (c) The profit Netflix earned overall in Q3 2017 was $679.4 million. What percentage of their profit came from their US streaming service that quarter? (d) The profit Netflix earned from US streaming customers in Q2 2017 was $559.9 million and the profit they earned overall that quarter was S608.8 million. Did the percentage of their overall profit due to their US streaming service change from Q2 to Q3? (e) What was the profit percentage difference from Q2 to Q3 2017? (If you found there to be no difference, you should still write a command that will result with 0.)Explanation / Answer
(a) The R-codes would be as below.
The result would be 10.79727, meaning that $10.79727 is the profit per US straming customer.
OR
Both arguements would return 11, meaning that the profit per customer for budget would be $11.
(c) The R-codes would be as below.
This would return 81.52782, meanign that the 81.52782% of profits were from streaming.
(d) The R-codes would be as below.
This would return 91.96781, meaning that profit due to streaming in Q2 was 91.96781%. As can be seen, the percentage of their pverall profit due to straming service did changed, and decreased. We can check it in R by the following code.
This would return TRUE, meaning that the profit percent were indeed not equal to each other in those quarters. The operator != (not equal to) is used instead of =, as the = operator is used to input values/arguements in a variable, and hence using that in this case would return an error.
(e) The R-codes would be as below.
OR
This would return -10.43999 in first case and 10.43999 in the second case (as the absolute value function is used). That means that the profit percent decreased by/changed by 10.43999%.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.