Docsity

163-Assignment 1- pass score, stydu guide, project, Schemes and Mind Maps of Javascript programming

Partial preview of the text

Download 163-Assignment 1- pass score, stydu guide, project and more Schemes and Mind Maps Javascript programming in PDF only on Docsity!

Bachelor’s Science in Computing

ASSIGNMENT 1 LOG BOOK

LE T. MIN

University of Greenwich

Software Development Life Cycle

MSc. Phan M. Tam

June 18, 2023

Ho Chi Minh City, Vietnam

Table of Contents

DESCRIBE TWO ITERATIVE AND TWO

SEQUENTIAL SOFTWARE LIFECYCLE

MODELS

1. INTRODUCTION TO SDLC

1.1. Definition of SDLC

Software Development Life Cycle is referred to as SDLC. It is a methodical approach to creating software that entails a number of phases or stages, each with its own particular set of tasks and outputs. The objective of the SDLC is to guarantee that software is created effectively, promptly, affordably, and in accordance with the demands of the stakeholders and end users. Figure 1: SDLC (Source: www.testingdocs.com) The SDLC's usual phases consist of:

  • Planning: This stage entails establishing the project's parameters, setting its goals, and figuring out the resources required.
  • Analysis: The software requirements are obtained, examined, and recorded at this step.
  • Design: The software architecture is planned and constructed during this stage, etc.
  • Testing: The software is tested during this stage to make sure it complies with the requirements and standards.

2. Two sequential software lifecycle models

2.1. Waterfall model

2.1.1. Definition

With the waterfall model, software development is approached in a linear and sequential manner, with the development process's progress flowing slowly downhill like a cascade. One of the earliest and most popular approaches for software development exists today. Figure 2: Waterfall model (Source: Study.com) The waterfall model contains a number of discrete phases, each of which needs to be finished before continuing. These are the phases:

  • Requirements: This stage involves gathering and studying the software's needs. This entails determining the requirements of the end users and stakeholders as well as any restrictions or limits that could have an impact on the development process.
  • Analysis design: The system's general architecture, user interface, and any additional components required to satisfy the criteria are all planned during this stage.
  • Implementation: Based on the design parameters, this step entails the actual coding and development of the program.
  • Verification: After the software is created, it is put through a rigorous testing process to make sure it complies with the needs and standards. System testing, integration testing, and unit testing are all included in this.
  • Deployment: The program is put into use by end users after being successfully tested and put into the production environment.
  • Maintenance: Lastly, throughout time, the program is kept up to date by making essential bug fixes, feature additions, and update requests. The waterfall model is frequently represented as a linear flowchart, where each step is connected to the one before it. It is challenging to return after a phase has ended and make modifications without upsetting the entire process. Since it can be challenging to accept changes in requirements or design specifications after the development process has started, this paradigm is frequently criticized for its rigidity and lack of adaptability. The waterfall paradigm is still extensively employed in some situations, especially in projects where the requirements are clear and stable and the development process is somewhat predictable, despite its drawbacks.
2. 1 .2. Advantages

When it comes to software development, the waterfall model is a popular option since it provides a number of benefits:

  • Clear and well-defined needs: Projects where the requirements are clear and well- understood are best suited for the waterfall paradigm. The reason for this is that the whole project is planned out before construction ever starts, making sure that everyone knows exactly what to anticipate.
  • Simple to comprehend and manage: Because each phase must be finished before going on to the next, the waterfall model's linear and sequential character makes it simple to comprehend and manage. This aids in ensuring that the project stays on course and that everyone involved is aware of what has to be done.
  • Suitable for small projects: For small projects with clearly defined needs and a clear scope, the waterfall approach may be a good fit. In these situations, the linear and sequential aspect of the model can aid in making sure that the project is finished on schedule and on budget.
  • Limited customer involvement: During the development phase, the waterfall approach does not allow for much client input or feedback. As a result, the finished product can fall short of the client's or end users' demands or expectations. Overall, the waterfall model can be less suitable for complex or large-scale software development projects where requirements are likely to change over time. In such situations, more flexible and iterative models like Agile may be more appropriate.
2 .1.4. When to use

For software development projects when the requirements are clearly stated, consistent, and unlikely to change dramatically over the life of the project, the waterfall approach works best. Additionally, it works effectively for small to medium-sized projects where the scope is clear and the budget and timetable can be forecast quite accurately. The following are some circumstances in which the waterfall model may be suitable: Projects with clear and well-defined requirements: The waterfall model is well-suited for projects where the requirements are clear and unlikely to change significantly over the course of the project. This is because the entire project is planned before development begins, ensuring that everyone involved has a clear understanding of what is expected.

  • Projects with a fixed scope: The waterfall model is best suited for projects with a fixed scope that is well-understood. This helps to ensure that the project stays on track and that everyone involved is clear on what needs to be done.
  • Small to medium-sized projects: The waterfall model can be well-suited for small to medium-sized projects that have well-defined requirements and a clear scope. In such cases, the linear and sequential nature of the model can help to ensure that the project is completed on time and within budget.
  • Projects with stable technology: The waterfall model may be appropriate for projects that use stable and well-understood technology. In such cases, the development process is less likely to be disrupted by changes in technology or tools. In conclusion, projects with well-defined, steady requirements and a clear scope are best suited for the waterfall paradigm. The development process has to be more flexible and adaptable for complicated or large-scale projects where requirements are likely to alter over time.
