8.2 introduction to software development

studied byStudied by 2 people
5.0(1)
Get a hint
Hint

how do you understand a problem (understanding the problem)

1 / 42

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

43 Terms

1

how do you understand a problem (understanding the problem)

  1. identify requirements and parameters of the problem

  2. determine the steps that will solve the problem

  3. check and test the solution

New cards
2

what is an IPO diagram (understanding the problem)

used to describe data elements that enter a system/subsystem, processors that will occur, and the data elements that will then leave the system

<p>used to <mark data-color="red">describe data elements</mark> that <u><strong>enter</strong></u> a <u><strong>system</strong></u>/<u><strong>subsystem</strong></u>, <mark data-color="red">processors</mark> that will <mark data-color="red">occur</mark>, and the <mark data-color="red">data elements</mark> that will then <u><strong>leave</strong></u> the <u><strong>system</strong></u></p>
New cards
3

what is the top down approach (abstraction/refinement)

breaking down large complicated problems into smaller problems that are easier to solve

New cards
4

what is a program made of (abstraction/refinement)

modules and subprograms

New cards
5

what are modules (abstraction/refinement)

written separately and brought together to form a whole

New cards
6

what is algorithm/main program known as

the driver module

New cards
7

what are subprograms (abstraction/refinement)

used within the main program section, used often in top-down method

New cards
8

what are data flow diagrams and when are they used (abstraction/refinement)

describes the path of data in system, initial DFD represents one whole system as a single process (known as a CONTEXT DIAGRAM/LEVEL 0 DFD)

  1. used during design processes

New cards
9

what are structure charts (abstraction/refinement)

represents a system by showing the separate modules/subroutines

New cards
10

what do the shapes in structure charts mean (abstraction/refinement)

  1. rectangle

  2. empty circle arrow

  3. filled circle arrow

  4. diamond

  5. curved arrow

  1. module

  2. flow of data

  3. flag to show processing being doing

  4. decision

  5. loop

New cards
11

what are system flowcharts (abstraction/refinement)

representing a system to show the flow of data

New cards
12

what do the shapes of system flowcharts mean (abstraction/refinement)

  1. parallelogram

  2. rectangle with a chomp

  3. pencil looking shape

  4. slanted roof

  5. rectangle with a fold on the top left

  6. rectangle

  7. rhombus

  8. tape

  9. cylinder

  10. diamond

  11. line

  1. input/output

  2. paper document

  3. online display

  4. online input

  5. punched card

  6. process

  7. manual operation

  8. magnetic tape

  9. disk drive

  10. decision

  11. telecommunication link

New cards
13

what is the difference between a system flowchart and a program flowchart

system flowcharts do not use a start/end system and dont represent complex logic

program flowcharts are used to represent the logic in an algorithm

New cards
14

what are the different data types (data types)

integer, string, floating point, boolean, date, array, record, file

New cards
15

what is an integer (data types)

whole numerical data stored as 2 bytes

New cards
16

what is a string (data types)

a sequence of characters

New cards
17

what is a floating point (data types)

numbers with decimal places and requires more data than an integer

New cards
18

what is a boolean (data types)

simplest data type with only two possible values, true or false

New cards
19

what is a data structure (data types)

literally top-down

New cards
20

what is a one-dimensional array (data types)

allows a variable to store a number of related data items, that are the same type, rather than just one item

New cards
21

what is a record (data types)

used to link data items that are related but are DIFFERENT types

New cards
22

how are records use in sequential files (data types)

records being stored in a way that only allows access to a record if all previous records have been processed

usually end-of-file (EOF) marker used at the end of a file

New cards
23

what is a data dictionary (data types)

information of variables including name, data type, size, description and examples

New cards
24

what are structured algorithms

a series of steps or instructions designed to solve a problem

New cards
25

what is a control structure (structured algorithms)

literally a flowchart

New cards
26

what is a sequence (structured algorithms)

a simple sequence of instructions

New cards
27

what is a selection and examples (structured algorithms)

a selection between two or more different courses of actions

eg. binary selection (if, then, else) and multiway selection (casewhere)

New cards
28

what is repetition and examples (structured algorithms)

the repetition of a set of instructions a number of times

