Posts

Showing posts with the label Digital Analysis

Structured English

 Different types of structured English Sequential structure A block of instructions with no branching, this is the most basic form of Structured English and therefore is the easiest to understand. to complete it, go through each line, and complete the action. Decision structure uses IF statements, meaning some actions can be ignored IF the following condition is true or not to complete it, you would need to know if the condition is true or not, to know whether to ignore certain steps Case structure a form of decision structure where the cases are mutually exclusive, these use ELSEIF Iteration Blocks of statements that are repeated until they are complete Example of Structured English, to find an average of 5 numbers. INPUT 5 numbers ADD the 5 numbers together DIVIDE the new number by 5 OUTPUT the final number Source and more info at  https://www.w3computing.com/systemsanalysis/writing-structured-english/ an Application chess bots - these use algorithms to take the current posi...

Algorithms

 Algorithms An algorithms is a set of step by step instructions, to solve a problem it can be used to automate calculations, sort arrays, etc they are easy to understand, and due to being broken down into simple instructions, can be easily converted to code however, they can be time consuming to create, and may be difficult to make for more complex tasks the characteristics of algorithms are: finiteness the algorithm should solve the problem in a given number of steps, an algorithm cannot have an infinite number of steps, and should have an end Unambiguousness the steps in an algorithm must be clear and precise, each user should be able to understand what the algorithm does inputs and outputs inputs and output in the algorithm should be clearly defined, each algorithm should have at least 1 output, the output should meet the defined purpose of the algorithm Logical sequence of steps the algorithm's steps should follow a logical sequence, it should be step by step, with no going bac...