Professional Documents
Culture Documents
229752058 ھندسة البرامجیات
229752058 ھندسة البرامجیات
SOFTWARE ENGINEERING
:
Software
. High Level Language
) (Software Crisis
Hardware .
Software :
-1 .
-2 .
-3 .
-4 ) (Software Engineer .
: Software Engineer
-1 ) ( Computer Sciences ,Information Technology
.
-2 ) (.
-3 .
:
:
-1 JAVA C# C++
Oracle . SQL server
-2 Compilers .
-3 .
:
:
=
Private
Sub
TextBox13_KeyPress(ByVal
sender
As
Object,
ByVal
As
e.Handled = True
ElseIf s(x) = "*" Then
a = s.Substring(0, s.IndexOf("*"))
b = s.Substring(s.IndexOf("*")+1, s.Length _ - s.IndexOf("*") -1)
c = a * b
TextBox13.Text += "=" + c
e.Handled = True
ElseIf s(x) = "/" Then
a = s.Substring(0, s.IndexOf("/"))
b = s.Substring(s.IndexOf("/")+1, s.Length _ - s.IndexOf("/") -1)
c = a / b
TextBox13.Text += "=" + c
e.Handled = True
End If
Next
End If
Catch ex As Exception
MessageBox.Show("" , "" ,
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
:
:
) Generic Programs -1 (
Word
.
) Bespoke Programs -2 ( Customized
.
.
-1 : Time :
- .
- .
- .
-2 : Quality :
- : Customer :
.
& Dependability & Reliability (Security
) Safety .
) ( .
) Maintainability
.....
- : User :
.
.
.
- : Developer Or Software Engineer
:
.
. Design
.
.
.
:
) (
-1 .
-2 .
-3 .
-4 Usability .
Imports System.Data.oledb
Me.Hide()
bool = True
Timer1.Enabled = False
End If
Loop
If bool = False Then
i -= 1
If i = 0 Then
MessageBox.Show("" ,
""!! , MessageBoxButtons.OK, MessageBoxIcon.Warning)
Application.Exit()
Else
MessageBox.Show("
& " i & " " , ""!! , MessageBoxButtons.OK,
MessageBoxIcon.Information)
TextBox1.Clear()
TextBox2.Clear()
End If
End If
read.Close()
cn.Close()
End Sub
"
If timer = 0 Then
Application.Exit()
End If
End Sub
:
Tools
Methods
Developments Process
Focus on Quality
:Tools -1 :
Software -
Hardware -
:Software
.
:
Display
Note
GoTo
. GoTo
Example
Process of Data
Basic ,C
By Line
Pascal
Turbo GoTo
T C++,T B
Procedure or
,T Pascal
Function
source . exe
GoTo
.
____
.
V C++
OOP(Object
,V Basic
Oriented
,.Net
)Programming
Prolog
By Logic
: Hardware .
:Methods -2
.
: Development Process -3
.
: Focus on Quality -4
.
:
IEEE
.
:
-1 : Confidentiality
.
-2 : Competence .
-3 .
-4 : Computer Misuse .
: :
:
:Hardware Reliability -1
.
:Software Reliability -2
.
:Operator Reliability -3 .
:
.
.
Movement Sensors
Door Sensors
Controller
Center
Telephone Caller
Siren
Voice Synthesizer
External control
Imports System.Media
Public Class Form1
Dim snd As New SoundPlayer("c:\bassam ring1.wav")
'
Event Hot()
'
Private Sub danger() Handles Me.Hot
'
Timer1.Enabled = False
snd.Load()
'
snd.Play()
'
Panel1.Visible = True
Label1.Visible = True
'
Label1.BackColor = Color.Red
Me.Enabled = False
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
Dim rnd As New Random()
Dim par As Byte = rnd.Next(0, 70)
ProgressBar1.Value = par
Me.Text = par
If par > 50 Then
RaiseEvent Hot()
'
End If
End Sub
End Class
:
:Process Change -1
: Job Change -2
.
:Organization Change -3
.
" ".
:System Engineering Process
Requirement
Definition
System
Decommissioning
System
Design
System evolution
and operation
System
Installation
Sub System
Development
System
Integration
)
(
System Design
...
:
Partition
Requirements
Define
Sub_System
Interfaces
Specify
Sub_System
Identity
Sub_System
Assign
Requirements to
Sub_System
:Partition Requirements -1
.
:Identity Sub_System -2 .
:Assign Requirements to Sub_System -3
.
:Specify Sub_System -4
.
:Define Sub_System Interfaces -5 .
:
: ""
'
unused")
s = ""
Next
End Sub
used")
ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)
End If
End Sub
End Class
:Software Process
:
: HW .SW
:
:.HW
: Waterfall Model
.
Requirement
Definition
System and
Unit Design
Implementation
and Unit Testing
Integration
and Testing
Operation and
Maintenance
: COS :
: -1
Imports System.Drawing
Imports System.Drawing.Drawing2D
:( )sin -2
Imports System.Drawing
Imports System.Drawing.Drawing2D
: :
:
Concurrent Activities
Initial Version
Specification
Intermediate
Versions
Development
Final Version
Validation
Development
.
.
: : Incremental Development
Develop System
Increment
Incomplete System
Assign Requirements
to Increment
Validate
System
Design System
Increment
Integrate System
Increment
Define
Requirement
Test
Increment
Final
System
:Define Requirements .1 .
:Design System Increment .2 ) (.
:Assign Requirements to Increment .3 )
(.
:Develop System Increment .4 ) (.
:Test Increment .5 .
:Integrate System Increment .6 .
:Validate System .7
:Final System .8 .
.
:
2
Y=X
Imports System.Drawing.Printing
Imports System.Drawing.Drawing2D
Public Class Form1
Dim p1 As Integer = 0
Dim p2 As Integer = 0
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Timer1.Tick
Dim gr As Graphics = Me.CreateGraphics
Dim toDegree As Single = -22 / 7 / 180
gr.ScaleTransform(0.5, 0.5)
If p1 < 820 Then
gr.DrawEllipse(Pens.Black, 100, p1, 1, 1)
gr.DrawEllipse(Pens.Black, p1, 200, 1, 1)
End If
p1 += 1
If p1 < 720 Then
If ListBox1.SelectedIndex = 0 Then
gr.DrawEllipse(Pens.Red, p1 + 100, CInt(Math.Sin(p1 * toDegree) * 100 + 200), 1, 1)
ElseIf ListBox1.SelectedIndex = 1 Then
gr.DrawEllipse(Pens.Red, p1 + 100, CInt(Math.Cos(p1 * toDegree) * 100 + 200), 1, 1)
ElseIf ListBox1.SelectedIndex = 2 Then
gr.DrawEllipse(Pens.Red, p1 + 100, CInt(Math.Tan(p1 * toDegree) * 100 + 200), 1, 1)
ElseIf ListBox1.SelectedIndex = 3 Then
gr.DrawEllipse(Pens.Red, p1 + 100, CInt(1 / Math.Tan(p1 * toDegree) * 100 + 200),
1, 1)
ElseIf ListBox1.SelectedIndex = 4 Then
For Each l As Control In Controls
If TypeOf l Is Label Then l.Visible = False
Next
gr.DrawEllipse(Pens.Red, p1 + 100, CInt(-p1 ^ 2 * 0.05 + 200), 1, 1)
p2 -= 1
gr.DrawEllipse(Pens.Red, p2 + 100, CInt(-p1 ^ 2 * 0.05 + 200), 1, 1)
End If
End If
End Sub
: : Spiral Development
Analysis
Risk
Object for Determine
Prototype
Review
Simulation
Plan to Next Phase
Development
:Object Determine .1
.Review
:Analysis .2
Prototype
.
:Simulation .3 ) (
.
:Development .4 .
:Plan to Next Phase .5
.
.
Architectural Design
.
Structural System Models .A ) (.
Control Models .B .
Modular Decomposition .C .
Source
Program
exe.file
Code Generation
Code
Creator
Optimization
Code
Analysis
Intermediate
Code
Semantic
Analysis
Syntax
Analysis
Lexical
Analysis
Symbol Table
:Source Program -1 .
:Analysis-2 :
:Lexical Analysis for if.
:Syntax Analysis Symbol Table
Fore for
.C++
:Semantic Analysis If True False
for Symbol Table.
) .Symbol Table
:Code Generation -3 :
:Intermediate Code
.
Communication Server
Client2
Network
FTP Server
Internet Sever
Control Models B :
.
:
:Centralized .A :
.i
:Manager
:
Camera
Sensor
Center Manager
Telephone
Alert
.ii
!!!! L
:
Main Program
Routine1
Rou ne2
Rou ne4
Rou ne5
Rou ne3
:Events Based .B
:
.i
:Real Time
.
.ii
:Procedural
)
par (.
Modular Decomposition C :
:Object Oriented Programming (OOP) .A .
:Data Flow Model .B .