COMPUTER ENGINEERING

Computer programming notes for diploma students.

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.

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.

Variables and control flow

Variables store values; data types describe which values and operations are appropriate. Use sequence for ordered instructions, selection for decisions and iteration for repetition.

Arrays and functions

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.

Debugging checklist

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?

Talk to the college.

Contact Ma'din ↗