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

Average of 5 number is -10 sum of 3 numbers is 16,what is the average of other two numbers?

709


WRITE A LEAVE LETTER TO YOUR MANAGER

1827


A boy picks up the phone and asks" who are you?" The voice from the other side answers" I am your mother's mother in law".What is the relation of the boy with the fellow speaking at the other end.

833


A sales person multiplied a number and get the answer is 3, instead of that number divided by 3. what is the answer he actually has to get ? (1/3). 7. A ship started from port and moving with I mph and another ship started from L and moving with H mph. At which place these two ships meet ?

938


Find the product of the prime numbers between 1-20

747






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?

691


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

781


Zulus always speak truth and Hutus always speak lies. There are three persons A,B&C. A met B and says " I am a Zulu or I am Hutu". We don't know what exactly he said. then B meets C and says to c that " A is a Zulu ". Then C replied " No, A is a Hutu ". Who must be a Zulu ?

836


Ronak's mother is the only daughter of Jasmeet's father. How is Jasmeet's husband related to Ronak?

740


A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets Re 1 and if he loses the game he loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5. Find the number of ways in which this is possible?

878


A simple interest amount of Rs 6000 for 6 months is Rs 600. Calculate the annual rate of interest.

669


analogy: cell: tissue::atom:?

835


A Fraction has the denominator greater than its numerator by 4. But if you add 10 to the denominator, the value of the fraction would then become 1/8. What is the fraction. 1/5,3/7,1/3,2/6

750


Two lemons cost 10 cents. Then one and a half dozen cost

706


The minimum number of digits required to form every number which is greater than 900 and less than 9,000 is:

921