COMP 002 LEC 1 & 2: Computer Programming Concepts, Algorithm

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

Computer

Electronic device that accepts data, processes, produces results, displays, and stores for future usage

2
New cards

Input in Hardware

Keyboard, Mouse, Other I/P devices

3
New cards

Process in Hardware

CPU, RAM, Memory

4
New cards

Output in Hardware

Monitor, Printer, Speaker, Other O/P devices

5
New cards

System Software

Programs to control and manage operation of a computer hardware

6
New cards

Operating System

Runs and manages the computer. (Microsoft Windows, Linux)

7
New cards

Utility Programs

Utilizes, nanages, and protects the computer. (Antivirus, File Compression)

8
New cards

Device Drivers

Helps the hardware components. (Monitor Driver, Printer Driver)

9
New cards

Application Software

Used to perform various applications

10
New cards

Examples of Application Software

• Word Processor (MS Word)

• Spreadsheet (MS Excel)

• Database Software (Oracle, MS Access)

11
New cards

Program

A set of instructions that drives computers to do tasks

12
New cards

Syntax

How we write the program correctly

13
New cards

Semantics

Rules in writing a program

14
New cards

Software instructions

Programmed in a computer language, translated into machine language, and executed by computer

15
New cards

Program and Programming

• Program is done for human needs and wants

• Processing is controlled by detailed step by step instructions

• Consist of statements written in a specific programming language

• When writing a program, we are solving a problem

• Computer only understands 0 and 1. Hence, the need to compile the program to transform it into 0 and 1.

16
New cards

Program Development Procedure (Program Life Cycle) – Unending

  1. Program/Problem Definition

  2. Program Design

  3. Program Coding

  4. Program Testing

  5. Program Documentation

  6. Program Maintenance

17
New cards

1: Program/Problem Definition

  1. Specify program objectives and identify users

  2. Specify the output requirements

  3. Specify the input requirements (comes from the problem from your analysis)

  4. Specify processing requirements (comes from analysis)

  5. Study feasibility of implementing program (We did the solution, can we implement it?)

  6. Document the analysis

18
New cards

2: Designing the Program

  1. Determine the program logic through top-down approach and modularization, using hierarchy charts.

  2. Design details using pseudo-code and /or flowcharts.

  3. Test design with a structural walkthrough. Structural walkthrough consists of reviewing the  process with other programmers and system analyst and scrutinize (“walkthrough”) the programmer’s work.

19
New cards

3: Program Coding

Translates the logic of the program based on the pseudo-code (algorithm) or flowcharts into a high level programming language using the syntax and semantics of the specific language.

  1. Determine the appropriate programming language to use.

  2. Code the program in the specific programming language decided on.

20
New cards

4: Program Testing

  1. Desk checking

  2. Debugging (detecting, locating and removing errors in the computer program.)

  3. Running real data

21
New cards

Syntax Error

typographical error or incorrect format of the statement used (Ex: Semicolon, etc.)

22
New cards

Logic Errors

caused by incorrect use of control structures (Ex: Wrong analysis, etc.)

23
New cards

System Errors

predefined error codes and error messages that software programmers can use with their software to tell you (the software user) that the program is experiencing a particular problem.

24
New cards

5: Program Documentation

Program consists of the written descriptions of what the program is all about and how to use it

  1. User Documentation - Manual that is prepared to help the user use the programs.

  2. Operator Documentation- Manual that gives the computer operator information on what to do when the program flashes an error message.

  3. Program Documentation - Consists of the testing of the whole programs. This documentation helps train the new programmers to maintain existing system. Maintenance here means keeping the programs in working conditions, error free and up to date.

25
New cards

6: Program Maintenance

• provide education and support to end users

• correct any unanticipated errors that emerge

• identify user-requested modification(enhancements), once errors or enhancement are identified, the program development life cycle begins again at step 1

26
New cards

Algorithm

• Step step by step procedure to solve a given problem.

• Precise, systematic method for producing a specified result.

• Set of steps used to complete a specific task.

27
New cards

5 Properties of an Algorithm:

1. Input specified

2. Output specified

3. Definiteness

4. Effectiveness

5. Finiteness

28
New cards

2 Types of an Algorithm:

1. Flowchart

2. Pseudocode

29
New cards

Flowcharting

• Visual representation of the sequence of the steps and decisions needed to perform a process.

• Diagram that represents an algorithm or process.

• Used to describe processing procedures based on detailed analysis

30
New cards
<p></p>

<p></p>
31
New cards

System Flowchart (process chart)

Indicates a flowchart for a targeted system as a whole.

<p><span>Indicates a flowchart for a targeted system as a whole.</span></p>
32
New cards

Program Flowchart

Describes processing procedures based on detailed analysis.

33
New cards

Sequential Structure

Steps are performed in a strictly sequential manner, each step being executed exactly once.  This is the simplest method of control. It is easy to develop and understand.

<p><span>Steps are performed in a strictly sequential manner, each step being executed exactly once.&nbsp; This is the simplest method of control. It is easy to develop and understand.</span></p>
34
New cards

Selection Structure

One of several alternative actions is selected and executed.  It involves the use of decision based on the given condition.  It use decision block or the diamond-shaped block.  Alternative action will be represented by a processing block.

<p><span>One of several alternative actions is selected and executed.&nbsp; It involves the use of decision based on the given condition.&nbsp; It use decision block or the diamond-shaped block.&nbsp; Alternative action will be represented by a processing block.</span></p>
35
New cards

Repetition Structure

One or more steps is performed repeatedly.

<p><span>One or more steps is performed repeatedly.</span></p>
36
New cards

Pseudocode

• Mixture of language and symbols, terms and other feature commonly used one or more high-level languages. High-level languages are programs used by the computer.

• Is a simpler version of a programming code in plain English before it is implemented in a specific programming language

• A compact and informal high-level description of a program.

37
New cards

2 Types of Software

  1. System Software

  2. Application Software

38
New cards

3 Types of Control Structure Flowchart

  1. Sequential Structure

  2. Selection Structure

  3. Repetition Structure

Explore top flashcards

World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)
World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)