Question
Ashish started a business by investing Rs. 2100. Few
months later; Ramesh joined him by investing Rs. 8000 such that at the end of the year, the profit share of Ashish was 5% more than that of Ramesh. How many months after Ashish did Ramesh join the business?Solution
Let the number of months for which Ramesh invested his money = βYβ months Ratio of profit shares of Ashish and Ramesh = (2100 Γ 12) :(8000 Γ Y) = 25200:8000Y = 63:20Y Let profit share of Ramesh be Rs. β100aβ So, profit share of Ashish = 1.05 Γ 100a = Rs. β105aβ ATQ; (63/20Y) = (105a/100a) So, Y = 3 Therefore, Ramesh joined the business (12 β Y) = 9 months after Ashish.
Perform a dry run of Binary Search for target = 29 in the sorted array [2, 12, 15, 17, 27, 29, 45]. What are the values of mid in each iteration until t...
Which type of inheritance in C++ allows a class to inherit from more than one base class?
What is the best case time complexity of merge sort?
Which of the following statements accurately describes hard computing?
Which traversal method for a binary tree processes the root node *after* visiting both its left and right subtrees?
You are designing a system where multiple threads need to access and modify a shared counter variable. What is a critical concern you must address to en...
Which of the following protocols is responsible for mapping an IP address to a MAC address in a local network?Β
What is the purpose of the #include
directive in C/C++ programming? Which is connectionless and unreliable protocol
Fill the correct option for blank space 23.