You are on page 1of 27

MR/M.

ISMAIL


MR/A.SHEHATA

2
5


.

.
.

-1



-4

-2

-3
) ,
,

-6

-5


"


:Algorithm
0
,
, .


) ( 1 0


) - ( .

INTER PRETER

COMPILER



) ( ,





) (
.

2
5

: ) ( ) ( :
(1
(
)
.
(2
(
)
.
(3 Visual Basic

(4
(
)
.
(5 .

(6
(
)
.
(7 .

(8 .

(9 .

(10 .

(11 ).(5 1

(12
(
)
.
(13
(
)
.
(14 ) (Visual Basic.Net .

(15 .


(16

(17 .

(18 .

(19 .

(20
.

: :

-1
(.............................. ) .
-2 .
) (..............................
2
5

-3 .
) (..............................
-4
.......... .
-5 ).(0 1
) (..............................
-6

)(......................

.................. -1
.
-2 ................... . ....................
-3 .................
-4 ................... . ..............
-5 . ....................
-6 ...................
.
-7 ..................
.
................... -8
.
-9 . ...................
.................... -10
.
-11 ...................
.
...............
-12
.

-1 .
-2 .
-3 .


-1
-2

2
5

-:
(
)

)

(.
) ( .
.
.
) ( .


2
4 1 2
.


-1

-2

B D C E F
-3
) (
-4 ).
(
-5 ) (


) f=(e)-(a+b+c+d
(F= 50 ( 2*3+4*1+2*1+1*3 35


Flowchart
.

.... ...

-:

2
5

) Terminal (
/ Input / Output

Start \ End
\ Input
Output

/ Process

Processing

/ Decision
Flow line


-1
-2 .

-3 /
-4
.
-5

-6
.
-7 .


-1 :
-2 :
-3 :
-4 :
-5 :
-6 :

-1 : .
-2 :
.
2
5

-3 : .
-4 :
.




number1 number2
result

number1/ number2= result



Algorithm






number1/ number2= result













) (35



2
5

) !!!

(
** **

Getup

Yes

Isit6
?O'clock

No

Isit6.30

Gotoschoolonfeet

Yes

?O'clock

No

) ( TokTOk

Takeataxi

Takeabus

A !!!!

rrivetoschool

) ( ) ( :

-1 .
(
)
2
5

-2
(
)
.
-3
(
)
.
-4 .
(
)
-5 .
(
)
-6 .
(
)
-7 .
(
)
-8 .
(
)
-9 .
(
)
-10 .
(
)
-11 .
(
)
-12 .
(
)
-13 .
(
)
-14 .
(
)
-15 .
(
)
-16 .
(
)
-17 .
(
)

: .

.
-
0
-
0
-
0
-
- 0

2
5

: .

: Pseudo code

.
Pseudo code )false
(code

.
Pseudocode

Words
Clauses
Statements

.
.

Pseudocode

Sequence
Selection
Iterations

.Simple
.No special symbols
.No specific syntax
.

* .

2
5


-1
.
Start

-Input Hanys age and Heshams age 1


If Hanys age > Heshams age Then -2
Print Hany is elder
Else
If Hanys age = Heshams age Then
Print Both is equal
Else
Print Hesham is elder
End If
End If
Stop processing -3

If
>A
B

Print
a

Print
B
end
-2
0

) (
Number "Number1" 1-Input ( Read ) The First
Input ( read ) the second number2 Then-2
If the value of number1= that of number2 Then-3
"Print "Division is impossible because number2 is zero
Go to step4
Else
Result = number1/number2
Print number1, number2 and result
End If
. stop processing-4

) ( :
" : , ,
, , ,
, ,
, ,
"

2
5

) ( ) ( :

-1 .
)

-2 .
)

-3 .
)

-4 .
)

-5 .
)

-6 .
)

-7 .
)

-8 .
)

-9 .
)

-10 .
)

: :

-1
.................. .
) (
) (
-2 .............. .
-3 ............... .
) (
-4 . ...................
) (
-5 .............. .
) (
-6 . ...............
)(Print If then else For next
-7 If . ...................
)(None False True
2
5

-8 IF True . ................
)(If Then Else
-9 . ..............
) (

)C, BASIC,
(FORTRAN,COBOL

. ) (OOP
) (User ) (Event
.

Object

).(Objects

) (Properties ) (Methods ) (Events )


(Object ). ( Class
) (Object ) (Objects
. ) (Windows .

pen

Properties

Computer

window

.
: :
Methods

).(Object
.

: ) (Object) BMW1 (ObjectName )


(Property ).(Method
)(Events

.
) (Object ) (Events
.
:
.
2
5

Events

):(Value
) :(Property
) :(Object
) :(Methods
) :(Event

):(Class

)(Object

) (Class
).(Class

) (

. Class
Object
) (Class ). (Object

(Properties )(Methods
)
) (Class


) (Events .


).(Object Properties



.....

.

) (Class ) (Derived ) (Inherit
) (Base
.

) (Classes
.



.

2
5

) ( ) ( :

-1 ) (Class ).(Object
(
)
-2 .
)
-3 ) (Methods.
-4 ).(Event
(
)
-5 .
)
-6 .
)
-7 .
-8 ) (Class .
(
-9 .
(
-10 ) .
)
-11 .

)
(
(
)
(
(
(
)
)
(
(

: :
................... -1 .

-2 ................... .

-3 . .............. ............ ...........
................ -4 .

................... -5 .

-6 ................. .

............... -7 .

-8 . ....................

-9 . .....................
. ................
-10
-11 . ...................

................. -12 .

................. -13 .

-14 . ..................
..................... -15 .
-16 ................ ) (Class ) (Child ).(Parent

: :
2
5

)(Object Event Method Class Encapsulation Inheritance


-1
-2
-3
-4
-5
-6
-7

. .....................
. .....................
. ...........
. ................
. ..................
. ....................
.............

-8 ................... ).(Class

)(Object- Clas - Property - Method - Event - Encapsulation Inheritance

IDE

) ( Visual Basic I D E
) V.B
( Projects
) ( V.B Projects .

2
5

.1
.2
.3
.4
.5
.6

- :Form Designer ).(Form


- :Editor .
) -:( compiler Basic Visual .
) -:( Debugger .
- :Object browser ).(Object classes methods events
) -:( Help .

) ( Visual Basic . Net

Start Programs Microsoft Visual Basic 2005


IDE .

) New
-: ( Project

File . New Project Create Project Recent


. Project
) ( New Project ) . ( Visual Basic
-1
-2 ) ( Windows ) . ( Project Types
-3 ) ( Windows Application ) . ( Templates
-4 . New :
-5 . OK

IDE
) ( 1 -: Toolbar
) . ( Menu Commands
) ( 2 -: Form Designer
) ( .
) ( 3 -: Solution Explorer
) ( Classes .
) ( 4 -: The Properties Window ) ( Objects
.
) ( 5 -: Toolbox
) ( Controls .

. ( File )

-1 ) Save All
.(Save project
-2 . ) . ( Save

-1


2
5

F5 .

Start
-2 2- My Document -1:
.

" " User Interface



.1 . V.B.N
.2 File New Project Create New Project 0
.3 Windows Application 0
-4 Form 0
-5 Button Toolbox 0
-6 Back Color 0
-7 Fore Color 0
-8 Text " "WELCOME

) ( ) ( :

-1 Start page .

-2 Getting starting .

-3 Form Form1 .

-4 Solution Explorer ) .

-5 " "Toolbox .Controls

IDE -1 . ......................
Integrated Development Environment -2 . ..................
-3 ............... "."Form
.................... -4 .
2
5

-5 IDE . ...................
-6 Start Page . ...................
-7 File . ....................
.................. -8 .
-9 ................... .
-10 ................. .
-11 ..............
.
-12 Save all . ....................
-13 Form . ........................
-14 ..........
-15 ) ( Build ..........
-16 Text Button ................... . .....................
-17 Toolbox . ........................

-1 . ................ Start Page


)?(Recent projects Starter kit How do I ..
-2 Start page . ..............
)(View File Debug
-3 . .........
) ( F8 F4 F5
-4 Form . ...............
)(Properties Solution explorer Start page
-5 Button . .................
) (Start page Date
-6 Text Button . ..................
) (

: :

(
2
5

Toolbox -1
Data -2
Properties -3
Solution explorer -4
Editor -5

-1
-2
-3
-4

) ( V.B :
) ( 1 )-: ( Windows Form
) ( IDE )( Windows Form
.

) ( 2 ) -: ( Button
: . Button
:
. Button
: Button ) ( Object ) ( Properties


) ( Action

) ( Property




) ( True )( False

Back Color
Background Image

2
5

Enabled
Font








) ( True )( False

Fore Color
Image
Image Align
Name
Text
Text Align
Visible

) : ( Events ) ( Button ) . ( Click Event

) : ( Event Handler

) ( Button .
( 3 ) -: ( Label
:

.
: .
( 4 ) -: ( Text Box
:

.
: Text Box

-1 .
-2 Text Box
) ( scroll bar .
- Text Box .

Focus
Key Press


0

Focus 0

) ( ) ( :

-1 Form.
-2 Form .
(
-3 .Font
-4 Text .
(
-5 Toolbox .

2
5

-6 Enabled=false .
(
-7 ImageAlign .
-8 Visible .
(
-9 Text .Label
(
-10 .Button
-11 )( .
-12 .
-13 .
: ) ( )(:
)(
Form -1
Forecolor -2
Backcolor -3
Enabled -4
Text -5

)
)

)
)
)
)

(
(
(
(

)
)

)(
-1
-2
-3 True False
-4
-5
-6

-1
Autosize -1
-2
Font -2

-3 Borderstyle -3

-4
Image -4

-5
TextAlign -5

-6 ImageAlign -6 .

) (
-1 . ..................

) (

-2 ............... .

-3 Textbox (Cut Clear Copy) . ...........

-4 Textbox . .............

)(Text AppendText Cut

-5 Textbox (SelectAll Paste Copy) . ..............


-6 Textbox . ..................
)(AppendText Clear Undo
-7 Textbox (Paste Copy Clear) . ..............

-8 . ................
2
5

)(Text SelectedText SelectionStart

-9 . ...............
)(SelectedText SelectionStart TextAlign
-10 . ................
)(SelectedText SelectionStart SelectionLength
-11 )(TextAlign TextLength Text
-12 (WordWrap Text TextAlign)..........

: :

)(Backcolor Enabled Visible Text Image Click False


-1 ............ .Button
-2 Button . .............
-3 Button . ..........
-4 ............ .
-5 ........... ............
.

: ) ( ) ( :
-1

-2
.
-3 Visual Basic
.

-4
.
-5 .
-6 .
-7 .
-8 .
-9 .
-10 .
-11 .
-12
.
-13 .
-14 IF
True . False
-15
.
-16 If False
. True
2
5

-17 )( .
-18 ) (Class .
-19 ). (Object

-20
.

-21 .
-Compiler22 V.B .
-23 Editor
.
-24 Clear . Text Box
-25 Read Only True
. Text Box
: :
............-1 .
............-2
. Algorithm

-3 .......... .......
-4
..........
-5 ............
-6 .................................

-7 ............ .
-8 :
Object Name............ =......................
...........-9
.
-10 . Object Name ........... .
-11 ............
.
............-12
.
-13 .............
.
-14 ......... V.B
Classes .
........-15
.
-16
...... .........
-17 Visual Basic
............
-18 ......... .
-19
..........
........-20
.
-21 .......... .
-22 .......... TextBox . Clipboard
-23 ...........
Focus
2
5

: :
-1 .
-2 .
-3 .
-4
). (1 0
-5
.
-6 TextBox . Clipboard
-7
.
-8 Class
.
-9 .
-10 .
-11 .
-12 . TextBox
-13 .
-14 .
-15 . TextBox

:
-1

2-

3-

-4

5-

6-

-7

8-

9-

-10

11-

12-

-13

14-

15-

-16

17-

18-

-19

20-

21-

23-

25-

-22

24-

-2
-1
-3
.
-4
-5
True
False

-7

-6 .
Properties
-9 Events
Value = Properties -8
-11 Inheritance
Method -10
-13
-12 Toolbox
Form designer
-15
-14 Solution Explorer
Toolbar
17- Build
Toolbox View -16
2
5

TextAlign -18
Label -20
Cut -22

19- MsgBox
21- ImageAlign
23- Key Press

15- Clear

Object -2
-4
Copy -6
-8
10- Debugger
12- SelectAll
Visible -14

2
5

:
-1
Class -3
-5
-7
ForeColor -9
Methods -11
-13

You might also like