"Programming Looping Structures" Please respond to the following:

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

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
Sep 24th, 2017
Mark as Final Answer
Unmark as Final Answer
Final Answer

Secure Information

Content will be erased after question is completed.

Final Answer