# How many lines of codes will he complete writing in 72 minutes?

+1 vote
61 views

A programmer has the capability of thinking 70 lines of code in six minutes and can type 70 lines of code in 12 minutes.
He takes a break for six minutes after every 12 minutes.
How many lines of codes will he complete writing in 72 minutes?
Assume that he always needs to think before writing any code.

posted Mar 11

175 lines

In 6 min blocks it will look like this:
Think 70 >> Write 35 >> Rest >> Write 35 >> Think 70 >> Rest >> Write 35 >> Write 35 >> Rest >> Think 70 >> Write 35 >> Rest
From above he managed to complete writing of 175 code lines

Similar Puzzles

Akshay ate 72 bananas in six days, each day eating 4 more than the previous day.
How many bananas did he eat on the third day?

+1 vote

You have accidentally left out the plug and are attempting to fill the bath with both 2 taps full on. The hot tap takes 6 minutes to fill the bath, the cold tap takes 4 minutes, and the water empties through the plug hole in 12 minutes.

In how many minutes will the bath be filled?

Two vehicles set off from the same point, at the same time, to travel the same 165 km journey.

One of the vehicles travels at 45 kmph and the other one travels at 35 kmph.

How many minutes will there be between the arrival times of the two vehicles?

Car A and car B set off from the same point, at the same time, to travel the same 115 mile journey.

Car A travels at 55 mph and car B travels at 35 mph.

How many minutes will there be between the arrival times of the two cars?

+1 vote

A motorcycle and a car set off from the same point, at the same time, to travel the same journey.

The motorcycle travels at 55 mph and the car travels at 45 mph.

If the journey is 35 miles, how many minutes will there be between the arrival times of the two vehicles?