Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A programmer uses the identifier TotalPrice, which has letters, times in a program. Each time, she types letters and presses one key to accept the IDE's auto-completion.
An IDE (integrated development environment) is one program with the tools to write, translate, run and debug code: a code editor, a run-time environment, translators, error diagnostics, auto-completion, auto-correction and prettyprint.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Each time. Without auto-completion: key presses. With it: . Saved: .
Step 2. In all. key presses.
Step 3. Another way it helps. The name is always spelt the same way, so there are fewer errors from a misspelt identifier. It also makes long, clear names easy to use.
Answer: (a) . (b) . (c) It prevents spelling mistakes in identifiers.
Watch out. Do not forget the key press that accepts the suggestion.
Log in to join the discussion.
Loading…