Question
A man donated 8%, 22% and 26% of his income to three
NGOs βAβ, βBβ and βCβ, respectively. They spent 75%, 80% and 50% of respective sums received by them. If total sum left with three NGOs is Rs. 7760, then find the income of man.Solution
Let the income of the man be Rs. x Therefore, sum donated to NGO βAβ = Rs. 0.8x Sum left with NGO βAβ = 0.25 Γ 0.8x = Rs. 0.02x Sum donated to NGO βBβ = Rs. 0.22x Sum left with NGO βBβ = 0.2 Γ 0.22x = Rs. 0.044x Sum donated to NGO βCβ = Rs. 0.26x Sum left with NGO βCβ = 0.5 Γ 0.26x = Rs. 0.13x According to the question, 0.02x + 0.044x + 0.13x = 7760 Or, 0.194x = 7760 Or, x = 7760/0.194 = 40000 Therefore, income of man = Rs. 40000
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?