A software programmer does 20% of the work in 80% of the time, and 80% of the work in the remaining ...
A software programmer does 20% of the work in 80% of the time, and 80% of the work in the remaining 30% of the time. If the code he writes is X lines long and he was given one month (30 days) to accomplish the task, then, assuming that the programmer works at a constant rate in each of the two stages, How many lines of code were written in the last two weeks, in terms of X?
Answer/Solution
13x/30
Steps/Work
Take X=30 lines
80% of 30 = 24 lines
20% of 30 = 6 lines
W - R - T
6 lines - r1 - 24 (first 80% of the 30 days)
24 lines - r2 - 6 ( last 20% of the 20 days)
r1 = 1/4r2 = 4
Now Work in last 14 days = 6 days programmer worked at r2 + 8days programmer worked at r1
=> 6 * 4 + 8 * 1/4 = 24 + 2 = 26
Insert, X=30 in all options => E is the answer.
80% of 30 = 24 lines
20% of 30 = 6 lines
W - R - T
6 lines - r1 - 24 (first 80% of the 30 days)
24 lines - r2 - 6 ( last 20% of the 20 days)
r1 = 1/4r2 = 4
Now Work in last 14 days = 6 days programmer worked at r2 + 8days programmer worked at r1
=> 6 * 4 + 8 * 1/4 = 24 + 2 = 26
Insert, X=30 in all options => E is the answer.