Thursday, 26 April 2018

CLASS: SS2 TOPIC: FLOW CHART WEEK 6

CONTENT A flow chart helps in showing the sequence of different approaches in solving a problem. Flow chart is very concise in nature. It identifies steps needed in solving a problem and shows these steps with connecting lines and arrows to indicate the order in which the steps are performed. FLOWCHARTING SYMBOLS INPUT/OUTPUT FLOW LINES HARD DISK PROCESSING SYMBOL DECISION BOX FLOPPY DISK FOW CHART CONNECTOR MERGE COLLATE EXTRACT TERMINA SYMBOL SORT DISPLAY DESCRIPTION OF EACH SYMBOLS Input symbol means the feeding of data and output symbol means print out of the data or display on computer screen. Note: we can print the value of ‘a’ after feeding the values of ‘b’ and ‘c’ FLOW LINES: Flow lines are used to connect various symbols i.e. it shows the flow of logics. PROCESSING SYMBOL: Represents the processing of data DECISION BOX: False(No) IS A1 > A2 True(Yes) Here A1 represent area of a rectangle and A2 represent area of a square. The decision symbol defines logical operation with the result of decision (with true / false or Yes/ No). CONNECTOR SYMBOL Connector symbol is used for the purpose of junction. Sometimes the flow chart can’t be completed on a single page and it requires two or more pages, then the connector symbol is used to indicate another page. PREPARE/ INITIALISE These symbols are used to initialize constants and variables that will be used by the program. A flowchart always starts with START and ends with STOP as shown in examples below. Flowchart to calculate and print 60% of 450 Naira

CLASS: SS2 WEEK/PERIOD FIVE/1ST & 2ND LESSON TOPIC/TITLE ALGORITHM AND FLOW CHART

CONTENT To make a computer do anything you have to write a computer program. To write a computer program you have to tell the computer, step by step exactly what you want it to do. Definition An Algorithm can be defined as the set of rules and sequential steps that define how a particular problem can be solved in finite and ordered sequence. An Algorithm written in a computer is called a program. Simply speaking an Algorithm is called the heart of programing. An Algorithm describes a method by which a given task is accomplished. A Flow Chart is the pictorial representation in which symbols are used to show the various operations and decisions to be followed in solving a problem. FUNCTIONS OF ALGORITHMS An Algorithm generally takes some input, carries out a number of effective steps in a finite amount of time, and produces some output CHARACTERISTICS OF ALGORITM 1. UNAMBIGUOUS: It should state clearly what each line of the Algorithm does 2. DEFINITE AND EFFECTIVE: This implies the successful termination of the program. Thus every Algorithm should have the following characteristics 1. Input 2. Output 3. Definiteness 4. Effectiveness 5. Termination An Algorithm uses the words BEGIN start and END to end BEGIN(start of algorithm) Step1 Step2 Step3 …………. ………….. Step n END(END OF ALGORITHM) An algorithm to print ten odd numbers Input : the start number Output: First ten odd numbers STEPS: 1. Let the first number be n 2. n =1 3. Print n 4. Count c =1 5. Add 2 to n 6. Add 1 to c 7. Is c > 10 : Go to step 5 8. Stop 9. End algorithm An algorithm to print average of given sets of numbers Input: read the value of n where n is the total numbers we have Output: the average of numbers STEPS: 1. Read n 2. I =1, sum =0 3. If i>n go to 9 4. Read the value of X 5. SUM =SUM +x 6. I =I +1 7. Go to 3 8. Average = SUM/ n 9. Print Average 10. End

CLASS: SS2 WEEK:FOUR LESSON TOPIC: PROGRAM DEVELOPMENT II

CONTENT NOTE: PLS TAKE NOTE THAT SPACES SHOULD BE LEFT THE SAME WAY IT IS HERE Program development can be divided into several stages which are shown in the diagram below 1. Problem definition: This stage is the formal definition of task. It includes the specification of inputs and outputs processing requirements, system constraints( execution time, accuracy, response time), and error handling method 2. Problem Analysis: This step is the process of becoming familiar with the problem that will be solved with a computer program. The process ends when all the programmers’ questions have been resolved and requirement of the program are understood. 3. Flowcharting: ones the overall problem has been identified, the next stage of software development is program design. The programmer must decide, prior to writing his program, exactly which steps should the computer takes to solve an identified problem. This should be envisioned as a step by step procedure. The resulted diagram is called a flowchart 4. Desk Checking: Another way of testing the logic of a program is to carry out desk- check that is executing the statements of algorithm yourself on a sample data. 5. Program coding: The next step is the process of transforming the program logic design into a computer language format. This stage translates the program design into computer instructions. 6. Program compilation: in general the compiler will go through a few steps: a) Lexical Analysis: making sure all the symbols in the source code are legal and turning them into tokens for the next step b) Syntactic analysis: analyse the tokens, ensuring they follow the rules of the language grammar c) Code generation: uses syntax to create some form of intermediate language, often times assembly language d) Code optimization 7. Program Testing and Debugging: This stage is the discovery and correction of programming errors. Few programs run correctly the first time, so debugging is an important and time consuming stage of software development. Testing stage is the validation of the program. Testing makes sure the program performs correctly the required task. 8. Program Documentation: this stage is the documentation of the program so that who use and maintain it can understand it, so that program can be extended to further applications. A compiler: A compiler is a computer program or sets of programs that translates text written in a high level language( source Language) into another computer language (the target language) source code source w/substitution Flow diagram of a compiler An Interpreter: An interpreter is a computer program that executes other programs. This is in contrast to a compiler which does not execute its input program. exter A flow diagram of an interpreter Examples of Interpreted Languages are BASIC, COBOL Compiled languages are C, ALGOL, Visual Foxpro etc.

