lines of code

This topic has expert replies
Source: — Problem Solving |

User avatar
GMAT Instructor
Posts: 15539
Joined: Tue May 25, 2010 12:04 pm
Location: New York, NY
Thanked: 13060 times
Followed by:1906 members
GMAT Score:790

by GMATGuruNY » Sat Mar 12, 2016 4:36 am
A software programmer does 20% of the work in 80% of the time, and 80% of the work in the remaining 20% 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?

13x/15
7x/15
7x/60
2x/3
x/2
Let x = 120 lines.

First stage:
20% of the work = 20% of 120 lines = 24 lines.
80% of the total time = 80% of 30 days = 24 days.
Since 20% of the work is completed in 80% of the total time, we get:
Rate = w/t = (24 lines)/(24 days) = 24/24 = 1 line per day.
Thus:
Since the rate is 1 line per day, the amount of work completed in the last 8 days of the first stage = rt = 1*8 = 8 lines.

Second stage:
Work completed in the last 6 days of the month = (total work) - (work completed in the first 24 days) = 120-24 = 96 lines.

Total work completed in last 14 days = 8+96 = 104 lines. This is our target.

Now plug x=120 into the answer choices to see which yields our target of 104.
Only A works:
13x/15 = (13*120)/15 = 13*8 = 104.

The correct answer is A.
Private tutor exclusively for the GMAT and GRE, with over 20 years of experience.
Followed here and elsewhere by over 1900 test-takers.
I have worked with students based in the US, Australia, Taiwan, China, Tajikistan, Kuwait, Saudi Arabia -- a long list of countries.
My students have been admitted to HBS, CBS, Tuck, Yale, Stern, Fuqua -- a long list of top programs.

As a tutor, I don't simply teach you how I would approach problems.
I unlock the best way for YOU to solve problems.

For more information, please email me (Mitch Hunt) at [email protected].
Student Review #1
Student Review #2
Student Review #3