"Programming Looping Structures" Please respond to the following:

Computer Science
Tutor: None Selected Time limit: 1 Day

Looping structures are key design structure used in programming languages.The ability to repeat code is a powerful tool and can save many lines of code.An infinite loop will use 100% of the CPU.Suggest two actions that you can take  prevent problem

May 18th, 2015

1. You can add a check procedure before the loop is executed, which will examine and determine if the loop is executing on an acceptable range.

as in this pseudo code.

  1. <begin loop>
  2. Do while NOT EOF
  3. Add values to database
  4. //Check the loop to see if its validly executing
  5. If ValCheck > ValidRange
  6. Pop up
  7. Are sure you wish to continue inserting the remaining values?
  8. If yes
  9. <execute Loop>
  10. else
  11. end Loop
  12. <End Code>


2. Set up your development environment in a way that it will check for endless loops and break the execution


Let me know if you need more help

May 18th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
May 18th, 2015
...
May 18th, 2015
May 29th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer