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.
LET ACTUAL PRICE BE 100 RS(FOR CONVINIENCE)
THEREFORE IF PRICE IS CUT BY 20%
THEREFORE NEW PRICE=100-20=80 RS
THEREFORE WE NEED TO ADD X% TO 80 RS TO MAKE IT 20 RS AND ADD IT TO 80 TO MAKE IT 100RS
THEREFORE, 80X/100 = 20
I.E. 4X/5=20
THEREFORE x=20*5/4
=5*5
=25
HENCE 25% OF PRICE SHOULD BE ADDED TO MAKE THE PRICE EQUAL TO THE ACTUAL PRICE.
Required Ratio=3:2
AB
Burn Rope One first, it will burn in 30 mins.Mark 30 mins and at the end of 30 mins now burn second rope from both sides (15 mins it will take ),and simultaneously burn third and last rope until it is half left.30+15= 45 , Remaining time 7.5 mins.By this time last rope is burnt half ,and now burn it from both sides as well it will exhaust in 7.5 mins. 30+15+7.5=52.5 measured.
Initially (2*33 + 1*24)/(2+1) = 30p a gm
So, cost for 100g = 100*30 = 3000p
Later, (1*33 + 2*24)/(1+2) = 71/3 p a gm.
So, cost for 100g = 100*(71/3) = 2366.67p
He saves 3000 – 2366.67 = 633.33p
Concept of weighted average.
Doug won the race
Explanation-
The ratio of steps covered by me, Doug, and Anne is = 6:7:8
Since Distance covered in Me 21 steps = Distance covered by Doug 24 steps = Distance covered by Anne 28 steps
LCM (21, 24, 28) = 168
For a distance of 168 units, the ratio of the distance covered in each step is;
= 8 : 7 : 6
Therefore the ratio of speeds is;
= 8×6: 7×7: 6×8
= 48 : 49 : 48
Here, the speed of the Doug is more than the speed of me and Anne
Hence, Doug won the race
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.
c 50