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 ? | 4 Yes | 1 No |
Post New Answer View All Answers
Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him. What is the length of faster train?
If g (0)=g (1)=1 And: g (n)= g (n-1) + g (n –2) find g (6);
Asmita invests an amount of Rs. 9535 at the rate of 4 per cent per annum to obtain a total amount of Rs. 11442 on simple interest after a certain period. For how many years did she invest the amount to obtain the total sum?
Express 16 m/s into Km/hr
if out of x bulbs y bulbs are broken;the % of non broken bulbs
FIND the next number in the series 11,112,1124,11248,--
In how many rows will 200 Miranda bottles be placed, if 200 Miranda bottles are stacked in such a way that there are 20 bottles in the bottom, 19 in the next row, 18 in the row next and so on?
Two Pencils 8 cents 5 Pencils cost ?
If 4 circles of equal radius are drawn with vertices of a square as the center, the side of the square being 7 cm, find the area of the circles outside the square?
Two ladies ,two men sit in north east west south position of rectangular table. Using clues identify their position ?
Girish invested a certain amount at the rate of 8% p.a. for 6 year to obtain an amount of Rs. 28046.How much amount did Girish obtain as simple interest?
Hello My name is vijay right now I'm preparing for SBI po, I am good at aptitude but not better. I am lagging time you know competitive exams are to answer in span of time. So any website regarding aptitude short cuts or tricks Pls post to my mail. I am waiting
8 persons A,B,C,D,E,F,G,H are sitting in a round dining table.some arrangement was given and position of H was asked.I don't remember the question exactly.
Radha,Geeta&Revathi went for a picnic.After a few days they forgot the date,day and month on which they went to picnic.Radha said that it was on Thursday,May 8 and Geeta said that it was Thursday May 10.Revathi said Friday Jun 8.Now one of them told all things wrongly,others one thing wrong and the last two things wrongly.If April 1st is tuesday what is the right day,date and month?
There is a work which can be completed by A with 12 days and B by 18 days. A and B works together for 3 days and B left. After that how many days for A to complete the work?