Total Pageviews

Sunday, May 15, 2011

Solving Simple Problems Using Algorithms and a Program Design Language

Solving Simple Problems Using Algorithms and a Program Design Language in Programming

An algorithm is a series of meticulous directives for solving a problem in a predetermined amount of time. Algorithms are utilized to do calculations, data processing, and automated reasoning. An algorithm will begin with an initial start or input and then it will progress through each step, individually and sequentially, that is needed to arrive at the correct answer. Next, the algorithm will then produce the solution and, finally, the program will come to an end. In computer programming, algorithms can be expressed in many kinds of notation, including natural languages, pseudocode, flowcharts, programming languages or control tables. For the purpose of this paper, we will focus on flowcharts and pseudocode.

A flowchart is a schema that illustrates the algorithm, displaying the steps as boxes of various kinds, and their order by connecting these with arrows. Programmers utilize flowcharts in devising and detailing complicated processes. Similar to other diagram types, flowcharts help visualize the happenings and in so doing, help the programmer to comprehend a process, and perhaps enable them to identify anomalies.

Pseudocode is a synthetic and easy language that facilitates the development of algorithms for programmers. Pseudocode is a “text-based” detail (algorithmic) design tool. Pseudocode is designed to allow non-programmers to comprehend the code. Programmers often incorporate Pseudocode into the program above the written code. For the most part, it is like a comment that indicates what the piece of code is going to do. There are no real standards for the correct method for writing Pseudocode.

Solving Simple Problems Using Algorithms and a Program Design Language outside of Programming:

Algorithms and a Program Design Language are tools that one can apply in a number of places outside of the programming world. Now, even though there are a number of environments that the algorithms and a Program Design Language, we shall utilize the business world example and a personal life example to best correlate these tools to the world outside of programming.

In the business world, maybe department head would like to make a simple calculation to see how much an employee has earned for a specific pay period given the fact that the employee had worked a set number of hours. This problem would require an algorithm to calculate the applicable wages given the specific pre-existing circumstances. For the purpose of keeping things simple, the desired algorithm can be incorporated without requiring the addition of any pseudocode.

For the personal life example, maybe a student is attempting to determine their grade in a computer science class. The student could utilize a straightforward algorithm to determine whether or not they need to take the final exam to complete the class with an acceptable grade. Similar to the business world example, the pseudocode can be left out but an applicable algorithm would be necessary.

These are two prime examples of how the application of Algorithms and Program Design Language to answer simple problems in a non-programming environment.

No comments:

Post a Comment