Fruit Ninja is one of the highest selling apps of all time. It involves the player donning the role of a fruit slicing ninja, training to become the best. The game is made realistic with fruit smashes, and different types of fruits being thrown for slicing, from watermelons to coconuts to strawberries to bananas.
The game is such that you can cut and dice the fruits with the swipe of your finger. Slicing more than one fruit at a time opens the possibilities of combos. Say a watermelon is thrown upwards at a speed of x m/s. When the watermelon reaches its apex of 5 m., a coconut is thrown up at a speed of y m/s. If the watermelon and the coconut are on the same horizontal line, exactly 1 m. off the ground at some point in time, find ⌊ y ⌋ ⌊ x ⌋
Take g = 1 0 m / s 2
This problem is part of the Science of Apps! series.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
To find x , it is much easier to just use v 2 = u 2 + 2 a s . But the overall solution is spot on.
The time t for the watermelon to reach the apex at 5 m is given by: t = g x = 0 . 1 x And it is also known that: 5 = x t − 2 1 g t 2 = 0 . 1 x 2 − 5 ( 0 . 0 1 ) x 2 = 0 . 0 5 x 2 ⇒ x = 0 . 0 5 5 = 1 0 m / s The time t 1 taken for the watermelon to drop to 4 m to meet the coconut at 1 m above ground is given by: 4 = 2 1 g t 1 2 ⇒ t 1 = 5 4 It is also the time for the coconut to reach 1 m above ground, therefore, 1 = y t 1 − 2 1 g t 1 2 ⇒ y = 5 4 ( 1 + 4 ) = 2 5 5 = 5 . 5 9 0 1 7 Therefore, ⌊ y ⌋ ⌊ x ⌋ = 5 1 0 = 2
from the top most portion the watermelon drops freely to a height of 1m initial velocity is zero so we get time t. the coconut is going up with initial velocity y, displacement 1m from this we get y. now applying conservation of energy to melon, x can also be found out.
Well, the solution is actually 1.7888 ... But as it only takes integer as answer so I rounded it up to 2...
How did you arrive at 1.7888...?
remember the floor sign...
hey ahnaf.. a bit wrong.. ur answer is luckily correct but u were not required to round it off.. ur x must be 10 and y would have been around 5.59. But since they are asking for the greatest integer values of both of them, they are asking for [x]/[y] and [x]=[10]=10 and y = [5.59] =5.. and [x]/[y]=10/5=2.. and thats how the answer comes out to be 2.
Problem Loading...
Note Loading...
Set Loading...
To solve x
the first object, watermelon, goes up with velocity x, reaches a max height of 5m, and then comes down. So,at a distance of 1m from the ground, its velocity while going up will be equal to its velocity while coming down. ( This is bcoz we are considering an ideal case and there is no other thing like wind flow, air resistance etc. that can affect its velocity ).
Now, let velocity( while going up & while coming down bcoz they are equal ) at 1m distance from the ground = v , then considering the case of going up
v 2 - x 2 = - 2gh = − 2 ∗ 1 0 ∗ 1 = -20 . The negative sign on the right hand side is there bcoz the object is going upwards while the acceleration is acting downwards
now considering the case of watermelon coming down, we know that the its velocity is zero when it is at its maximum height, therefore this time taking the initial velocity to be zero, we get
v 2 - 0 2 = 2 g h = 2 ∗ 1 0 ∗ 4 = 8 0 . The positive sign on the right hand side is there bcoz the object is going downwards and the acceleration is also acting downwards
Placing this value in the previous equation, we get
x 2 = 80 + 20 = 100 => x=10
To solve y
Now, when the watermelon is at its peak, a coconut is thrown upwards at the same point of time. So, now our watermelon is coming down and the coconut is going up. and they are on the same horizontal line at 1m height from the ground.
SO, to reach the 1m height from the ground at the same time
time taken by watermelon to reach this height from its maximum must be equal to the time taken by coconut to reach this height from ground level.
now, calculating the time taken by watermelon
s = u t + ( 1 / 2 ) a ( t 2 )
4 = 0 + ( 1 / 2 ) ∗ 1 0 ( t 2 )
⟹ t 2 = 4 / 5
⟹ t = 5 4 = 5 2
now, calculating the time taken by coconut to go up to a height of 1m from ground level
1 = y t − ( 1 / 2 ) ∗ 1 0 ∗ ( t 2 )
Placing the value of t from the previous equation, we get
y = 2 5 5 = 5 . 5 9
Now, we have the values of x and y. But the question asks us to find the greatest integer values of x and y.
So, greatest integer value of x = [x] = [10] = 10 and greatest integer value of y = [y] = [ 5.59 ] = 5
and 10/5 =2 and so 2 is our right answer.