Question
A boat takes 8 hours to travel 42 km upstream and 81 km
downstream combined. In another instance, it covers 48 km upstream and 54 km downstream in 7 hours. Determine the time the boat would need to travel 90 km in still water.Solution
Let the upstream and downstream speeds of the boat are x km/h and y km/h. So according to question: 42/x + 81/y = 8 And, 48/x + 54/y = 7 Let 1/x = a and 1/y = b So 42a + 81b = 8 ………. (i) And 48a + 54b = 7 …….. (ii) Solving (i) and (ii) we get a = 1/12 and b = 1/18 So x = 12 and y = 18 So the upstream and downstream speeds of the boat are 12 km/h and 18 km/h respectively. So the speed of the boat in still water = (12 + 18)/2 = 15 km/h So the time taken by the boat to cover 90 km in still water = 90/15 = 6 hoursÂ
A view in SQL is:
You have a Python list of fruits and want to extract a specific sub-list using slicing.
 Complete the missing part of the code to obtain the sub...
What will be the value of `x` after the following pseudo-code execution?Â
```
  x = 0
  data = [10, 20, 30]
  f...
Which of the following operators is used to compare a value to a list of literal values that have been specified?
Which SQL command is used to retrieve data from a table?
Which aggregate function returns the number of rows that match a specified criterion?
Which OOP concept directly influences control flow by allowing different implementations of a method to be called based on the type of the object at run...
If every non-key attribute is functionally dependent on the primary key, the relation will be in
A table is in 2NF (Second Normal Form) if it is in 1NF and:
Shadow paging in recovery eliminates the need for: