Question
A and B together can complete a job in 2 days. A alone
takes x + 6 days to complete the job, while B alone takes x + 24 days to complete the same job. 1.What is the value of x? 2.How many days will A alone take to complete the job?Solution
Let time taken by A & B to do a job = x days so time taken by A to do the job = x + 6 days & time taken by B to do the job = x + 6 + 18 = x + 24 days; Hence 1/(x+6) +1/(x+24) = 1/x (x+6+x+24)/{(x+6)(x+24)} = 1/x (2x+30)/(x^2+30x+144) = 1/x 2x^2+30x = x^2 + 30x + 144 x^2 = 144 x = 12 days So time taken by A alone to do the job = x + 6 = 12 + 6 = 18 days Alternate Method :- Let time taken by A & B to do a job = x days so time taken by A to do the job = x + 6 days & time taken by B to do the job = x + 6 + 18 = x + 24 days; Then x = root of (6 × 24) = root of 144 = 12 days So time taken by A alone to do this job = x + 6 = 12 + 6 = 18 days.
Which of the following integrity constraints ensures that every non-null foreign key value must reference an existing primary key value in another tabl...
Hashing is used for:
The amortized cost of appending an element at the end of a dynamic array is:
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5
In asymmetric encryption, which of the following statements is correct?
Which algorithm constructs a suffix tree in linear time?
What is the primary purpose of a B+ Tree in a database management system?
Which sorting algorithm has O(n log n) average case?