• Falsches Dokument? Kostenlos tauschen
  • Geschrieben von Student*innen, die bestanden haben
  • Sofort verfügbar nach Zahlung
  • Online lesen oder als PDF
Verkaufen
Wo studierst du
Deine Sprache
Document preview thumbnail
Vorschau 2 aus 5 Seiten
Andere

Unit 16: Procedural Programming { P1 M1 D1 }

Document preview thumbnail
Vorschau 2 aus 5 Seiten

P1 explain the key features of procedural programs M1 explain why modular elements are important for procedural programming D1 evaluate the suitability of procedural programs for graphical applications

Inhaltsvorschau

P1 explain the key features of procedural programs

Key features:
Procedures
Procedures in a program are the steps that the program goes through to complete the task. These
procedures can vary since every program might do different things such as calculation then returning
the value, doing a calculation and so on. The program will do the things that are programmed by the
programmer.

Functions
Functions are similar to procedures but they return a value. Functions are specific sections which are
self-contained modules which accomplish a specific set of tasks. Functions in general take the data,
process it and return the result, functions can be used many times in code as it is made to save time
and make code shorter. Functions can also be called from the inside of other functions.

Pre-defined functions
Pre-defined are specific commands in every programming language. They are already created and
ready to use in the wild. Such per defined function is print (), which will printout for example string,
variable and integer writing inside the brackets.

Local variables
Local variable can only be used in the place where it is placed. For example, user create a function
and in this function a variable is created, the variable can only be used in the function and not
outside and that is called local variable.

Global variables
Global variables are variables that can be used throughout the program code which is good for
programs that wants to use the same variable over and over throughout the program.

Parameter passing
Parameter passing is variable values to be passed through the program and then to the procedure.

Modularity
Modularity is how the program has different tasks that are grouped to complete the main tasks. In
every group, it has their own task to complete. Modularity are modules which are split into groups
to complete certain tasks one after another so it will a continuous system.

Programming libraries
Programming libraries have a collection od made up sources of class, codes, values and subroutines
which can be used by the programmer at any time in the program.

, Control structures:
A control structure is a block of programming that analyses variables and choses a direction that is
based on given parameters. The term flow control details the direction the program takes.

Fixed Loop
Fixed loop is a loop that tells the programmer how many times the loop needs to run for.
Example:
count = 0
for x in range (1,1010;
if x%2 ==0;
count = count + x
print(count)

Pre-check Loop
Pre-check loop is a loop that checks the program for any errors before carrying out the procedure
and executing the program to see if it will work.
Example:
x=6
while x>0;
print (“the x is”, x)
print (“that will never appear”)

Post Check Loop
Post check loop is a loop that test runs the program to make sure that it works before running the
actual program.

Break Points
These are temporary makers that tell the programmer to stop the program at a certain statement
and line.

Conditional commands
IF, ELSE, Boolean Operators and other conditional statements are used to tell whether the condition
is true or false.
An Example of IF Else statement:
x=0
if 5 in (1,2,3,4);
x = x+1
else if 4==2;
x =x+2
else if 7>4;
9x = x+4
print(x)

Verknüpftes buch
 image
Herausgeber: Unbekannt ISBN: 9781867492467 Ausgabe: Unbekannt

Dokument Information

Studien-Niveau
Fach
Hochgeladen auf
30. juni 2021
Anzahl der Seiten
5
geschrieben in
2020/2021
Typ
Andere
Person
Unbekannt
$10.88

Falsches Dokument? Kostenlos tauschen Innerhalb von 14 Tagen nach dem Kauf und vor dem Herunterladen kannst du ein anderes Dokument wählen. Du kannst den Betrag einfach neu ausgeben.
Geschrieben von Student*innen, die bestanden haben
Sofort verfügbar nach Zahlung
Online lesen oder als PDF

Seller avatar
Bewertungen des Ansehens basieren auf der Anzahl der Dokumente, die ein Verkäufer gegen eine Gebühr verkauft hat, und den Bewertungen, die er für diese Dokumente erhalten hat. Es gibt drei Stufen: Bronze, Silber und Gold. Je besser das Ansehen eines Verkäufers ist, desto mehr kannst du dich auf die Qualität der Arbeiten verlassen.
jessykaur
2.3
(12)
Verkauft
31
Anhänger
23
Sachen
30
Zuletzt verkauft
2 Jahren vor



Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Arbeitest du an deiner Quellenangabe?

Erstelle korrekte Quellenangaben in APA, MLA und Harvard mit unserem kostenlosen Zitiergenerator.

Arbeitest du an deiner Quellenangabe?

Häufig gestellte Fragen