2.1 Elements of Computational Thinking.280155520
2.1 Elements of Computational Thinking.280155520
• Things which are needed • Removing unnecessary • Abstraction is more simplified than reality. Model Generalisation
before the program can detail. • Real world items are simplified into computer • What problem needs to be • Similar elements of
run. • Representing the key structures such as a table, variable or solved? a problem may be
• The code expects the elements of the database. • Who will use the model? grouped together.
information passed to it to problem. • Objects used in object oriented programming • How will the model be • This allows
meet certain criteria. • Must consider what can be an abstraction of real world entities. used? common problems
• The code may test for these information is actually • Attributes can represent the characteristics of a • Which are the key elements to be categorised.
when it is run. relevant to the problem real world object. of the problem for the • They can then be
• They may instead be at hand. • Methods can represent the actions a real world people using the model and solved with a
included within • Complex problems can object may perform. how they will use it? common solution.
documentation. be split into several
• Including this information layers of abstraction. Decisions Affecting Program Flow Procedural Abstraction
within documentation • Higher layers are • There may be many routes through a program. • Allows a programmer to use a function without
reduces the complexity of closer to the user, • Decisions by the user will affect the route understanding the detail of its implementation.
the program and makes it possibly providing a taken. • Used with data structures and in decomposition.
easier to use. user interface. • It is important to identify places where the user • Models the purpose of a subroutine without
• Preconditions make it • Lower levels interact will need to make a decision and plan for the considering how it does what it does.
easier to reuse subroutines. with the computer. decisions they may make.