Question
A barrel contains some wine. A man drank 15 litres from
it and refilled the barrel with same quantity of water so that no one finds out. He did it one more time before someone checked and found the quantity of wine in the barrel to be 48 litres. Find the quantity of wine initially present in the barrel.Solution
We know quantity of wine left is = P Γ {1 - (R/P)}n {Where 'P' is the initial quantity of wine, 'R' is the quantity withdrawn each time and 'n' is number of times the process is done.} Let the initial quantity of wine in the barrel be 'I' litres. 48 = I Γ {(I - 15)/I}2 48I = (I β 15)2 48I = I2 β 30I + 225 I2 β 78I + 225 = 0 I2 β 75I β 3I + 225 = 0 I(I β 75) β 3(I β 75) = 0 (I β 3)(I β 75) = 0 I = 75, 3 Since, quantity of wine left in the barrel is 48 litres. So, initial quantity of wine cannot be 3 litres. So, initial quantity of wine in the barrel = 75 litres
The class NP-complete includes problems that are:
Which of the following is NOT a method for handling deadlocks?
Which of the following statements is true regarding the class NP?
What is a deadlock in a computer system?
Which famous sorting algorithm uses the divide-and-conquer strategy?
Which data structure in a compiler is used for managing information about variables and their attributes?
Β
Which command will help you to find the time of how long the system is being running?
In which case higher bandwidth can be achieved
What is an algorithm?
In the context of ADTs, what does "encapsulation" refer to?