A software engineer has the capability of thinking 100
lines of code in five
minutes and can type 100 lines of code in 10 minutes. He
takes a break for
five minutes after every ten minutes. How many lines of
codes will he
complete typing after an hour?

Answer Posted / anjan chowdhury

Here the trick is "He takes a break for five minutes after every ten minutes".
So, if he thinks first five minutes and after that he begins writing then after 5 min, he must take a break.
Hence in first round:
--------------------------------
5 min --> thinking(T)[100 lines]
next 5 min --> writing(W)[first 50 lines]
next 5 min --> break (writing is interrupted by break)(B)
--------------------------------

In second round:
--------------------------------
5 min --> W (Another 50 lines)
5 min --> T [100 lines]
5 min --> B
---------------------------------

In third round:
---------------------------------
5 min --> W (first 50 lines)
5 min --> W (Next 50 lines)
5 min --> B
---------------------------------

In fourth round:
---------------------------------
5 min --> T [100 lines]
5 min --> W (first 50 lines)
5 min --> B
---------------------------------

Hence, in total 60 mins,
Thinking : 300 lines
Writing : 250 lines

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2, 3, 6, 7--- using these numbers form the possible four digit numbers that are divisible by 4.

710


C1,C2 upto Cn are n cities in a country.There are some roads connecting these cities.They are connected in such a that Crth city has r distinct routes connecting each of the other city in the country. 1)if n=27,then how many roads are there in a country? 2)if n=4,in how many distinct routes,can a person travel from c3 to c2?

2435


Successive discounts of 10%, 20% and 20% are equal to a single discount of __

677


Two cyclists start biking from a trail's start 3 hours apart. The second cyclist travels at 10 miles per hour and starts 3 hours after the first cyclist who is traveling at 6 miles per hour. How much time will pass before the second cyclist catches up with the first from the time the second cyclist started biking

1612


Sum of slopes of 2 perpendicular st. lines is given. Find the pair of lines from the given set of options which satisfy the above condition?

736






xsqrt(0.09)=3 , then x equals

717


Salary of a person is 's' per month,'x'% of salary is given as bonus, if 3 months salary is s1,s2 & s3 then what is his salary?

941


With a 4/5 full tank a vehicle can travel 12 miles, how far can it travel with a 1/3 full tank

1256


I was married 10 years before my wife was sixth member of my family and now I have a baby and today father died and the average age of my family was same as it was 10 years before. Find my father's age when I was married?

703


A company installed 36 punching machines at the begining of the year.In the spring they installed 9 additional m/c's and then discontinued 18 in the fall.How many were still installed at the end of the year?

830


If m-4 is 7 more than n then m+9 is how much more than n+2

767


The minimum token cost is Rs. 100, which grants the token holder to travel up to a distance of 10 miles. And for every additional mile travelled, the charge is Rs. 10. A minimum luggage weight of 10 kg is not charged, after which it is charged at Rs. 1 per kg. During a specific journey, suppose you carry a weight of 'k' kg, and a distance of 'p' miles is travelled, which equation will indicate the correct total charge to be paid by the traveller?

683


There are 4 numbers as 5,8,2,1 Form 4, four digit numbers as A, B and find the sum?

773


I had Rs.100 and I play. If I win I will have Rs110 and if I lose I will have Rs. 90. at the end I have 2 wins and 2 lose. How much do I have?

864


An article sold at a profit of 20% if both the c.p & s.p were to be Rs.20/- the profit would be 10% more. What is the c.p of that article?

677