2.1.5. Some examples of projects that are not well-suited for the waterfall model

For software development projects that require a high level of complexity, uncertainty, or change, the waterfall approach might not be the best option. Here are a few projects that might not work well with the waterfall model:

  • Projects with evolving requirements: When needs are anticipated to vary dramatically over a project, the waterfall paradigm is not recommended. In these circumstances, a paradigm with greater flexibility and adaptation, like Agile, may be more suitable.
  • Innovative or experimental projects: The waterfall model may not be ideal for projects that use novel or unproven technologies or methods since the requirements and design criteria may not be completely understood or may be susceptible to change.
  • Large-scale projects: Given that the requirements and design specifications may be intricate and flexible, the waterfall paradigm may not be ideal for large-scale software development projects. In these circumstances, a more adaptable and iterative paradigm like Agile would be more suitable.
  • Projects with high levels of uncertainty: For projects with a lot of uncertainty, such research and development projects or initiatives that include a lot of risk or unknowable variables, the waterfall approach might not be the best option.
  • Collaborative projects: The linear and sequential character of the waterfall approach may make it challenging to incorporate feedback and input from many sources, making it unsuitable for projects that call for a high level of cooperation and communication between multiple stakeholders. In summary, the waterfall model may not be well-suited for projects that involve high levels of complexity, uncertainty, or change. In such cases, a more flexible and iterative model like Agile may be more appropriate.
2.1.6. Example of a project that would be well-suited for the waterfall model

Assume a business decides to create a straightforward mobile application so that clients may order its items. The scope of the project is restricted to developing the app itself, and the requirements for the app are clear-cut and well-defined. The business has a distinct vision for the app's appearance and functionality, and it doesn't anticipate substantial changes to either throughout the development stage. In this case, the waterfall model would be well-suited to the project. The project can be broken down into distinct phases, such as requirements gathering, design, development, testing, and

Figure 3: V-model (Source: www.professionalqa.com) The many stages of the V-Model are as follows:

  • Requirements Design: During this stage, the client or end-user is contacted to get the software's needs. This stage is crucial because it establishes the framework for the remaining stages of development.
  • System Design: The requirements are examined in this stage, and a system design is created. A high-level architecture, interfaces, and data structures are all included in the system design.
  • Module Design: Each module is carefully planned during this step, which involves segmenting the system design into smaller modules. The module's algorithms, data structures, and interfaces are all part of the module design.
  • Implementation: Each module's code is written and tested during this stage. Coding, bug- fixing, and unit testing are all part of the implementation phase.
  • Unit testing: Each module is individually tested during this stage to make sure it complies with all specifications and functions as intended.
  • System testing: During this stage, the complete system is examined to determine whether it satisfies the specifications and operates properly in the intended setting.
  • Acceptance Testing: The system is tested by the client or end-user at this phase to make sure it satisfies their needs and is prepared for deployment.
  • Integration Testing: During this stage, each module is assembled and tested as a whole to make sure it functions properly as a whole. The V-model is a helpful paradigm for software development because it highlights the value of testing at every stage of the process. Testing at every level of development helps to identify issues early, which cuts down on the time and money needed to rectify them.
2.2.2. Advantages

Using the V-Model in software development has a number of advantages, such as: Improved quality: The V-Model strongly emphasizes testing throughout the development process, which enables the detection and correction of faults early in the development cycle. This results in software of higher quality that better satisfies end-user needs and lowers the possibility of product flaws.

  • Clear and Structured Process: The V-Model offers a clear and structured process for developing software, assisting in ensuring that all necessary processes are carried out in the proper order. This lessens the chance of skipping important phases or committing errors that could result in delays or problems in the finished product.
  • Reduced costs: The V-Model can assist in lowering the expenses related to repairing flaws later in the cycle or after deployment by identifying and fixing mistakes early in the development cycle. For businesses, especially those operating in sectors where reliability and safety are crucial, this can result in significant cost savings.
  • Improved Communication: The V-Model places a strong emphasis on the value of collaboration and communication among developers, testers, and end users. By doing this, you can make sure that everyone is on the same page and that the finished result is what the end consumers are looking for.
  • Better Risk Management: The V-Model offers a systematic approach to software development that makes it easier to recognize and manage risks as they arise. By doing this, businesses may reduce risks and head off any issues in the future.
2.2.4. When to use

