Docsity

O levels Computer Science Notes, Study notes of Computer science

Toggle sidebar
bg1
The International School Seychelles
IGCSE
Computer
Studies
CIE 0420
Theory Notes
Contents
1 Applications Of Computers, Their
Social & Economic Implications................................ 1
1.1 The Range And Scope Of Computer
Applications ............................................................................. 1
1.2 The Social And Economic Implications
Of The Use Of Computers ....................................................... 3
2 System Analysis ......................................................... 6
2.1 Systems Analysis ................................................................... 6
3 Problem Solution, Algorithm
Design & Programming Concepts............................. 8
3.1 Making An Overall Plan .......................................................... 8
3.2 Programming ........................................................................ 10
4 Generic Software And The
Organisation Of Data ................................................ 15
4.1 Generic Software .................................................................. 15
4.2 Data ........................................................................................ 18
5 Hardware, Systems And
Communications....................................................... 22
5.1 Hardware ............................................................................... 22
5.2 Systems And Communications ........................................... 26
5.3 Types Of System................................................................... 28
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download O levels Computer Science Notes and more Study notes Computer science in PDF only on Docsity!

The International School Seychelles

IGCSE

Computer

Studies

CIE 0420

Theory Notes

Contents

1 Applications Of Computers, Their Social & Economic Implications................................ 1 1.1 The Range And Scope Of Computer Applications ............................................................................. 1 1.2 The Social And Economic Implications Of The Use Of Computers....................................................... 3

2 System Analysis ......................................................... 6 2.1 Systems Analysis ................................................................... 6

3 Problem Solution, Algorithm Design & Programming Concepts............................. 8 3.1 Making An Overall Plan .......................................................... 8 3.2 Programming ........................................................................ 10

4 Generic Software And The Organisation Of Data ................................................ 15 4.1 Generic Software .................................................................. 15 4.2 Data ........................................................................................ 18

5 Hardware, Systems And Communications....................................................... 22 5.1 Hardware ............................................................................... 22 5.2 Systems And Communications ........................................... 26 5.3 Types Of System................................................................... 28

1 Applications Of Computers, Their Social & Economic

Implications

1.1 The Range And Scope Of Computer Applications

General Application Areas

The range of computer applications is vast. You should have an awareness of as many applications as possible, and for each, try to know the following:

1 The purpose of the application. 2 The required outcome. 3 The overall system design , including both the computerised and the non- computerised parts of the application. 4 The necessary inputs to the system and the means by which any data is captured. 5 The overall organisation and processing of the data within the system. 6 The use and organisation of the major software and hardware components of the system. 7 The need for recovery in the event of a system failure. 8 The interface between the system and its users. 9 The effectiveness of the system in practice. 10 The effects of the application on individuals and organisations.

Communication And Information Systems

Data is exchanged between computers. The data can be in the form of text, images, sound or video.

Electronic mail (e-mail) simple message exchange. Can attach other files Electronic conferencing can either be a text, voice or video conference

On-Line Services & Remote Databases

Computers are often placed in locations where the public can use them to lookup information.

Information retrieval online databases, encyclopaedias, dictionaries, bus timetables, etc. Library systems documents are stored digitally where they can be searched Multimedia systems stored information contains text, sound, video, etc.

Commercial And General Data Processing

These are often batch-processing systems involving data being collected over a period of time, and then processed later. The collected data is stored in a transaction file, and this is used to update the master file to give a new master file.

Banking systems bank accounts are updated based on daily transactions Personnel records employee's pay is calculated based on hours worked Stock control when items are sent / received, the stock is updated Order processing received orders are dealt with

1.2 The Social And Economic Implications Of The Use Of

Computers

Social And Economic Effects

Effects on people, organisations and on society in general.

Redundancies jobs lost when staff replaced by computer-based systems De-skilling replacement of skilled staff by computers. Staff are then left to do less skilled jobs Electronic 'scabbing' if staff are striking, work can easily switched to non-striking staff via a network, even in a different country Tactical striking unions maximise impact of strikes by selecting computing staff first. Whole company is then affected 'New tech,' agreements benefits to workers (cleaner, safer workplace) and management (more cost-effective) of using computer- based systems

Economic Reasons For The Use Of Computers

There are many financial reasons for using computers, and computer controlled systems, even though they are expensive to set-up initially.

More efficient tasks completed quicker, and with lest wastage Work longer than people automated systems need no rest, can work for 24 hours a day Save on wages computers can often do the work of several people, so people are made redundant

Changes To Existing Methods, Products And Services

Businesses change the way they work, and provide different, and better services to clients.

