WGU C960 - Unit 1: Algorithms Latest 2023 Graded A
WGU C960 - Unit 1: Algorithms Latest 2023 Graded A 3 Building Blocks of Algorithms Assignments, conditional statements, and loops. Assignments give values to variables, conditional statements control the flow of steps, and loops allow steps to be repeated. Algorithm A step-by-step procedure for solving a problem. Usually specifies the input and output to a problem, and the sequence of steps to be followed to obtain the output from the input. Psuedocode Detailed yet readable description of what an algorithm must do, expressed in a formally-styled natural language rather than in a programming language. IF Statement Tests a condition, and executes on or more instructions if the condition evaluates to true. IF-ELSE Statement Tests a condition, executes one or more instructions if the condition evaluates to true, and executes a different set of instructions if the condition evaluates to false. Iteration Process where a set of instructions or structures are repeated in a sequence a specified number of times or until a condition is met. For Loop A block of instructions is executed a fixed number of times as specified in the first line of the for-loop, which defines an index, a starting value for the index, and a final value for the index. While Loop A while loop iterates an unknown number of times, ending when a certain condition becomes false. Nested Loop When a loop exists within another loop.
Written for
- Institution
- WGU C960
- Course
- WGU C960
Document information
- Uploaded on
- September 17, 2023
- Number of pages
- 2
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
wgu c960 unit 1 algorithms latest 2023 graded a
Document also available in package deal