Question
Currently, Shweta and Rajni's ages are in the ratio of
5:4. Five years from now, the ages of Priya and Rajni will have a ratio of 7:5. Gautam is 10 years older than Priya. The average current age of Shweta, Rajni, Priya, and Gautam is 28.75 years. Determine Gautam's age five years ago.Solution
ATQ, Let the present age of Shweta and Rajni be '5a' years and '4a' years respectively. Present age of Priya = [{(4a + 5) Γ (7/5)} β 5] years = (5.6a + 2) years Therefore, present age of Gautam = (5.6a + 2 + 10) = (5.6a + 12) years ATQ, 5a + 4a + 5.6a + 2 + 5.6a + 12 = 28.75 Γ 4 Or, a = 101/20.2 = 5 years Therefore, age of Gautam 5 years ago = 5.a + 12 β 5 = 35 years
Which service model offers virtual machines and storage resources?
A C function pop(Stack* s) is designed to remove and return the top element from a stack.
#include
#include
#d...
Which of the following scenarios best demonstrates a potential use of candidate keys in a relational database?Β
Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at i...
Which design pattern would be most appropriate to ensure that only one instance of a class exists and provides a global point of access to that instance...
The order of convergence of Newton-Raphson method is:
Consider the following Python code:
s = "PythonProgramming"
part1 = s[2:6] # Corrected line
part2 = s[-5:]
print(part1 + par...
Which of the following network topologies is most resilient to node failures?Β
Round robin scheduling is essentially the preemptive version of
In HTTP request methods, which of the following methods is not idempotent ?Β