Plan a solution
An algorithm is a finite sequence of clear steps that solves a problem. Write the inputs, expected output and a few test cases before coding.
COMPUTER ENGINEERING
Diploma programming notes: algorithms, variables, data types, input and output, conditions, loops, arrays and functions.
These language-neutral fundamentals help organise programming practice. The language, software and assessed topics for your course are specified by the current syllabus and instructor.
Student resource guide · Check the linked official source for current documents and notices.
An algorithm is a finite sequence of clear steps that solves a problem. Write the inputs, expected output and a few test cases before coding.
Variables store values; data types describe which values and operations are appropriate. Use sequence for ordered instructions, selection for decisions and iteration for repetition.
An array stores related items under indexed positions. A function names a reusable block of work, often with parameters and a returned result. Check index boundaries and test one-item and empty cases.
Read the error message, reduce the problem to a small example, inspect values at each step and test normal, boundary and invalid inputs.
NEED A HAND?