On-line banking more convenient for customer, cheaper for banks, less real staff required to deal with cash E-commerce selling goods online means less overheads, so better prices for customers, and more profit for company EPOS (Electronic Point of Sale) tills in shops where the good purchased are automatically taken from the database of stock. Can automatically generate orders for new stock EFT (Electronic Funds Transfer) allows people to pay for goods using a card which is 'swiped' in the store, authorising the transfer of money from the customer's bank account

Development Of New Products And Services

Computers have lead to the development of new markets and businesses.

  • Internet service providers
  • Web-design services
  • Internet cafes

Changes In The Working Environment

Using computers within businesses has altered the environment that we work in

Cleaner and safer dangerous / messy jobs done by computer systems Work injuries can go up due to prolonged computer use – RSI, back ache, etc.

Changes In Employment

The use of computers in the workplace has an impact on the way people work

Retraining of staff software packages upgraded, staff need to be trained. This is often a regular thing. However… Individual training training can be personalised to staff's needs through the use of CAL systems, CD-ROMs, etc.

Privacy And Integrity Of Data

So much personal data is stored within computer systems that companies and governments have to have guidelines and laws to protect the privacy of people and their information.

Data Protection Legislation

The Data Protection Act gives the following requirements to anyone who stores data about someone else:

  • Person must give permission for data to be stored
  • Data must not be used for purposes other than those it was given for
  • Must not store more data than is necessary for the purpose
  • Data must be kept up-to-date
  • Data should not be kept for longer than is necessary
  • Data must be protected against unlawful access, or accidental loss
  • Data must not be transferred outside of EU unless the country also has data laws

Security And Reliability

Data must be protected. This involves a number of procedures.

