Question: 4) You are given a task to study the revenue of the bubble tea shops owner of 4 franchises. Write the Python codes to solve

 4) You are given a task to study the revenue of

4) You are given a task to study the revenue of the bubble tea shops owner of 4 franchises. Write the Python codes to solve the following problems. Type print() to display the answer. The information is given as following: i) Table 1: The number of cups of bubble tea sold by the franchise (daily) ii) Table 2: The price of a cup of bubble tea Tahle? a) Provide the array to show the revenue of each franchise. i. Write an array L to represent number of bubble tea drink (shown in Table 1). Print the array L. ii. Then write an array M to represent the price (Shown in Table 2). Print the array M. iii. Next, use matrix arithmetic operation between these two arrays to get the revenue. (Hints: Revenue= Qty * Price). Print the Output array N to show the revenue earned by each bubble tea shop. The expected shape of output array is 41. (12 marks) b) What is the total revenue of the owner? (Hints: total revenue=sum of the revenue from all franchises). The expected output of the revenue is shown below: The total revenue from all franchises is ${ total_revenue }. Note: Show total_revenue in 2 decimal places. (5 marks) c) Due to rising cost, the price of all bubble tea will be increased by $0.40. Find the new total revenue of the owner. (Hints: Apply arithmetic operators to get the new price based on the old price (array M in 4a (ii)). Then repeat the same step in 4a (iii) and 4b ). The output of the new revenue is shown: The new total revenue from all franchises is \$\{new_total_revenue } Assumption: Same quantity of bubble tea sold by all franchises. (13 marks

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 Databases Questions!