revision

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:25 PM on 3/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Seven Steps in Program Development

  1. Define the problem. 2. Outline the solution. 3. Develop the outline into an algorithm. 4. Test the algorithm for correctness (desk check). 5. Code the algorithm into a specific programming language. 6. Run the program on the computer. 7. Document and maintain the program.

2
New cards

Three Approaches to Program Design

  1. Procedure-driven (focuses on tasks/functions). 2. Event-driven (focuses on actions like mouse clicks). 3. Data-driven (focuses on the analysis and structure of data).

3
New cards

Computer Program

A program is a related series of instructions that, when directed through computer hardware, produce desired results to solve an identified problem.

4
New cards

Meaningful Names in Programming

They act as transparent identifiers for storage locations, making the code easier to read and maintain.

5
New cards

Desk Check

A desk check involves 'walking' through an algorithm on paper using simple test data to simulate computer execution.

6
New cards

Logic Errors

Identified during desk checks; these are mistakes in the thinking or sequence that produce wrong results.

7
New cards

Bug

A bug is an error in a program.

8
New cards

Types of Bugs

  1. Syntax errors: Grammatical mistakes detected at compile time. 2. Logic errors: Mistakes in the thinking that produce wrong results. 3. Run-time errors: Errors that occur during execution.

9
New cards

Variable

A named memory location where the stored value can change while the program runs.

10
New cards

Constant

A named value that remains fixed throughout execution.

11
New cards

Boolean Variable

An elementary data type that can hold only one of two possible values, typically true or false.

12
New cards

Record

A group of related data items that describe one thing.

13
New cards

File

A collection of many related records.

14
New cards

Array

A list of items of the same data type stored under one name and accessed using an index.

15
New cards

String

A group of characters treated as a single unit.

16
New cards

Elementary Data Types

  1. Integer. 2. Real (floating point). 3. Character. 4. Boolean.

17
New cards

Control Structures

  1. Sequence: Instructions executed in order. 2. Selection: Making decisions (IF-THEN-ELSE). 3. Repetition: Repeating actions while a condition is true.

18
New cards

WHILE…DO Loop

A leading-decision loop that tests the condition before execution.

19
New cards

REPEAT…UNTIL Loop

A trailing-decision loop that tests the condition at the end, always running at least once.

20
New cards

FOR-loop

A counted loop used when the number of repetitions is known in advance.

21
New cards

Logical Operators: AND vs OR

AND requires all conditions to be true; OR requires at least one condition to be true.

22
New cards

IPO Model: Total Cost of Coffee Beans

Input: Number of bags, Cost per bag; Processing: Calculate total cost = (Number of bags × Cost per bag); Output: Total cost.

23
New cards

IPO Model: Miles to Kilometers

Input: Distances (Miles); Processing: Calculate Kilometers = (Miles / 0.621371); Output: Converted distances in Kilometers.

24
New cards

IPO Model: VAT Calculation

Input: Customer name, item name, purchase amount, VAT code; Processing: Set tax based on code; Output: Customer name, item name, total amount due.

25
New cards

IPO Model: Voting Eligibility

Input: Current year, birth year; Processing: Calculate age; Output: Voting eligibility message.

Explore top flashcards

flashcards
La maison
52
Updated 1177d ago
0.0(0)
flashcards
AP Biology - Unit 5
51
Updated 1159d ago
0.0(0)
flashcards
Unidad 4A Vocabulario - A Comer
32
Updated 758d ago
0.0(0)
flashcards
[ 2MID ] MIL - What is Media?
40
Updated 215d ago
0.0(0)
flashcards
African Civilization Test
65
Updated 1234d ago
0.0(0)
flashcards
Geometry 1.1-1.6
29
Updated 959d ago
0.0(0)
flashcards
¡Qué chévere! Unidad 6A
54
Updated 1044d ago
0.0(0)
flashcards
Comprehensive: Cardio
182
Updated 474d ago
0.0(0)
flashcards
La maison
52
Updated 1177d ago
0.0(0)
flashcards
AP Biology - Unit 5
51
Updated 1159d ago
0.0(0)
flashcards
Unidad 4A Vocabulario - A Comer
32
Updated 758d ago
0.0(0)
flashcards
[ 2MID ] MIL - What is Media?
40
Updated 215d ago
0.0(0)
flashcards
African Civilization Test
65
Updated 1234d ago
0.0(0)
flashcards
Geometry 1.1-1.6
29
Updated 959d ago
0.0(0)
flashcards
¡Qué chévere! Unidad 6A
54
Updated 1044d ago
0.0(0)
flashcards
Comprehensive: Cardio
182
Updated 474d ago
0.0(0)