Академический Документы
Профессиональный Документы
Культура Документы
If condition true
– Print statement executed and program goes on to next
statement
– If false, print statement is ignored and the program
goes onto the next statement
– Indenting makes programs easier to read
Hardware – is the equipment, or the devices, associated • Flowchart - is a pictorial representation of the logical
with a computer. For example, keyboards, mice, steps it takes to solve a problem.
speakers, and printers are all hardware. • IPO (Input, Process, Output)
• TOE Charts (Tasks, Objects and Events)
Software - or programs, instructions that tell the • Desk-checking – the process of walking through a
computer what to do program’s logic on paper before you actually write a
• Application Software – comprises all the program.
programs you apply to a task – word processing • Algorithm - is the sequence of steps necessary to solve
programs, spreadsheets, payroll and inventory programs any problem
and even games.
• System Software – comprises that programs 3. Coding the program – despite differences among
that you use to manage your computer – including programming languages-each can handle input
operating systems, such as Windows, LINUX operations, arithmetic processing, output
operations, and other standard functions
MAJOR OPERATIONS OF HARDWARE AND SOFTWARE 4. Using software to translate the program into
• Input machine language
• Processing – data items that involves organizing,
checking for accuracy or performing mathematical Syntax error – misuse of a language’s grammar rules
operations (misspelling a word, using a word that doesn’t exist in the
• Output – e.g. printer or monitor language or using “illegal” grammar
• Storage – holds the information for later retrieval Semantic Error – occurs when a correct word is used in
• Syntax – rules governing the word usage and an incorrect context.
punctuation.
• Program Code - instructions you write using a 5. Testing the program – a program that is free of
programming language. syntax errors is not necessarily free of logical
• LOGIC – instruction in a specific sequence. error.
6. Putting the program into production – might
UNDERSTANDING THE PROGRAMMING PROCESS mean simply running the program once, if it was
1. Understanding the problem – the most difficult written to satisfy a user’s request for a special
aspects of programming. A good programmer is list.
often part counsellor, part detective
2. Planning the logic – the heart of the UNDERSTANDING INTERACTIVE USER INPUT
programming process, the programmer plans Prompt – is a message that is displayed on a monitor,
the steps of the program, deciding what steps to asking the user for a response
include and how to order them. Command prompt – is the location on your computer
screen at which you type entries to communicate with
Common Planning Tools the computer’s operating system using text.
• Pseudocode - is an English-like representation of the Graphical User Interface or GUI – allows user to interact
logical steps it takes to solve a problem. with a program in graphical environment.
– Pseudo is a prefix that means “false,” and to Data Hierarchy – data items stored for used on computer
code a program means to put it in a programming systems.
language; therefore, pseudocode simply means “false
1. Character – the smallest unit of data, can be letters,
numbers, and special symbols like “A”, “7”, and “&”.
2. Field – is a single data item, such as lastName,
streetAddress or annualSalary
3. Records – are groups of fields that go together for
some logical reason.
4. Files – are groups of records that go together some
logical reason.
5. Flat file – records that are stored in a file that is not
part of a database.