Question
A, B and C started a business with initial investments
in the ratio 3:5:8, respectively. After one year A, B and C made additional investments equal to 20%, 30% and 45% of their initial investments respectively. Find the profit share of B out of the total profit of Rs. 18096 after two years.Solution
Let the initial investments of A, B and C be Rs. 3x, Rs. 5x and Rs. 8x respectively. So the additional investment of A = 0.20 × 3x = Rs. 0.60x Additional investment of B = 0.30 × 5x = Rs. 1.5x Additional investment of C = 0.45 × 8x = Rs. 3.6x Ratio of investments of A, B and C = (3x + 3x + 0.6x):(5x + 5x + 1.5x):(8x + 8x + 3.6x) = 6.6x : 11.5x : 19.6x = 66 : 115 : 196 So the profit share of B = 115/(66+ 115 + 196) × 18096 = Rs. 5520
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Â Â Â Â Â in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjan’s algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?