The V-Model is best suited for software development projects where safety and reliability are critical, such as in the aerospace, defense, or medical device industries. It's also well-suited for projects that have well-defined requirements and where the cost of failure is high. Here are a few situations where the V-Model may be a good fit:

  • Safety-Critical Systems: The V-Model is ideal for developing software that will be used in safety-critical systems, such as airplanes, medical devices, or nuclear power plants. In these industries, any failure can have serious consequences, and so a highly structured approach is necessary to ensure that the software meets the required safety and reliability standards.
  • Large and Complex Projects: The V-Model is also appropriate for large and complex software development projects with well-defined requirements. The model's emphasis on testing and quality assurance ensures that all aspects of the software are thoroughly tested and meet the end-user's needs.
  • Regulated Industries: The V-Model is often used in regulated industries, such as healthcare or financial services, where compliance with industry standards is required. The model's emphasis on testing and documentation helps ensure that all regulatory requirements are met.
  • Mission-Critical Systems: The V-Model is also appropriate for developing software for mission-critical systems, such as military or space applications. In these applications, any failure can have serious consequences, and so a highly structured approach is necessary to ensure that the software meets the required standards. Overall, the V-Model is best suited for projects where safety and reliability are critical, and where a highly structured approach to software development is necessary to ensure that the software meets the required standards.
2.2.5. Example of a project that would be well-suited for the V model

The creation of software for a medical device is a task that would work well for the V-Model. Medical equipment must adhere to rigid safety and dependability criteria, and any malfunction could have major negative effects on patients. To make sure that the software complies with the

necessary standards, it is essential that the V-Model places a strong emphasis on testing and quality assurance throughout the whole development cycle. In the V-Model, obtaining requirements from the medical professionals who will use the device and making sure the software complies with all regulatory standards would be part of the requirements gathering phase. The creation of the device's high-level architecture, user interfaces, and data structures would be part of the system design phase. The system would be divided into smaller modules during the module design phase, and each module would be meticulously designed. Coding and unit testing each module to make sure it functions properly would be done during the implementation phase. During the period of integration testing, every module would be put through its paces to make sure it functions properly as a whole. The complete device would be tested during the system testing phase to make sure it complies with all applicable regulations and operates properly in the intended setting. Medical experts would examine the gadget in the last stage of the acceptance testing process to make sure it satisfies their standards and is prepared for deployment. Overall, as the V-Model places a strong emphasis on testing and quality assurance, which guarantees that the device satisfies the necessary safety and reliability criteria, it is well suited for the development of software for medical devices.

2.2.6. Example of a project that would be non-well-suited for the V model

The development of a mobile application for a startup business is a project that might not be a good fit for the V-Model. Mobile app development is typically fast-paced and requires constant iteration and flexibility to ensure that the app meets changing user needs and market demands. The V-Model's highly structured and sequential process may not be flexible enough to address changing requirements or unexpected issues that arise during app development. Additionally, the V-Model's emphasis on testing and quality assurance throughout the development cycle may not be as critical for a mobile app that is not safety-critical or mission-critical in nature. An fast development approach can be better appropriate for creating mobile apps. Agile approaches place a strong emphasis on adaptability, iterations, and ongoing user feedback, all of which are essential for creating mobile apps that satisfy both user and market demand. Continuous testing and quality assurance are permitted by agile approaches as well, which can aid in spotting and fixing issues early in the development cycle.

3. Two iterative software lifecycle models

3.1. Incremental Development

3.1.1: Definitions

Incremental development is a software development approach that involves breaking down a large project into smaller, more manageable pieces, called increments. Each revision, which has its own requirements, design, development, testing, and deployment, is a full subset of the final product. Each increment builds on the one before it and adds additional functionality to the finished product. The increments are created and released one at a time. The incremental development methodology offers greater adaptability and flexibility than conventional software development approaches. By employing an iterative process for software development, it enables the development team to react to altering requirements and user input. The development team may also give the most vital features and functions the highest priority and deliver them first, guaranteeing that the most crucial components of the product are accessible to consumers as soon as feasible. Figure 4: Incremental Development (Source: Wikipedia) Software creation approaches, like Scrum, frequently employ incremental development. The development team works in brief iterations or sprints to progressively create usable product. In alternative software development approaches, such as the Spiral model, where each iteration

comprises a risk analysis and planning phase, followed by the creation and testing of a usable software increment, the methodology is also employed. In general, incremental development is a method of creating software that makes it possible to create complicated software products by dividing them into smaller, easier-to-manage portions and releasing them gradually.

3.1.2. Advantages

As a method for software development, incremental development has various benefits, such as:

  • Flexibility: Compared to traditional software development approaches, incremental development offers for greater flexibility and adaptability since each increment may be modified and improved in response to end-user input or changes in requirements.
  • Early Delivery of Working Software: Compared to traditional software development methods, incremental development enables the development team to provide functioning software increments early in the development process.
  • Risk Mitigation : Since each increment is tested and improved upon before going on to the next, incremental development helps the development team to detect and minimize risks early in the development process.
  • Improved Collaboration and Communication : Since each increment is designed and delivered in close consultation with end users and other stakeholders, incremental development enhances collaboration and communication between members of the development team and stakeholders.
  • Prioritization of Features: By using incremental development, the development team is able to rank the most significant features and functions, making the most crucial components of the product as soon as possible accessible to consumers.
  • Faster Time-to-Market : Incremental development enables the development team to produce functional software increments more quickly than conventional software development methodologies, decreasing time-to-market and allowing the business to react more swiftly to changing market conditions. Incremental development is a common method for software development overall because of its benefits, especially with agile approaches like Scrum. Development teams may be more adaptable,