lkakmail.blogg.se

How to make a computer program
How to make a computer program










use sequence, selection, and iteration control structures.produce output based on the program control flow.take input from a user, sensor, or another external source.store at least two types of data in variables.It may be text-based or graphical and the resulting program must: The language used must support the programming constructs assessed within the Standard.

how to make a computer program

Effective use of control structures and conditions may also include appropriately ordered conditionals or naturally terminating loops. This may include avoiding checking the same condition multiple times through using chained if/else statements, nested conditionals or the use of multiple conditions with boolean operators. Using conditions and control structures effectively means using those constructs in a way that makes the program more efficient and reduces or eliminates errors. A robust program will be tolerant of a range of input, may check for the validity of input data and will manage situations where invalid or out-of-range data is received. Flexibility may be demonstrated in the code through the use of constants and variables or derived values in place of literals, or through the reuse of code sections. Conditions will be handled logically and the output of the program will be accurate across all likely input (both expected and boundary).Ī flexible and robust program will function effectively across a range of situations. The code will be easy to follow - particularly for someone else who was to take the code and continue working on it - and comments will explain the purpose of sections of code (as opposed to describing what each line does). To reach excellence ākonga will make effective use of control structures to produce an efficient program that is flexible and robust, and works on expected, boundary, and invalid cases.Ī well-structured program will be laid out logically. Ākonga will identify and correct errors, predict and test outputs, and show that they can document their program for future developers. This Standard assesses the ability of ākonga to apply computational thinking skills and knowledge of basic programming structures.












How to make a computer program