Question
Tanu has 5 stickers, and Megha has 4 stickers. When
Kasish joins them, all 9 stickers are redistributed equally among the three, meaning each person receives 3 stickers. Since Kasish initially had no stickers, they compensate Tanu and Megha with ₹15 in total. This amount is divided between Tanu and Megha in proportion to the number of stickers they gave to Kasish. What is the difference in the amount received by Tanu and Megha?Solution
In total ( 5+4)/3= 9 /3 = 3 stickers were distributed among three people.
It means Tanu has given (5-3) = 2 stickers to Kasish and Megha has given ( 4 - 3) = 1 sticker to Kasish.
Since Tanu and Megha receive the amount in ratio of the donations, thus Tanu receives = (15 X 2)/3 = Rs.10 and Megha receives = ( 15 X 1)/3 = Rs.5
Thus the difference = (15-10) = Rs 5
Which data structure is used in recursion?
Which of the following accurately describes the role of a "foreign key" in a relational database system?
Which of the following accurately describes the role of virtual memory in modern operating systems?
For Dijkstra’s algorithm on a graph with non-negative weights, which data structure yields the best time complexity for dense graphs?
Which data structure uses FIFO (First In, First Out)?
Which of the following OWASP Top 10 risks involves insecure coding practices that allow attackers to gain access to sensitive data, such as usernames a...
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
Which I/O scheduling algorithm is most suitable for minimizing seek time in hard drives?
Which of the following best exemplifies a critical advantage of Mobile Edge Computing (MEC) over traditional cloud computing?
Which feature of OOP allows hiding implementation details while showing only the necessary functionality?