In a particular program, it is found that 1% of the code accounts for 50% of…
2018
In a particular program, it is found that 1% of the code accounts for 50% of the execution time. To code a program in C++, it takes 100 man-days. Coding in assembly language is 10 times harder than coding in C++, but runs 5 times faster. Converting an existing C++ program into an assembly language program is 4 times faster. To completely write the program in C++ and rewrite the 1% code in assembly language, if a project team needs 13 days, the team consists
- A.
13 programmers
- B.
10 programmers
- C.
8 programmers
- D.
100/13 programmers
Attempted by 12 students.
Show answer & explanation
Correct answer: C
Total C++ effort is 100 man-days. The 99% portion takes 99 man-days. The remaining 1% represents 1 man-day of C++ effort. Rewriting this 1% in assembly from scratch would take 10 man-days (10x harder), but conversion is 4 times faster, requiring 2.5 man-days (10 / 4). Total effort is 99 + 2.5 = 101.5 man-days. Dividing by the 13-day timeline yields approximately 7.8 programmers, which rounds to 8.