Question: Design an efficient parallel algorithm and write its pseudo code for the following scenario. Your pseudo code gets input (expenses and revenue) from n small

Design an efficient parallel algorithm and write its pseudo code for the following scenario. Your pseudo code gets input (expenses and revenue) from n small sector companies every month. Your algorithm has to find the profit and loss of each company for every month. At the end of 12 months, the highest Average Profit making and highest Average Loss incurring companies has to be identified and displayed. Let n be greater than 10.
Example
Company 1 :
Month 1:
Expenses: Rs. 2000/- Revenue: Rs. 2500/-; Profit =Revenue Expenses = Rs. 500/-; Loss=0
Month 2:
Expenses: Rs. 2500/- Revenue: Rs. 2000/-; Loss = Expenses- Revenue = Rs. 500/-; Profit =0
Average Profit = All months profit/12
Average Loss= All months Loss/12

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!