Back-ups of critical data should be performed on a regular basis. A full copy of all files is taken (can use CD-R, magnetic tape, etc.) Usual technique is to keep 3 generations of back-ups (today's, yesterday's and the day before's). This is the grandfather, father, son system. Batch-Processing Backup of both transaction files and master files required. If today's master file is lost, we can re-build it from yesterday's backed-up master file and transaction file. Archiving of old data to reduce the amount of system resources required (disk space, etc.) and keep the system running smoothly, old data that is no longer used (but may be required for future reference) is moved into an archive file.

2 System Analysis

2.1 Systems Analysis

Systems Analysis describes the process followed when replacing or upgrading a system with a computer-based one. The steps followed are:

  • Fact-finding
  • Feasibility study
  • Analysis
  • System design
  • Implementation
  • Testing
  • Documentation
  • Evaluation

Identification Of The Problem (Fact-Finding)

What exactly is/are the problem(s) that needs to be solved? How do we find out as much as possible about the present system? We need to do some fact-finding:

  • Interviewing people who work for the company
  • Questionnaires
  • Observation of people at work within the company
  • Inspecting documents that are used within the present system

Deciding And Stating Specific Desired Outcomes (Feasibility Study)

Before continuing with solving the problem identified, it is important that it will be worthwhile. The feasibility Study, and the resulting Feasibility Report, will give an idea of:

  • A brief description of the business and the sections which will be affected
  • A description of what the system is required to do ( objectives )
  • Some early system designs to allow estimations of time and cost
  • Details of why some designs were chosen , and some rejected
  • Approximately how long the project will take
  • Approximately how much it will cost
  • Cost / benefit analysis detailing whether the solution will save money or not
  • Plan of further action
  • Conclusions as to whether to continue, and if so, how

Based on the contents of the study and report, the company will decide if they are going to proceed with the project.

Analysing The Flow Of Information And Data In Existing Solutions and

Evaluation Of Existing Solutions

If the project is to continue, then a much more detailed look at the business and its systems is required. Data will be collected and analysed thoroughly to aid in the design of a replacement system. In particular this stage will provide:

  • Charts and diagrams of the present system, and the proposed new system (structure diagrams, data-flow diagrams, etc.)
  • Detailed objectives for the new system
  • Details of exactly which parts of the old system will be replaced
  • Constraints of the new system (things it will not be able to do)
  • An updated cost / benefit analysis
  • A new plan for further action (including timing, responsibilities, etc.)

Consideration Of Alternative Solutions

Designs will need to be produced including:

  • Required outputs (documents, reports, etc.)
  • Required inputs (data, method of entry, validation, etc.)
  • File / database design (number of tables, links between them, etc.)
  • Hardware configuration (computers, networks, printers, etc.)
  • Software required (operating systems, application packages, custom written, etc.)

A solution will need to be selected, based on the objectives that were set: Which solution fulfils all of the objectives?

Implementation

This can be done in one of three ways:

Direct implementation the new system simply replaces the old one. Only suitable for small systems Phased implementation parts of the old system are slowly replaced by the new one, taking time to make sure each bit works before the next is begun Parallel running the new system runs alongside the old one to check it works as well. When all problems have been solved, the old one stops.

Testing

We must ensure that any new system functions as expected, both in normal use, and when potential problems arise. We test the system with:

Normal data to see if correct, expected results are achieved Data with errors to check that our validation and error-checking routines Large amounts of data to ensure that the system can cope with high loading Rare / uncommon events like yearly reports, just to see that they work as expected Extreme data to make sure that validation works, and calculations cope with the large / small values

Documentation

There are two main type of document that are required:

User documentation explaining how to use the new system (a user guide) Technical documentation to allow people to alter / upgrade the system in the future

Evaluation

Finally, the new system has to be assessed. Did it meet its objectives? Ask the new users!

Explaining How Hardware Needs Arise From The Output Required

Any software system will need some hardware to run on. The configuration of the hardware is dependent upon:

Outputs required items like printers, monitors, loudspeakers, etc. will be required depending on the output of the system Processing needs a modern computer will have a processor running at about 3GHz. That's a lot of processing power! If less speed is required, money can be saved Environment Certain items of hardware are suited to certain workplaces (e.g. extra-rugged keyboards for factories) Space available some hardware (e.g. flat-screen monitors) is very space efficient Cost s hardware costs very greatly. A CRT monitor is much cheaper than a flat-screen one.

Algorithm Tools

Top-down design a software problem is solved by breaking it down into smaller and smaller modules, until each of these is easy to solve, and write software for. The final solution is formed by joining the modules together. Usually represented using a structure diagram. Structure diagrams (see Section 3.2 below) Flowcharts (see Section 3.2 below) Menus these are an effective way of breaking up a software task. The user has menu options, each of which is handled by a separate bit of the software (like the top-down structure) Libraries of subroutines Many common software problems have been solved already, and you can buy in libraries of software modules that can be 'glued' together to form an application

Interpreting And Testing Algorithms

You should be able to work out the purpose of an algorithm and to suggest and apply suitable test data.

Valid data data that tests the normal operation of the algorithm (e.g. if entering test scores, your test data could include 0%, 20%, 56%, 89%, 100%) Extreme data including values that are at the limits of the expected input (e.g. 0% or 100% for exam result, or a text string that is the Abnormal data data that may be valid, but is not usual (e.g. all test scores 0%, or all 100%, or no test scores at all) Invalid data this includes data that is not of the correct type or format (e.g. text into a number field)

3.2 Programming

The Concept Of A Program

A computer program is a collection of commands that the computer is to follow. The main requirements of a programming language are:

  • To allow manipulation of data of various types and structures
  • The control of inputs and outputs
  • To provide for selection and repetition (see below)
  • To allow links between subprograms

Sequence Following one command by another by another, etc.

i.e. Instruction 1 Instruction 2 the computer executes each instruction in order Instruction 3 etc…

Selection The computer is given a question as then performs different tasks based on the answer i.e. Has something happened?

Yes No

Instruction 1 Instruction 1 the instructions that are executed depend Instruction 2 Instruction 2 answer to the question etc… etc…

Repetition Following the same group of commands over and over again (loop) The loop may go on forever (infinite loop) or may stop due to a certain condition (conditional loop) i.e.

Instruction 1 Instruction 1 Instruction 2 an infinite loop Instruction 2 a conditional … … loop Stop now? No

Low-Level Languages

Low level languages are close to the actual language that computers use (machine code)

  • Hard to program in
  • Most common is assembly language
  • An assembler converts assembly language into machine code

Variables

Within any computer program, data needs to be stored whilst it is being processed. We store it in special locations in memory called variables (their contents can change, so they are 'variable'!)

  • Variables have names – pick names based on what you want to store (e.g. 'score')
  • They can store different types of data: numbers, text ('strings'), etc.
  • You can use variables within calculations (e.g. 'total = score1 + score 2')
  • The content of a variable can be set (e.g. 'Set score to 0', or 'score = 0')

Flowcharts

These diagrams show the flow of our program (the order that instructions are executed)

  • The start and end of the program is shown as a 'sausage'
  • Any tasks that are just simply executed are shown in rectangles
  • Inputs and outputs are shown in parallelograms
  • Places where a decision is made ( selection ) are shown using diamonds
  • Places where files are saved to or read from disk are shown using cylinders
  • When files are master files or transaction files , they are shown as reels of tape
  • Places where print-outs are generated are shown as a piece of paper
  • Arrows join the symbols together

Pseudocode

This is a way of describing an algorithm (or program) using words. It is an alternative to a flowchart, and is often easier to write, and more understandable, since it is close to English.

  • Words are close to English
  • Uses some standard words for program structures such as loops (see below)
  • Indentation is used to highlight the structure of the code
  • Inputs and outputs are shown using the words Input ( data ) and Output ( data )
  • Mathematical operations can be written in words (e.g. 'Add 6 to score')

Start

Instruction

Question

File

File

Print-out

Add Score to Total

In/Out

Output "Enter score"

Input Score

Was Score = 0?

Start

Output Total

Start

Pseudocode Structures

There are several standard pseudocode structures that are commonly used:

Input ( variable ) Gets data from the user and stores it in the variable

Output ( variable / "text" ) Prints the contents of the variable, or the text on the screen for the user to see

Repeat ... Until Repeats the instructions between the 'Repeat' and 'Until' lines until a condition is met e.g. Repeat Output ( "Please enter a score:" ) Input ( score ) Until score equals 0

If ... Then ... Else ... Endif Allows for selection or decision-making. A condition is tested and if it is true then one set of commands is executed, else if it is false another set is executed. e.g. If Score is greater than 60% Then Output "You have passed. Well done!" Else Ouput "You have failed. Sorry!" Endif

Case of ... Otherwise ... Endcase If you want to have different things happening depending on the value of a variable. e.g. Case of score is greater than 70 Output ( "You have an A" ) score is greater than 60 Ouptut ( "You have a B" ) score is greater than 50 Output ( "You have a C" ) Otherwise Output ( "You have failed" ) Endcase

While ... Do ... Endwhile This is another form of loop (like Repeat…Until) except that this one keep going whilst a condition is true , and the condition is checked before the loop starts e.g. Set count to 10 While count is greater than 0 Do Output ( count ) Take 1 away from count Endwhile Output ( "Blast off!!!" )

4 Generic Software And The Organisation Of Data

4.1 Generic Software

Word-processing (e.g. Word)

  • Letters, etc. can be typed
  • Full control over font, font size, styles , etc.
  • Most WP applications also include some graphics and DTP functions
  • Has resulted in many people doing their own typing, making office staff redundant

Database management (e.g. Access)

  • From simple databases similar to card files ( flat databases ) through to complex databases, with many groups of data linked together ( relational databases )
  • A database consists of a collection of records which in turn are made up of fields
  • Database can be interrogated using queries
  • Can easily generate reports containing selected data

Spreadsheets (e.g. Excel)

  • Made up of individual cells which can contain data (number, text, etc.) or formulae
  • Allows complex and powerful calculations on collections of data
  • Can experiment with data values and see the results ( 'what-if' analysis )
  • A mathematical 'model' of a situation can be produced (e.g. company future profit)
  • Rows are numbered, columns are lettered, cells by letter/number (e.g. A3)
  • Formulae all begin with ' = '
  • Many built-in functions such as SUM, AVERAGE, etc.
  • Numbers can be formatted as currency, percentage, etc. (e.g. a cell containing 0. could be shown as $0.50, 0.5000, 5e-1, 50%)

Graphics (e.g. Photoshop)

  • Images can be produced from scratch, or photos manipulated
  • Effects can be added (e.g. blurring, colour alterations, etc.)
  • Input can be from a graphics tablet for more natural lines, etc.
  • Images can be exported into many file formats (e.g. GIF, JPEG, TIFF, etc.)

Communications (e.g. E-Mail, Internet)

  • Very quick delivery of messages
  • Used both across the Internet, and within businesses (internal e-mail)
  • Normal e-mail is text-based , but other files can be 'attached'
  • People now communicate more regularly since it is so easy, but are possibly less sociable since they now use the phone / meet less often (less human contact)

Multimedia Authoring

  • The production of CD-ROM / websites that include text, images, video, sound , etc.
  • Common applications are education, CAL, reference (encyclopaedia, etc.)

Data-logging

  • A computer uses sensors to detect events, etc.
  • Examples could be measuring traffic flow, science experiments, etc.
  • Data is more accurate than that taken by a person, and can be analysed instantly (graphs, etc.)

CAD

  • Products are designed on the screen rather than on paper
  • Much faster, and far more flexible than drafting designs by hand
  • The products sizes (dimensions) can be altered easily (no rubbing out!)
  • The product can be viewed from different angles with lighting effects, etc.
  • Some CAD systems allow products to be tested using modelling techniques, so that weaknesses can be found before anything is actually physically manufactured

Programming

  • Software can be produced using programming languages
  • Many modern programming languages are now so easy to use that applications can be produced in minutes

Desktop Publishing (e.g. Publisher)

  • Allows the user to layout text, images, etc. on the page with total flexibility
  • Items are placed in 'frames' which can be layered, moved, re-shaped, etc.
  • Authors can produce books that are fully laid out without the need for publishers
  • Anyone can easily make flyers, posters, etc.
  • Used to produce printed matter from labels to magazines
  • Has made publishers almost redundant as designers can now do every stage of the work, passing on the final files directly to the printers

Typical Problems Capable Of Solution By Packages

Many problems can be solved using generic software packages:

Small businesses accounts can be calculated using a spreadsheet, letters written using a word-processor, stock details kept using a database Schools / charities don’t need to employ expensive consultants to produce professional looking reports, posters, flyers, etc.

Use Of Standard Techniques Or Routines

Cut / copy / paste data can be easily moved between applications Mail-merge a standard letter can be sent to a number of people by merging a database of names and address with the letter template. Special codes in the template are replaced each time by the appropriate name / address Sorting of data a list of items (e.g. names) can easily be sorted into order Import / export of data Applications can save data in a format that is suitable for another application (export), or can open files that they wouldn't normally use (import)

4.2 Data

The Relationship Between Information And Data

Information is data that has been processed.

e.g. 234567 is simply data (a number) but it could mean many things – a membership number, a mathematical result, etc. Once it is given this meaning, it becomes information.

The Collection Of Data

There are many methods for collecting data for computer systems:

Questionnaires These can be closely matched to the on-screen computer form so the data from them is easily transferred, or… OMR forms where marks are made with a pencil (e.g. multiple choice test) and read into a computer by a special reader Bar-codes Bar-code readers can scan the codes in very rapidly, e.g. at a till in a store, or from books in a library Scanners Paper documents can be scanned into a computer. They become large, graphic images which can then be… OCR of documents (Optical Character Recognition) after text documents are scanned , the image file can be processed by software that recognises the shapes of the characters. Output is a text file containing the original text. Not always 100% right Sensors these can record things such as temperature, light levels, sound, etc. and the readings can be entered into a computer for logging and processing

Methods Of Ensuring Data Correctness

Data can be checked in two ways: validation (is it valid and logical?) and verification (is it correct?)

Data Validation

To ensure that the data being processed is accurate it must be checked to see that it makes sense. It is asking too much of a computer to check if it's true - somebody may just be lying! Certain validation checks can be carried out:

Range-check e.g. a driver's age should be between 17 and 99 Type-check e.g. a name should only contain alphabetic characters Format-check e.g. a data should be entered as dd/mm/yyyy Presence-check e.g. certain data must be entered (e-mail address) Checksum e.g. the numeric values in a file should always add up to a known amount Check-digit e.g. the last digit of an account number is calculated from the previous digits, and then recalculated on input to see if it matches

Data Verification

Once we know our data is valid (i.e. it is logical, and in the right format, etc.) then we also need to check if it is correct (it maybe a valid date-of-birth, but is it your date-of-birth?!)

Proof-reading the person entering the data simply reads through what they have entered to check it is correct Double-entry the data is entered twice , either by the same, or another operator. The computer compares the data, and any that doesn’t match is questioned.

The Coding Of Data For Input

Before data is entered into a computer system, it needs to be put into a suitable format:

  • Dates should all be of the same format (e.g. dd/mm/yy or dd/mm/yyyy)
  • Text that is to be entered into a database field may be limited to a certain number of characters (if your paper form is designed well with little squares for each letter so the user knows how much space they have, this will be easy)
  • Data from sensors needs to be converted into digital data for the computer

Storing Data In Files

Data, particularly data held in files, requires access in different ways depending on the particular application. Some applications require the data to be ordered in a particular way for processing, whilst some need the data to be very easily searchable for rapid access to specific items

The medium on which the data is stored, and particularly the way in which it is organised, depend on the requirements for access. You would not store a file on magnetic tape, if you needed quick access to any part of the data – it would take too long to find items.

Sequential access is the storage of data in a way that you can only read one item at a time (like recording a film on video tape – you have to work your way through the film from the start) A magnetic tape is a sequential access device. You read it from the start until you find the data you want, re-winding and starting again if you need to do another search Sequential indexed the file is still accessed sequentially, but each item of data has an index (a number or code to identify it). This index can be used to search for data more rapidly Random access any item of data can be accessed immediately. A hard drive is a random access device – you do not need to read all of the data from the start to get to a particular file, you simply jump straight to it.

Some common file processing:

Sorting the data on the file is arranged into a logical order (perhaps by numeric index, or alphabetically) Merging two files are combined , creating a new file. The data is often sorted at the same time so the two sets are mixed in the correct order