A student is still writing and testing a program. A company has finished a game and wants to sell it. Which translator suits each of them?
- The student will make many errors, so needs each error shown at the line where it happens: an interpreter stops there.
- With an interpreter the student can correct that line and run the code again without translating the whole program first.
- The company wants customers to run the game without a translator and without seeing the source code.
- A compiler produces an executable file that does both of these things.
Answer: The student should use an interpreter. The company should use a compiler.