Question
A man donated 22%, 11% 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. 5175, then find the income of man.Solution
Let the income of the man be Rs. x Therefore, sum donated to NGO βAβ = Rs. 0.22x Sum left with NGO βAβ = 0.25 Γ 0.22x = Rs. 0.055x Sum donated to NGO βBβ = Rs. 0.11x Sum left with NGO βBβ = 0.2 Γ 0.11x = Rs. 0.022x 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.055x + 0.022x + 0.13x = 5175 Or, 0.207x = 5175 Or, x = 5175/0.207 = 25000 Therefore, income of man = Rs. 25000
Complete the Java method to extract a substring from text starting at startIndex and having length characters.
public class StringUtil {
οΏ½...
What is the time complexity for inserting an element into a binary heap?
Which of the following is a self-balancing Binary Search Tree that ensures a maximum height difference of 1 between the left and right subtrees of any n...
Given the string S = "aabaaab" for Z-Algorithm, what is the Z-array for this string? (Z is typically 0 or undefined).
Which of the following is a characteristic of "tight coupling" between software modules?
When designing a class, why is it generally a bad practice to make all fields public?
Which type of memory is fastest in terms of data access speed?Β Β
Which memory management technique divides logical memory into blocks of the same size, called pages, and physical memory into blocks of the same size, c...
Which of the following programming language can be used to process text data for the requirements in various textual data analysis?Β
fill the blank for space 14.