100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
College aantekeningen

Class notes Computer science

Beoordeling
-
Verkocht
-
Pagina's
3
Geüpload op
24-11-2023
Geschreven in
2023/2024

Flowcharts and Pseudocodes

Instelling
Vak








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Studie
Onbekend
Vak
Onbekend

Documentinformatie

Geüpload op
24 november 2023
Aantal pagina's
3
Geschreven in
2023/2024
Type
College aantekeningen
Docent(en)
E b
Bevat
Alle colleges

Onderwerpen

Voorbeeld van de inhoud

Week 5 Computer Systems Lecture: Flowchart and Pseudocode 13.02.23

Video

 First part of flowchart is to input a number
 Then a second number
 Then the flowchart will ask a question
 The flowchart will then branch the output
 Make sure you know what shapes should be used in the flowchart
 Pseudocode is an alternative way to represent the sequence in an algorithm
 The instructions match up to the flow chart e.g. INPUT number 1

Flowcharts

 Diagram that represents workflow or process
 Can also be defined as a diagrammatic representation of an algorithm, a step-by-step
approach to solving a task
 X = Price, Y = Price 2
 If the price of product 1 is bigger than the price of product 2, print X. Otherwise print Y, then
stop
 If X and Y are the same price, you will get an error. You have to do another branch e.g. if X
=Y, you need to print X and Y are the same
 You can also write if X=Y or if X>Y and this can go to one branch
 The flowchart shows the steps as boxes of various kinds, they are ordered by connecting the
boxes with arrows
 This diagrammatic representation illustrates a solution model to a given problem
 Flowcharts are used in analysing, designing, documenting or managing a process or program
in various fields

Example of customer credit

 Need to add Start and Finish
 Buy product - Credit form  Order form Credit check  If the credit check is good 
Review accounts receivable balance. If credit check is not good  back to sales call
 You can only have two arrows from every statement e.g. yes/no, true/false, 1/2
 If you need more than two arrows, you need to add another statement

Flowchart (Loop statement While/do while)

 Between the input and output there is a processing stage
 While – you have a condition (true or false) e.g. while I = < 5 and you want to change. Check
the task, then check
 Do while – I < 5, check the file, then do the task
 For – you need 3 things: initial value, last value and increment or decrement value
 Loop – the arrow loops back to the start. Do while – the loop stems from the condition,
While loop – the arrow stems from the task

Over 60 working example Python

 And is the same as multiplying e.g. 0 and 1 is 1
 If the condition is false you will not get anything in the output
 0 or 1 is 1
$11.38
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
cpaine

Maak kennis met de verkoper

Seller avatar
cpaine The University of Salford
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
2 jaar
Aantal volgers
0
Documenten
12
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen