Selection Structure Paper
- Pages: 2
- Word count: 457
- Category: Structures
A limited time offer! Get a custom sample essay written according to your requirements urgent 3h delivery guaranteed
Order NowThe selection structure has to be a cautiously chosen to help the program run properly. There are a number of things that are considered in the selection of the structure of the program. First is to outline or define pseudo code; it is an unofficial language that is used to generate a draft of a particular program. The first property is the independence of the language. This lets the employment into a particular language in programming and rejects the details of the specified language that is not relevant to the algorithm. The second property is the changes that allow you to quickly adjust, discard, create, and analyze algorithms. The program structure contains a couple of variables of input in pseudo code on the flowchart. âIn the pseudo code, there is a consistency of the models of system including the chart of the structure, the dictionary data, and flow diagrams that contains the data, and the state transition diagrams.â (“The Selection Control Structure”, n.d.).
The selection structure for integrating the different IT systems has two different, equally special statements to execute. The computer has to make a choice on which one of the statements to do next. You will tell to the computer what choice is to be made. The computer tests which one of the statements to do by providing an expression based on conditions. Selection control structure adds practicality and efficiency of programming because it allows different sets of instructions. If a certain condition is true then an altered set of instructions are performed than if a condition is false. The IF THEN ELSE can be a powerful asset because you can attain answers that are specific to that particular condition.
In laymanâs terms, a written illustration of computer code is pseudo code. Pseudo code is not intended for computers to read but is meant by humans to be read.
Write the Pseudo code for that Structure
The selection control structure allows one set of statements to be carried out if a condition is true and another set of actions to be accomplished if a condition is false. For the attainment of medical records for doctors in the Veteran Affairs system goes as follows:
If Doctors Need for Patient Medical Records
THEN Get medical records summary from Central VA Database
THEN Get medical records summary from Local VA clinic
THEN Get medical records summary from Civilian Medical records Central Database
THEN Combine all medical records summaries
Else Do Nothing
End If
PRINT âMedical report summaryâ
References
Venit, S., & Drake, E. (2011). Prelude to Programming. Concepts and Designs (5th ed.). Retrieved from The University of Phoenix eBook Collection Java NB. (n.d.). Retrieved from http://book.javanb.com/object-oriented-programming-from-problem-solving-to-java/LiB0059.html Selection Structures. (n.d.). Retrieved from http://www.lpt.fi/it/opetus/ot/2_2%20Parallel%20order.pdf The Selection Control Structure. (n.d.). Retrieved from http://www.thevbprogrammer.com/Ch05/05-03-SelectionStructure.htm