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?
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:
- 1st 5 Minutes = Thinks
- 2nd 5 minutes = Write.
- 3rd 5 minutes = Rest.
- 4th 5 Minutes = Write. [Because he can write up to 10 minutes if he thinks for 5 minutes.]
- 5th 5 minutes = Think. [He has completed 10 minutes of writing so he has to think.]
- 6th 5 minutes = Rest.
- 7th 5 minutes = Write.
- 8th 5 minutes = Write.
- 9th 5 minutes = Rest.
- 10th 5 minutes = Think.
- 11th 5 minutes = Write.
*12th 5 minutes = Rest. [He has completed his 10 minutes of working. 5 minutes thinking + 5 Minutes writing.)
So, in one hour he will write 250 lines of codes.