CLASS: SS2 WEEK 3 TOPIC: Program Development

An organized list of instructions that, when executed, causes the computer to behave in a predetermined manner is called a program. There are many programming languages --C, C++, Pascal, BASIC, FORTRAN, COBOL, and LISP are just few. These are high level programing languages. We also have low level language called assembly languages and machine language. Eventually, every program must be translated into machine language that the computer understands. This translation is done by a compiler, interpreters, and assembler. When you buy software, you normally buy an executable version of program. This means that the program is already in machine language i.e it has already been compiled and assembled and it’s ready to execute. CHARACTERISTICS OF A GOOD PROGRAM: 1. Accuracy: program should be sufficiently accurate to get the desired result 2. Simplicity: program logic should be as simple and uncomplicated as possible 3. Testability: place test points in the program 4. Efficiency: design program to use the least amount of primary storage and fewest devices possible. 5. Flexibility: account for all possible varieties of data input and processing conditions 6. Generality: Design the program to be generalized and flexible. PRECAUTIONS IN PROGRAM DEVELOPMENT There are certain precautions that one should take during the development of a program. These are: 1. Patience: one should be patient enough and should not rush during programming process 2. Step following: All the steps of a program should be followed religiously without skipping of steps 3. Execution order: The order of execution of instructions should be followed 4. Fresh mind: one should be sufficiently fresh to work on a program

CLASS: SS2 WEEK: TWO LESSON TOPIC/TITLE: SYSTEM DEVELOPMENT CYCLE II

I. Preliminary study: Is the first stage of system development life cycle. This is the brief investigation of the system under consideration and gives a clear picture of what actually the physical system is. In practice, the initial system study involves the preparation of a ‘System Proposal’ which list the problem definition, objectives of study, Terms of reference for study etc. II. Feasibility study: In case the system proposal is acceptable to the management, the next phase is to examine the feasibility of the system. The feasibility study is basically the test of the proposed system in the light of its workability, meeting user’s requirements, effective use of resources and of course, the cost effectiveness. III. Detailed system study/ Investigative study: This involved detailed study of various operations performed by a system and their relationship s within and outside the system. Data are collected by interview, questionnaire and on site observation. IV. System analysis: system analysis is a process of collecting factual data , understand the process involved, identifying problems and recommending feasible suggestions for improving the system functioning. V. System design: Based on the user requirements and the detailed analysis of the existing system, the new system must be designed. VI. Implementation: After having the user acceptance of the new system developed, the implementation phase begins. Implementation is the stage of a project during which theory is turned into practice. VII. Maintenance: Maintenance is necessary to eliminate errors during its working life and to tune the system to any variations in it working environments. VIII. Study review: Review activities occur several times throughout this phase. Each time the system is reviewed, one of the following decisions will be made: • The system is operating as intended and meeting performance expectation • The system is not operating as intended and needs correction and modifications • The users are/ are not satisfied with the operation and performance of the system.

CLASS:SS2 WEEK: ONE LESSON TOPIC/TITLE Computer Data Conversion 1

Content: Definition: The System Development life Cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project from an initial feasibility study through maintenance of the completed application. Various SDLC methodologies have been developed to guide the process involved including the waterfall model (the original SDLC method), rapid application development (RAD), joint application development (JAD), and the fountain model and spiral model. Description A Systems Development Life Cycle (SDLC) has three primary objectives: ensure that high quality systems are delivered, provide strong management controls over the projects, and maximize the productivity of the systems staff. In order to meet these objectives the SDLC has many specific requirements it must meet, including being able to support projects and systems of various scopes and types, supporting all of the technical activities, supporting all management activities, being highly useable, and providing guidance on how to install it. The technical activities include: system definition (analysis, design, coding), testing, system installation, production support. The management activities include: setting priorities, defining objectives, project tracking and status reporting, change control, risk assessment etc SYSTEM LIFE CYCLE System Life cycle is an organization process of developing and maintaining systems. It helps in establishing a system project plan, because it gives overall list of processes and sub processes required for system developing. STAGES OF SYSTEM DEVELOPMENT LIFE CYCLE: The following are the different stages of system development life cycle I. Preliminary study II. Feasibility study III. Detailed system study/ Investigation study IV. System analysis V. System design VI. Implementation VII. Maintenance VIII. Study review

CLASS ; SS1 WEEK/PERIOD SIX LESSON TOPIC/TITLE; WORD PROCESSING

CONTENT Definition: Word processing is the art of using computer to type and edit text and graphics in letters, reports, term papers etc. To perform word processing you need a computer set and software called word processor. Word processor enables you to create letter, term paper, newsletter, memo etc and stores those documents electronically on a disk or open the document for editing or printing. Examples of word processor 1. Word perfect 2. Word star 3. MS-Word 4. Loco Script 5. Ami-Pro 6. Word Craft FEATURES OF A WORD PROCESSOR Any word processor can perform the following operations; 1. You can paste document images pictures etc as many times as possible 2. Copy, duplication of an item 3. Search and replace: you can easily search for word and replaced it with another word 4. Printer can be used to print a hard copy of the document. Word processing has so many advantages over manual type writer as itemized below: 1. The use of computer allows for a neat job 2. Correction can be easily done without hassles 3. It allows mail merging operation 4. It gives to print as many copies as possible 5. Text can be formatted to suit the user taste 6. COPY AND PASTE: This feature let you copy data from any source to the clipboard and then paste them anywhere you want 7. PRINT PRIEVIEW: You can easily view your work to know how it will appear when printed.