eg. pre-test (while, endwhile) and post-test (repeat, until) loops

New cards
29

what is pseudocode (structured algorithms)

relies on indented words and use of keywords (in caps) to highlight structure of an algorithm

BEGIN

END

New cards
30

what are program flowcharts (structured algorithms)

a pictoral or graphical method of describing an algorithm

New cards
31

what do the shapes of flowcharts mean

  1. rounded rectangle

  2. rectangle

  3. diamond

  4. parallelogram

  5. weird chomped rectangle

  6. rectangle with lines

  7. arrow

  1. start and end of a flowchart

  2. process

  3. decision

  4. input/output

  5. paper document

  6. subroutine

  7. flow of logic

<ol><li><p>start and end of a flowchart</p></li><li><p>process</p></li><li><p>decision</p></li><li><p>input/output</p></li><li><p>paper document</p></li><li><p>subroutine</p></li><li><p>flow of logic</p></li></ol>
New cards
32

how do you load an array and print its contents (structured algorithms)

BEGIN

OPEN …………. FOR INPUT/OUTPUT

READ …… FROM …………..

→ → WHILE NOT EOF

CLOSE …………..

END

New cards
33

what and how do you use stubs (structured algorithms)

temporary section of code used to reduce the places that you need to look to find an error, used to represent incomplete modules

New cards
34

what are structured algorithms good for (structured algorithms)

to improve the clarity, quality, and development time of a computer program

New cards
35

what are meta-languages (implementing software solutions)

describing the syntax of a programming language

  • made by john backus in mid to late 1950s

New cards
36

what do EBNF diagrams look like (implementing software solutions)

  1. {}

  2. []

  3. ()

  4. |

  5. =

  6. <>

  1. repetition, DOESNT have to be carried out

  2. optional

  3. grouped elements

  4. or

  5. is defined as

  6. needs to be defined

New cards
37

what do railroad diagrams look like (implementing software solutions)

  1. lines

  2. rectangles

  3. circles/rounded rectangles

  1. lines: branches (can be loops/optionals)

  2. rectangles: pre-defined element

circles/rounded rectangles: fixed element

New cards
38

what are syntax errors (implementing software solutions)

  1. occurs how

  2. when is it discovered

  3. ways to avoid

  1. occurs when programmers fails to follow grammar rules

  2. during translation process it will stop and an error message will appear

  3. take care when typing code and desk check

New cards
39

what are runtime errors (implementing software solutions)

  1. occurs how

  2. when is it discovered

  3. ways to avoid

  1. trying to divide by 0, reading data from a non-existent file, finding the square root with negative numbers, outside of a boundary

  2. whilst a program is running it will randomly quit

  3. be aware of where these types of errors may occur

New cards
40

what are logic errors (implementing software solutions)

  1. occurs how

  2. when is it discovered

  3. ways to avoid

  1. condition does not check boundary values, reusing variable names which still contain old values

  2. when operations are performed invalid

  3. desk check the algorithm

New cards
41

what are flags used for (implementing software solutions)

used to check if a section of code has been processed, boolean, set to false and set to true if code is executed

New cards
42

what are some reasons for maintaining code (maintaining software solutions)

  1. changing user requirements

  2. upgrading the user interface

  3. changes in the data to be processed

  4. introduction of new hardware or software

  5. changing organisational focus

  6. changes in government requirements

  7. poorly implemented code

New cards
43

how do you create solutions that are easy to maintain (maintaining software solutions)

  1. use of variables instead of literal constants

  2. use of meaningful variable names

  3. explanatory comments in the code

  4. use of standard control structures with appropriate indentation

  5. appropriate use of white space to improve legibility of the source code

  6. a clear and uncluttered mainline

  7. one logical task per subroutine

  8. meaningful names for subroutines and modules

New cards

Explore top notes

note Note
studied byStudied by 30 people
... ago
4.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 96 people
... ago
5.0(2)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (27)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (87)
studied byStudied by 15 people
... ago
5.0(3)
flashcards Flashcard (79)
studied byStudied by 546 people
... ago
5.0(1)
flashcards Flashcard (223)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (86)
studied byStudied by 20 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 218 people
... ago
5.0(7)
robot