Software Process Model

    Software Process Model

    Reading Mode:

    Unit: 6

    Software Process Model (SPM)

    Grade XII | Computer Science | NEB

    Exam-focused notes with simple definitions, tables, examples and model questions.

    Exam pattern: This unit is a favourite for both short and long questions. The most repeated ones are: SDLC and its phases, feasibility study and its types, system analyst (roles and qualities), system design tools (DFD, ER diagram, decision table, etc.), types of implementation and maintenance, and the Waterfall, Prototyping, Spiral and Agile models.

    Contents

    1. Software project concept
    2. Software development process
    3. System Development Life Cycle (SDLC)
    4. Phase 1: System study
    5. Phase 2: System analysis and feasibility study
    6. Phase 3: System design and design tools
    7. Phase 4: System development
    8. Phase 5: System testing
    9. Phase 6: Implementation
    10. Phase 7: Maintenance and review
    11. System analyst
    12. Software development models
    13. Documentation
    14. Important exam questions
    15. Quick revision

    1. Software project concept

    TermMeaning
    InstructionA command given to the computer to perform a specific operation on given data.
    ProgramA set (sequence) of instructions written to perform a task.
    SoftwareA set of programs, procedures and related documents that tell the computer what to do and how to do it. It acts as the link (interface) between the user and the computer hardware.
    ProjectA well-defined task made up of several activities carried out to achieve a goal, within a fixed time and budget.

    Software project: A software project is the complete process of developing software, from identifying the requirements to testing and maintenance. It follows a chosen method and must be completed within a fixed time and budget to produce the intended software product.


    2. Software development process

    Definition: The software development process is the sequence of tasks that must be carried out to build new software. The work is grouped into phases.

    • A phase starts only after the previous phase is completed (in a sequential process).
    • At the end of each phase a report is prepared. It describes what has been achieved and gives the plan for the next phase.

    Four fundamental activities

    ActivityWhat it means
    1. Software specificationDecide what the software must do (functions) and the limits (constraints) it must work within.
    2. Software design and implementationDesign the software and write the programs so that it meets the specification.
    3. Software validationCheck that the software really does what the customer wants (testing).
    4. Software evolutionKeep changing the software to meet the customer's new needs.

    3. System Development Life Cycle (SDLC)

    First, three basic terms:

    • System: a set of interrelated components working together to achieve a common objective.
    • Development: the step-by-step process of building or improving a system.
    • Information system: a system that processes data and produces information that is useful for decision making.

    SDLC: The System (or Software) Development Life Cycle is an organised, step-by-step method of planning, creating, testing and deploying a system or software. It lists all the activities needed in a fixed order, from the first idea to maintenance.

    Importance (need) of SDLC

    1. It helps to find out the needs of the user.
    2. It keeps developer and user in constant communication.
    3. Missing requirements are identified easily.
    4. It ensures the software meets the user's needs.
    5. It supports proper analysis and design.
    6. It ensures proper development and testing.
    7. It provides documentation for future upgrade and maintenance.
    8. It allows new features to be added even after the software is developed.

    The seven phases of SDLC

    1. System study (Preliminary investigation)
            ↓
    2. System analysis (including Feasibility study)
            ↓
    3. System design
            ↓
    4. System development
            ↓
    5. System testing
            ↓
    6. Implementation
            ↓
    7. Maintenance and review
    
    PhaseMain work
    System studyUnderstand the present system and its problems
    System analysisCollect detailed requirements and check feasibility
    System designPlan how the new system will work (logical and physical design)
    System developmentWrite the programs and create the database
    System testingFind and remove errors
    ImplementationInstall the new system and train users
    Maintenance and reviewKeep the system working and up to date

    4. Phase 1: System study (Preliminary investigation)

    The organisation decides that it needs a computer-based system. The development team studies the present (manual or computerised) system and its drawbacks. The team does three main tasks:

    1. Survey the system by collecting information from different sources (users, managers, records).
    2. Study the current system in depth and think of possible solutions.
    3. Select the best solution and check, through a feasibility study, whether it can be done.

    5. Phase 2: System analysis and feasibility study

    System analysis means breaking a system into its parts to study how those parts work together. It focuses on the business problem, not on the technology.

    The development team goes back to the organisation and studies it in detail, collecting information from users, management and data-processing staff. The system analyst then prepares the specification of the new system:

    1. Goals and objectives of the proposed system
    2. Fundamental actions the software must perform
    3. Outputs to be produced
    4. Inputs to be used
    5. Processes to be performed
    6. Interfaces to be provided
    7. Performance requirements to be met
    8. Organisational and other constraints

    Feasibility study

    Feasibility study checks the proposed system from different angles to find out how practical and useful it will be, and whether it is worth developing. It is done before system design.

    Need of a feasibility study

    • It checks whether the system meets the client's goals.
    • It shows the strengths and limitations before development starts.
    • It defines the boundary (scope) of the system.
    • It can suggest new opportunities.
    • It gives quality information for decision making.
    • It provides documentation of the investigated system.

    Types (levels) of feasibility

    TypeWhat it checks
    EconomicIs it cost-effective? Compares development and operating cost with the benefits (cost-benefit analysis).
    TechnicalAre the required hardware, software and technical skills available?
    OperationalWill the system work smoothly in daily operation? Will users be able to use it?
    BehaviouralHow will users and society react? Some employees resist change to a new system.
    Schedule (time)Can the project be completed on time? Splits the project into tasks and estimates the time for each.
    LegalDoes the system follow the law (copyright, tax, trade and other laws)?

    Some books also list social feasibility (will people accept it?) and management feasibility (will management accept it?). Learn the six above first, and add these two if your teacher asks for them.


    6. Phase 3: System design and design tools

    System design plans how the new system will work. It includes the design of input, output, files (database), processing and the general program design. It has two parts:

    Logical designPhysical design
    MeaningThe theoretical design of the system based on the requirements: what the system will do.Converting the logical design into detailed, technical form: how the system will do it.
    LevelGeneral and simpleDetailed and technical
    Tools usedContext diagram, DFD, ER diagramAlgorithm, flowchart, pseudo code, decision table, decision tree

    System design tools

    Tools used to design a system during analysis and design are called system design tools.

    1. Algorithm

    An algorithm is a finite sequence of steps (instructions) for solving a problem.

    Example: decide Pass or Fail

    1. Start
    2. Read marks
    3. If marks are 40 or more, print "Pass", otherwise print "Fail"
    4. Stop

    2. Flowchart

    A flowchart is the picture (diagram) form of an algorithm. It is of two types:

    • System flowchart: shows how data moves between the main components of a system (people, files, programs, reports).
    • Program flowchart: shows the step-by-step logic of one program to solve a problem.
    Symbol shapeNameUse
    OvalTerminalStart or end
    RectangleProcessCalculation or action
    ParallelogramInput / OutputReading or printing data
    DiamondDecisionYes/No question with two ways out
    CircleConnectorJoins parts of a flowchart
    ArrowFlow lineShows direction of flow

    3. Pseudo code

    Pseudo code is an algorithm written in simple English-like statements, mixed with programming-style keywords. It is not tied to any particular language.

    START
      INPUT marks
      IF marks >= 40 THEN
          PRINT "Pass"
      ELSE
          PRINT "Fail"
      END IF
    STOP
    

    4. Data Flow Diagram (DFD)

    A DFD is a logical diagram that shows how data flows between the parts of a system. It is easy to understand and shows the system more clearly than a long written description.

    ComponentSymbolMeaning
    ProcessCircleWork done on the data (for example, "Issue membership")
    Data storeOpen-ended rectangle (two parallel lines)Place where data is kept (a file or database)
    Data flowArrowMovement of data, with a label
    External entityRectanglePerson or organisation outside the system that sends or receives data

    5. Context diagram

    A context diagram is the highest-level (Level 0) DFD. It shows the whole system as a single process (one circle), with the external entities (rectangles) around it and arrows showing the data flowing in and out. Other DFDs (Level 1, Level 2) break this one process into smaller processes.

    Example: Library membership

                     Membership application
       [Applicant] ─────────────────────────▶ ( Library Membership
                                                  System )
       [Applicant] ◀───────────────────────── (            )
                        Membership card
    

    6. ER diagram (Entity Relationship diagram)

    An ER diagram shows the logical structure of a database using pictures. It is mainly used to design databases.

    ComponentSymbolExample
    EntityRectangleCustomer
    AttributeEllipse (oval)CustomerID, Name
    RelationshipDiamondPurchase
    LinesStraight linesConnect entities, attributes and relationships

    7. Decision table

    A decision table shows conditions and the actions to take for each combination of conditions, in table form.

    Example: a student is eligible for the exam if attendance is at least 75% and marks are at least 40.

    R1R2R3R4
    Conditions
    Attendance ≥ 75%?YYNN
    Marks ≥ 40?YNYN
    Actions
    Eligible✔
    Not eligible✔✔✔

    Parts of a decision table: condition stub (list of conditions), condition entries (Y/N values), action stub (list of actions), action entries (which action to take for each rule).

    8. Decision tree

    A decision tree shows the same conditions and actions in the shape of a tree.

    Attendance >= 75% ?
    ├── Yes → Marks >= 40 ?
    │          ├── Yes → Eligible
    │          └── No  → Not eligible
    └── No  → Not eligible
    

    9. CASE tools

    CASE (Computer-Aided Software Engineering) tools are computer programs that help in the work of software development. They help in analysis, design, coding, testing and maintenance. They are fast and especially useful for large projects.

    10. UML

    UML (Unified Modeling Language) is a standard modelling language with a set of graphic notations used to draw visual models of software, especially object-oriented software. It is maintained by the Object Management Group (OMG).


    7. Phase 4: System development

    The logical and physical design is converted into a working system:

    1. The design (flowcharts, algorithms, pseudo code) is converted into programs using a suitable high-level language.
    2. The database is created.
    3. User (operational) documents are written.
    4. Users are trained.
    5. The internal documentation of the system is prepared.

    8. Phase 5: System testing

    Testing is the process of checking the software to find errors and to confirm that it works as the user expects. It gives stakeholders information about the quality of the product and the risks of using it.

    White box testingBlack box testing
    IdeaTester can see the internal code and logicTester cannot see the code; only inputs and outputs are checked
    What is testedLogical paths, conditions and loops inside the programWhether the software gives correct output for given input
    Also calledStructural / glass box testingFunctional testing
    MethodsTesting all paths, conditions and loopsEquivalence partitioning, boundary value analysis
    Done byUsually programmersUsually testers or users

    9. Phase 6: Implementation

    Implementation means putting the tested system into real use. It includes installing the system, changing over from the old system to the new one, training users and solving any problems found in testing.

    Types of implementation (conversion)

    TypeHow it worksSpeed / costRisk
    DirectThe old system is stopped and the new system starts at once.Fast and cheapHighest risk
    ParallelOld and new systems run together until the new one works smoothly.Slow and costlySafest
    PhasedThe new system is introduced part by part (module by module). Works only if the system can be divided into parts.MediumLow risk
    PilotOne site or department uses the new system first; then the whole organisation switches.Takes more timeLow risk, good for big organisations

    10. Phase 7: Maintenance and review

    Maintenance starts after the system is implemented. Like any machine, a system gets old and needs regular care of both hardware and software. A review checks the objectives achieved, cost, performance, standards, and gives recommendations.

    Types of maintenance

    TypePurpose
    CorrectiveFixes errors (bugs) found while the system is running.
    AdaptiveChanges the system to suit a new environment or adds new features.
    PerfectiveImproves the system's performance and makes it more up to date, which increases its life.

    11. System analyst

    System analyst: A system analyst is a person who studies, designs, implements and evaluates computer-based information systems to support the decisions and operations of an organisation. He or she studies the problem, finds the objectives and decides the procedure to achieve them. The analyst works as a link between users and programmers.

    Qualities (skills) of a good system analyst

    1. Knowledge of and commitment to the organisation
    2. People (interpersonal) skills
    3. Conceptual (thinking) skills
    4. Technical skills

    Characteristics (attributes)

    1. Knowledge of the organisation
    2. Technical knowledge
    3. Interpersonal and communication skills
    4. Character and ethics
    5. Problem-solving skill, in five steps: define the problem, analyse the problem, think of many alternatives, evaluate the alternatives, choose the best alternative
    6. System analysis and design skills

    Roles of a system analyst

    RoleMeaning
    Change agentHelps the organisation accept and adopt change.
    Investigator and monitorFinds facts about the existing system and watches progress.
    ArchitectDesigns the structure of the new system.
    PsychologistUnderstands the needs and feelings of users.
    MotivatorEncourages users and team members to accept and use the system.
    Intermediary (diplomat)Acts as a link between users, management and programmers.

    Duties and responsibilities

    1. Defining requirements
    2. Prioritising requirements
    3. Analysis and evaluation
    4. Solving problems
    5. Preparing the functional specification
    6. Designing the system
    7. Evaluating the system

    12. Software development models

    A software process model is a framework that shows the order of activities used to develop software. Different models suit different projects, and the system analyst chooses the one that best fits the project.

    12.1 Waterfall model

    The Waterfall model is the oldest model. It is linear and sequential: work flows downward from one stage to the next, like a waterfall, and each stage is completed before the next begins.

    Requirements analysis and definition
            ↓
    System design
            ↓
    Development (coding)
            ↓
    Integration and system testing
            ↓
    Operation and maintenance
    
    StageWork done
    Requirements analysis and definitionFind the actual requirements of the problem.
    System designDivide the requirements into hardware and software parts and design the system.
    DevelopmentConvert the design into programs.
    Integration and testingJoin the program units and test the complete system.
    Operation and maintenanceInstall the system; correct errors found later and add improvements.
    AdvantagesDisadvantages
    Simple and easy to understandNo going back; hard to change earlier stages
    Suitable for small projects with clear requirementsNot suitable for large projects or changing requirements
    Less expensiveWorking software appears only at the end
    Each stage has clear results and documentsErrors found late are costly to fix

    12.2 Prototyping model

    The Prototyping model builds a small working sample (prototype) of the system first. It is used when the user does not have a clear idea about requirements, inputs and outputs. The prototype is improved again and again until the user is satisfied.

    Steps

    1. Identify user needs: the analyst talks to the user to learn the basic requirements.
    2. Develop a prototype: a quick, simple working model is built.
    3. User evaluation: the user tries the prototype and gives feedback.
    4. Refine the prototype: the prototype is modified using the feedback. Steps 3 and 4 repeat until the user is satisfied.
    5. Final system: the accepted prototype becomes (or is used to build) the final system.
    AdvantagesDisadvantages
    Users understand the system betterMay lead to a "build and fix" way of working
    Errors are found earlyScope may grow beyond the original plan, increasing complexity
    Quick user feedback gives better solutionsCan take more time and cost if users keep changing demands

    12.3 Spiral model

    The Spiral model shows the process as a spiral with many loops, not as a straight line. It combines ideas of the Waterfall and Prototyping models and adds risk analysis. It is meant for large, costly and complex projects. Each loop starts near the centre and moves outward as the project grows and matures.

    Each loop (cycle) has four parts:

    PartWork done
    1. PlanningSet the objectives, find alternatives and limits for this loop; plan the next phase.
    2. Risk analysisStudy each identified risk in detail and take steps to reduce it. For example, if the requirements are unclear, build a prototype.
    3. Engineering (development)After the risks are evaluated, choose a development model and build and test that part of the product.
    4. EvaluationThe user evaluates the result. The project is reviewed and a decision is made whether to continue with another loop.
    AdvantagesDisadvantages
    Strong risk handlingRisk analysis needs skilled experts
    Good for large and complex projectsCostly and complicated to manage
    Changes can be added in later loopsNot suitable for small projects
    Users see the product early and oftenSuccess depends heavily on risk analysis

    12.4 Agile software development

    Agile development is a method based on iterative and incremental development. The software is built in many short cycles (often 1 to 4 weeks). Requirements and solutions grow through close teamwork between self-organising, cross-functional teams and the customer.

    Key ideas

    • Small working parts of the software are delivered frequently.
    • The customer takes part throughout the project.
    • Changes in requirements are welcomed, even late in development.
    • Individuals and teamwork are valued more than rigid process and heavy documents.
    AdvantagesDisadvantages
    Quick delivery of working softwareHard to predict final cost and time
    Easily adapts to changeNeeds constant customer involvement
    Customer feedback at every cycleLess documentation may cause problems later
    Suits small and medium projects and fast-changing needsNeeds experienced, well-coordinated teams

    Comparison of the four models

    ModelBest used whenMain feature
    WaterfallRequirements are clear and fixed; small projectLinear, one stage after another
    PrototypingRequirements are unclearBuild a sample, improve with feedback
    SpiralLarge, risky, complex projectRepeated loops with risk analysis
    AgileRequirements change often; fast delivery neededShort cycles, teamwork, customer involvement

    13. Documentation

    Documentation is the process of collecting, organising, storing and maintaining a complete record of the system and of the documents prepared during all phases of the life cycle.

    It includes the software requirement specification, feasibility report, design report, description of input, output and processing, source code with comments, manuals, guides and help desk support.

    Internal documentationExternal documentation
    Used bySystem analysts and programmersEnd users
    Used whenDuring development and later for modification and maintenanceWhile running and using the software
    ContentsSource code comments, design documents, flowcharts, program descriptionsUser manuals, guides, help files, tutorials
    PurposeHelps understand how the software is builtHelps understand how to use the software

    14. Important exam questions

    Try each question yourself first, then check the hint.

    Q1. What is SDLC? Explain its phases. (6 marks) Define SDLC, then explain the seven phases in order using the table in Section 3 and the details in Sections 4 to 10. Draw the phase flow if time allows.

    Q2. What is a feasibility study? Explain its types. (5 marks) Define it and write the need. Explain economic, technical, operational, behavioural, schedule and legal feasibility in one or two lines each.

    Q3. Who is a system analyst? Write his or her roles and qualities. (5 marks) Use Section 11: definition, skills, six roles and key duties.

    Q4. Differentiate between logical design and physical design. (3 marks) Use the table in Section 6.

    Q5. Explain the Waterfall model with its advantages and disadvantages. (5 marks) Draw the five-stage flow, describe each stage briefly, then give two advantages and two disadvantages. Do the same for the Prototyping and Spiral models.

    Q6. Differentiate between Waterfall and Prototyping (or Spiral) model. (4 marks) Compare: flow of work, user involvement, handling of changes, risk, suitable project size.

    Q7. Explain the types of implementation (conversion). (4 marks) Direct, parallel, phased, pilot, each with one line on how it works and its risk or cost.

    Q8. Explain the types of maintenance. (3 marks) Corrective, adaptive and perfective, with the purpose of each.

    Q9. Differentiate between white box and black box testing. (3 marks) Use the table in Section 8.

    Q10. Write short notes on: (a) DFD (b) ER diagram (c) Decision table (d) Context diagram (e) Documentation. (2 to 4 marks each) Give the definition, components or symbols, and a small example where possible.

    Q11. What is documentation? Explain its types. (3 marks) Define it, then explain internal and external documentation.

    Q12. Why is SDLC necessary? (3 marks) Write any four points from "Importance (need) of SDLC" in Section 3.


    15. Quick revision

    TermOne-line meaning
    SDLCStep-by-step method of developing a system, from study to maintenance
    Feasibility studyChecking whether a proposed system is practical and worth building
    Logical designWhat the system will do (theory)
    Physical designHow the system will do it (technical detail)
    DFDDiagram showing the flow of data in a system
    Context diagramLevel 0 DFD with the whole system as one process
    ER diagramDiagram of entities, attributes and relationships for a database
    Decision tableTable of conditions and actions
    White box testingTesting with knowledge of internal code
    Black box testingTesting only inputs and outputs, without seeing the code
    Direct / Parallel / Phased / PilotThe four types of implementation
    Corrective / Adaptive / PerfectiveThe three types of maintenance
    WaterfallLinear, one stage after another
    PrototypingBuild a sample first, improve with feedback
    SpiralRepeated loops with risk analysis
    AgileShort cycles with customer teamwork
    Internal / External documentationFor developers / for users

    Prepared for Grade XII Computer Science (NEB). Always cross-check with the latest syllabus and textbook issued by the Curriculum Development Centre (CDC).