Total Pageviews

Sunday, May 15, 2011

Elementary Program Design Structure Model

Elementary Program Design Structure Model in Programming

In computer programming, the Elementary Program Design Structure Model is the most fundamental structure model. This very simple structure model is comprised of three basic parts, the setup (beginning), the process (middle), and the wrap up (end).

The initial part of this structure model is the setup. In the Setup part of the Elementary Program Design Structure Model, the objective is to declare the different variables needed and open the files necessary in RAM to execute the next step in the model. The setup occurs only once, and only at the start of the program.

The next part of the structure model is the process. In the Process part of the structure model, the objective of this part of the program is to execute the actual instructions of the program. This step is comprised of arithmetic expressions, loops, arrays, or logical expressions. The process may occur once, twice, or even more times until the objectives of the program have been achieved. The repetition of a process is called a loop, which means that the instructions shall be executed continuously until the process results in a desired outcome. At the process conclusion, the program moves to the final step in the model.

The final part of the structure is the Wrap up. Similar to the setup, the wrap up is simple and occurs only once in the program. In the Wrap up part of the structure model, any files opened in during the execution of the program are closed and RAM is freed of consumption.

Elementary Program Design Structure Model outside of Programming

The Elementary Program Design Structure Model is a concept model that can be utilized in a number of places outside of the programming world. Now, even though there are a variety of areas that the Elementary Program Design Structure Model can be applied, let us focus on one non-programming application. 

The non-programming application that we will focus on is a family road trip. Like a program, a road trip takes planning and it has, or should have, a setup, a process, and a wrap up. The setup of the trip would consist of things like packing, printing a map, filling up the car with fuel, and identifying who is going. Failure to set everything up for the trip can result in a horrible trip, or even worse, having to cancel the trip because someone was left behind.

The process of the trip would be the actual road trip, which would consist of things like driving, eating snacks, and stopping for bathroom breaks. The process is crucial to the trip because if nobody drives, the trip would instantly end. Failing to stop for bathroom breaks would result in unwanted accidents and potentially end the trip.

The wrap up of the trip would consist of the arriving at the desired destination, unpacking, and enjoying in the actual destination. It is clear that the Elementary Program Design Structure Model can help ensure a successful family trip.

No comments:

Post a Comment