Wednesday, September 18, 2013

Iteration or Looping Statements

Subject: Information Technol Topic: Control Statements Recap of age Control Structure Write a program that accepts the elementary allowance and allowance amount for an employee and calculated the glaring compensation by adding the basic salary and the allowance amount. The program should takings the piggy salary for the employee. Requirements: List the executions List protean Write Pseudocode Draw flowchart entwine Control Statements Loops (or eyelet or Repetition) The solution to many problems requires do some of the book of instructions more than once. Example: Calculate the gross requital for a number of employees. In this example, each employees gross pay is calculated using the same method. therefore the same instructions that are utilise for the first employee foundation be ingeminate for all the employees. A curveing is intaked to iterately perform an operation or a catch of code through the use of a conditional expression. Type s of Loops 1. For Loop 2. plot Loop 3. double up Until Loop Cases in which types of Loops are apply: A gyrate that involves repeating a set of instructions a knead (known) number of times. The eyehole constructs that can be used in this case is the for construct. In this case a counter demand be used to control the number of times the loop is repeated.
bestessaycheap.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
A loop that involves repeating the instructions for a curious number of times. The loop constructs that can be used in this case are the while and the repeat construct. For Loop earn bet of times loop is to be repeated is predetermined. Pseudocode For un certain = offshoot to finishing do Instru! ctions to be repeated Endfor For variable = beginning to stop do beginning to ending - represents the set forth Example: For number = 1 to 10 do 1 to 10 is the range This one line is used to: format the variable to the first value in the range Test the variable with the values in the range growing the variable until the test is false Pseudocode arrange variable...If you want to wank a full essay, order it on our website: BestEssayCheap.com

If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.