Question
βAβ and βBβ started a business by investing Rs.
2500 and Rs. 3000, respectively. 4 months later, βCβ joined them with an investment equal to average of initial investment made by βAβ and βBβ together. If at the end of the year, Bβs profit share out of the total profit was Rs. 54,000, then find the profit share of βCβ.Solution
ATQ; Amount invested by βCβ = [(2500 + 3000)/2] = Rs. 2750 Profit shares of βAβ, βBβ and βCβ, respectively at the end of the year = [(2500 Γ 12): (3000 Γ 12):(2750 Γ 8)] = 15:18:11 Let the total profit received by βAβ, Bβ and βCβ at the end of the year be Rs. βPβ Profit share of βBβ = 54000 = (18/44) Γ P => P = 54000 Γ (44/18) = 132000 Profit share of βCβ = 132000 Γ (11/44) = Rs. 33000
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?