Your Custom Text Here

 

C# Loops - Tools

 

The Debugger

A logic error is a mistake that does not prevent an application from running but causes the application to produce incorrect results.  Mathematical mistakes, assigning a value to the wrong variable, or assigning the wrong value to a variable are example of logic errors.

Logic errors can be difficult to find.  Today Visual Studio, Python, Java, and virtually all the most common languages have tools that make the debugging process easier. In Visual Studio it’s called the debugger.

Moving Your Application

to move an application to a new location you need to more everything and keep everything together.  Visual Studio creates a lot of files.  Zip will allow you to compress that application in total and place it in a new location where it can be safely opened.  The project will run as normal in the new location

Flowcharting

Things can get a little dicey when applications get complex. That’s when we really need that plan. And that plan is a flowchart.

I touched on flowcharting back in the decision section when we looked at the nested decision structure. Remember? One “if” statement was inside another. Flowcharting that concept allowed us to see the logic and how complicated it might get. Well loops can be nested as well. Not only that but just a single loop might be better understood if we could see a picture of what we are trying to do. Best to flowchart it.