Up for discussion 19 suppose you wrote a program that

This preview shows page 39 - 40 out of 40 pages.

Up for Discussion19. Suppose you wrote a program that you suspect is in an infinite loop because it keeps running for several minutes with no output and without ending. What would you add to your program to help you discover the origin of the problem?
20. Suppose you know that every employee in your organization has a seven-digit ID number used for logging on to the computer system. A loop would be useful to guess every combination of seven digits in an ID. Are there any circumstances in which youshould try to guess another employee’s ID number?
Programming Logic and Design, 7eSolutions 5-40Answer:
21. If every employee in an organization had a seven-digit ID number, guessing all the possible combinations would be a relatively easy programming task. How could you alter the format of employee IDs to make them more difficult to guess?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture