Algorithms_an_Programming
Algorithms_an_Programming
• largest_number = 2
• Compare 7 with largest_number:
Type: Variables have types that define what kind of data they can store. Common data types include:
• Integers (int): Whole numbers.
• Floating-point numbers (float or double): Numbers with fractional parts.
• Characters (char): Single text characters.
• Strings: Sequences of characters (handled as arrays of chars in C or as a distinct type in other languages).
• Booleans (bool): True or false values.
Value: The actual data stored in the variable. This value can change during the execution of the program, hence the
name "variable."
Scope: The region of the program where the variable is accessible. For example, a variable declared inside a function
is local to that function and not accessible outside it.
Lifetime: The duration for which the variable exists in memory. For example, local variables typically exist only during
the execution of a block of code in which they are defined.
Example in Context:
• if isRaining:
• print("Bring an umbrella.")
• else:
• print("No need for an umbrella.")
Loops:
Data structure:
• An Array is a data structure that can hold multiple values of the same type,
arranged in a list that can be indexed. It's like a row of storage boxes where each
box holds a value, and each box is identified by an index or position number.
• Uniform Data Type: All elements in an array must be of the same data type (e.g.,
all integers, all floats, etc.).
• Indexed Access: Each element in the array can be accessed using its index,
starting from zero. For example, the first element is at index 0, the second element
at index 1, and so on.
• In Python, a list is a versatile data structure that allows you to store a sequence
of values. Unlike arrays in some other programming languages, lists in Python
can contain elements of different data types, and they are dynamic, meaning
their size can change.
Key Features of Python Lists:
• Dynamic Size: Lists can grow or shrink in size as needed. You can add or
remove elements after the list is created.
• Mixed Data Types: Lists can store elements of different types simultaneously,
such as integers, strings, floats, or even other lists.
• Indexed Access: Similar to arrays, elements in a list can be accessed using
their index, with indexing starting from 0.
Software/ System
Development Cycle
• ISO/IEC 12207
Chapter 5
Analysis
• Feasibility study
• Resource planning
• Defining scope
• Function requirements
• Technical requirements
• Set objective and Goals
Design
• Physical design
• Coding
Implementation
• Hardware interface
• Integrated testing
• Parallel run
• Go-live
• Review
Maintenance
• Preventive maintenance
• Corrective maintenance
AGILE MODEL
• The meaning of Agile is swift or versatile. “Agile
process model” refers to a software development
approach based on iterative development. Agile
methods break tasks into smaller iterations, or
parts do not directly involve long-term planning.
• Plans regarding the number of iterations, the
duration and the scope of each iteration are
clearly defined in advance.
• Each iteration is considered as a short time
“frame” in the Agile process model, which
typically lasts from one to four weeks.
Thanks…………..