Let three consecutive even numbers be 2n,2n+2,2n+4
product=2n(2n+2)(2n+4)
If n=1,
product =2(4)(6)=48.
So, all the numbers will be divisible by 48 if change n.
there wil be two point of intersections
Let’s assume the length of each train is ‘L’ and the speeds of the two trains are ‘V₁’ and ‘V₂’ respectively.
When the trains are moving in the opposite direction, their relative speed is the sum of their individual speeds. The total distance they need to cover is the sum of their lengths. Since they cross each other completely in 5 seconds, we can set up the following equation:
(V₁ + V₂) × 5 = 2L
When the trains are moving in the same direction, their relative speed is the difference between their individual speeds. The total distance they need to cover is the difference between their lengths. Since they cross each other completely in 15 seconds, we can set up the following equation:
(V₁ – V₂) × 15 = 2L
Now, let’s solve these equations to find the ratio of their speeds.
From the first equation, we have:
(V₁ + V₂) × 5 = 2L
V₁ + V₂ = (2L) / 5
From the second equation, we have:
(V₁ – V₂) × 15 = 2L
V₁ – V₂ = (2L) / 15
Let’s add these two equations together:
V₁ + V₂ + V₁ – V₂ = (2L) / 5 + (2L) / 15
2V₁ = (6L + 2L) / 15
2V₁ = (8L) / 15
V₁ = (4L) / 15
So, the speed of the first train is (4L) / 15.
Now, let’s substitute this value back into the first equation to find V₂:
(4L) / 15 + V₂ = (2L) / 5
V₂ = (2L) / 5 – (4L) / 15
V₂ = (6L – 4L) / 15
V₂ = (2L) / 15
Therefore, the speed of the second train is (2L) / 15.
The ratio of their speeds is given by:
(V₁ / V₂) = ((4L) / 15) / ((2L) / 15)
(V₁ / V₂) = 4L / 2L
(V₁ / V₂) = 2
So, the ratio of their speeds is 2:1.
79.2
2hr 24min
Servlets are faster as compared to JSP, as they have a short response time.
JSP is slower than Servlets – JSP is a HTML-based codes.
Servlets are harder to code, as here, the HTML codes are written in Java – JSPs are easier to code, as here Java is coded in HTML.
In an MVC architecture, Servlets act as the controllers. – In MVC architectures, the JSPs act as a view to present the output to the users.
The service() function can be overridden in Servlets. – The service() function cannot be overridden in JSPs.
55 + 70 = 125
125/14hrs = 60 mph
14 hours
(x+2)^2 -x^2 = 84
X=20
So (20,22)
Sum= 42
10*(root 2)