You are on page 1of 109

Teachers@Focuspublish.

com

Page 1 of 109

( : )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

: .

: .

- :

1 :
.

2 ) . ( Algorithm

) : ( Algorithm
.

3 ) : ( Program Design
.

4 ) : ( Program testing
.

5 ) : ( Program Documentation
(

) .

Page 2 of 109

) : ( Flow Chart
.
: 1 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

2 .
3 .
4 .

: :

) ( Terminal

) (Input / Output
/

) ( Process

) ( Decision

( )

) ( Flow Line

) : ( Variable .

Page 3 of 109

: . : 1 .
2 (
) .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

1
.

2 Start End . Stop

3
.

4 ) Enter Input ( Read


.

5 ) (Output ) ( Print
.

: :

- :

. ( J # - C # - Visual Basic.Net ) : - :

) : ( Visual Basic . Net ) ( Window Applications


) . ( Web Applications

Page 4 of 109

: ( GUI ) -

) : ( Event Driven .
) ( Visual Basic. Net ) : ( Object Oriented

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

) . ( Objects

) : ( Object .

) : ( Class .

- ) . ( Class

). (Class

- ) : ( Properties .

( ) : Methods .

) : ( Events .

) : ( . Net Framework :

) ( .Net . ) ...
.

Page 5 of 109

) :: ( . Net Framework 1 ) . ( CLR


2 ) . ( System Class Libraries
3 ) . ( Compilers
4 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

) : ( IDE

: IDE
.

- 1 ) : ( Form .

2 ) : ( Toolbox
.

) : ( Properties Window

4 ) : ( Solution Explorer :

) . ( Solution

) . ( Projects

( ) ) : ( New Project 1 .

2 File ) . ( New Project

3 ) ( Templates ) . (Windows Forms Application


4 ) ( Name

. OK

5 IDE ). (Form1
) ( Form : 1 ) : ( Project
2 ) . ( Add Windows Form

Page 6 of 109

3 ) (Add New Item ). (Windows Form


4 Name .
5

) . ( Add

: 2 . Save All

1 . File

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

) : ( Solution 1 File ) . ( Add

2 ) . ( New Project

: ) : ( Controls

1 ) : ( Form
). (Form1

) : ( Form
:

. - .

- .

: ( Name Text Backcolor : FormBorderStyle ControlBox MinimizeBox MaximizeBox


WindowState ShowInTaskbar StartPosition RightToLeft
RightToLeftLayout ).

2 ) : ( Button

: . : ). (Toolbox

Page 7 of 109

) ( Button

: :
) - ( Name Text Forecolor Font Location Size

( ) . 3 ) : ( Label
: .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

: : ) . ( Toolbox

) : ( Label :

( Name Text BorderStyle AutoSize Image Visible Location


Size RightToLeft Backcolor Forecolor Font ).

4 ) : ( Textbox

: .

) : ( Textbox :

) ( Enabled Maxlength PasswordChar Multiline

5 ) : ( ListBox

: . -

: ( Items Sorted SelectionMode ) :

- 6 ) : ( Combobox

- : .

). (Textbox , Listbox
-

: :
) ( Items AutoCompleteSource AutoCompleteMode

Page 8 of 109

7 ) : (GroupBox
: ( ) .
-

: :
) ( Name Text Visible BackgroundImage

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

8 ) : ( RadioButton

: .

: ( ) . -

: . ( Name - Text Checked ) :

9 ) : ( Checkbox

: .

: ( ) . -

: . ( Name - Text Checked ) :

: ) : ( Code Window

: ( ) .

: .
: 1 F7 .
2 View ) . ( Code
3 ) ( Form1. vb
). (Solution Explorer
4 .

Page 9 of 109

: 1 ( ) () .
1 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

2 ) ( Class . Object
(

3 Algorithm
(

( ) . Process

5 IDE . Visual Basic

: 2 :
1

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

2 IDE

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

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

4 ) (VB.net

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

5 .

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

: 3 :
- .

- ) . ( Algorithm

- .

Page 10 of 109

- .

- .

:
( ) . Lbl_Title...........................................................................................................

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

: 4 .

Start

Result = N1 + N2
Input N1

Input N2

Output Result
End

Page 11 of 109

: 1 ( ) () .

2 Text Button
.

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

3 .

Control Name + Property = Value

5 Vb. Net .

: 2 :

) ( Maxlength Font Copy ComboBox Form

1 ............... .

2 ............... .

............... - 3 .

4 ............... . Textbox
5 ............... . Textbox Listbox

: 3 - () () :
()

()

Name

Visible

Object

GroupBox

End

Page 12 of 109

:
( ) Label1 ...............................................................................................................
: 4
) (G ) (D

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
= 7 .

Page 13 of 109

: 1 :
1 Text ................
( )
2

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

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( )

................ - 3 .

( Algorithm )

................ - 4 .
) ( TextBox Label ListBox

5 ................ Radiobutton
) ( Enabled Checked Text

: 2 ( ) () .

1 ) ( Label Name
(

. Text

2 GroupBox1

). (BackgroundImage

3
.

4 Solution .

(.Net Frame work ) 5


(

Page 14 of 109

: 3 :

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
............................ - 1

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

............................ - 3

............................ - 4

) 1- Button1. Font = New Font ( " Arial ", 20

.....

2- TextBox2. Multline = True

..

3- GroupBox1. Visible = False

: 4
) (H ( ) 151
) 511 (B 211 .

Page 15 of 109

: 1 ( ) () .
(

1 . Solution Explorer

2 ) ( Method .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

3 )(Checkbox

4 ((Add Windows Form


. Edit

5 .

: 2 :

. ( Properties Algorithm Event Method ) 1


. ( Button Label Click ComboBox ) 2
. ( Autosize False " Help " True ) 3

. ( Tool Box Properties Window Solution Explorer Object ) 4


. ( Copy Text Forecolor Enabled ) 5

: 3 :
1
.

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

2
.

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

3 ) (ComboBox .
( ) ...............
4 .
( ) ...............

Page 16 of 109

5 .

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

:
( (btn_Result ........................................................................................................
: 4 :

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
....................................... - 1

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

....................................... - 3

..................................... - 4

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

Page 17 of 109

: 1 ( ) () .
1 .
)

3 . Vb.Net

4 Items ). (ListBox

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

2 . Get

5 Run Time F4

: 2 :

) ( Program Class Name Flowchart Event Handler Text

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

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

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

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

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

: 3 :
Object Name . Method = Value - 1

2 Checkbox .
3
Label1. Forecolor = Blue 4
5 Save All . Project

Page 18 of 109

:
) ( Textbox1 ) . ( LblName..............................................................................................................
: 4 : 1
. 25

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Page 19 of 109

: 1 :
1 ...............
) ( Method Property Event
2 ............... .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
( )

3 ............... ) . ( Textbox
) ( PasswordChar Multiline Items

4 ............... .
(

) No

Yes

5 ) ( Txt_Name Button1
..................

A Txt _ Name . text = Button1. Text

B Txt _ Name . text = Button1 Text


C Button1. Text = Txt _ Name . Text

D Btn _ Name . text = txt _ Name . text

: 2 ( ) () .

1 .

2 Checked ) ( True
Radiobutton ) . ( GroupBox

3
4 .

5 ) ( Label1 . AutoSize = True


(

Page 20 of 109

: 3 - () () :
()

()
1

CLR

Textbox

Copy

IDE

Framework

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
4

ComboBox

C#

- Arial 40 ) . ( Label1

..............................................................................................................
- ) ( btn _ First

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

: 4
.

No

Print Result

Input N2

Yes

End

...

Page 21 of 109

Start

: 1 ( ) () .
1 BordertStyle Label . None
(

2 ) (Decision
.

3 ) (Properties ( .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

. Class Name

5 ) (Form1 ( .

: 2 :

) ( Event Code Standard toolbar Methods Object

1 .............
.

2 ..........
............. - 3 .
............. - 4 . Class

5 ........ .

Page 22 of 109

: 3 - ( ) ( ) .
()
1

Start

()

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

................................... -

................................... -

................................... -

................................... -

: 4

Page 23 of 109

: 1 :
1
()...............

. Textbox
3 .

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

4 ). ( Listbox

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

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

2 .

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

5 IDE

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

: 2 ( ) () .

1 .

2 Class .
3 . Common Controls

4 Checkbox
.

5 . End sub

: 3 :

Page 24 of 109

: () ()

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1

. Terminal

-2

-3 .

-4 Properties .

-5 Property

: :

-1

. ......
( ) Flow Chart - Problem Solving - Algorithm
-2 . ........
(

Page 25 of 109

-3 . ...........
( ) Event - Event Handler - Function
-4 . ............
( ) Label1 - Form1 - List Box1
-5 Label
. ..........

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) Border Style - Auto Size - Location

Page 26 of 109

: () ()
:
(

-1 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
.

-2

-3 Algorithm .

-4 ( ) Code Window . F5
(

-5 Properties .
(

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

( ) Problem - Problem Solving - Alogrithm

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

-3 ..........

( ) Fore Color - Back Color - Color

-4 Start Debugging
( ) ShowInTaskbar - Text - Font

-5 Blueprint

( ) Object - Function - Class

Page 27 of 109

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

Page 28 of 109

: () ()
:
-1 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
.

-2

-3 .

-4 Property Properties
(

Window .

-5 ( . Project

: :
-1 C = A +B ........... C

( - )

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

( ) Problem Solving - Algorithm - Flow Chart

-3 . ............

( - - )

-4 . .........

( ) IPO - IDE - ERD

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

( - - )

Page 29 of 109

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

Page 30 of 109

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) ( ) :
.

-1

-2 ) Lbl_Title . Font = Font ("Arial",30 Font

. Lbl_Title

-3 . Check Box

-4
.

-5 . IDE

-6

Page 31 of 109


2 5


- =

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

- M =

-1
.

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

-2 .

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

-3 BluePrint .

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

-4 .

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


:
-1 Form1 False ........
( - Control Box

- Minmize Box - Maximize Box )

Page 32 of 109

-2 Label1 ..... . False


( Border Style - Size - Auto Size - Location

-3 ....
.Text Box
( ) Location - Password Char - Read Only - ShowInTaskbar
-4 ....

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) F5 - F4 - F7 - F2

-5 Value .........

( - - - )

-6 .............. Flow Chart

( - -

- )

Page 33 of 109


( ) ( )

-2 Object . Class

-3 .

-4 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 Sorted .

-5 Add Class . Project


-6 Text Name .

( - - ) Max Length - Radio Button -


-1 ....... .
-2 ........... .

-3 . ............

-4 ......... .
-5 Visual Basic . net . ...............

Page 34 of 109


Area L
. W

Area = L * W

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
End

Input L , W

Start

Output Area

-1 Button .
-2 .

Page 35 of 109


( ) ( )

-2 Clr . Net Frame Work

-3 Label1 . Visible = True ( . Label1

-4 .

-5 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 F4 .

-1 . Pass Word Char

-2 .
-3 .
-4 .

-1 List Box
-2

-3
-4

Page 36 of 109

Start Debugging
Project

Flow Chart

Start Position


1 3

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Page 37 of 109


( ) ( )

-1
-2 .

-3 ( .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-4 Chec Box .

- :

-1
.

-2

-3 .
-4 .

- -:

-1 ............ . File

-2 ............ . List Box


-3 ........... .

................. -4 .
- - :
................ -1 .
( - - Form - )

Page 38 of 109

-2 ........... Radio Button .


( ) Checked - Selection Mode - Sorted - Items
-3 . .................
( - Selection Mode - Sorted - Items

Control Box

................ -4 .
( - - - )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-5 . .................... Frame Work


( Clr

- - )

7 . 3

- - :

List Box1 . Sorted = True -1

Form1 . Control Box = False -2

Text Box1 . Font = newfont ( "arial" , 30 ) -3


" " = Label1 . Text -4

Page 39 of 109



-1 ( - -

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Start Debugging
( - Start Position - Windows State )

-3 Form1 ( F7 -
) F1 - F5

-4 Solution Explorer ( - - )
-5 Form Project ......

( Project

) Form - File

- :

-1 Text Box
. ...........

-2 Solution File
...... . ........

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

- :
-1 .

Page 40 of 109

-2
.
-3 .
-4
.
-5 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) ( )
-1 Project .

-2 Properties
Properties .

-3 Auto Size . Label1

-4 Even Handler .
-5 GUI .

. Private Sub Button1_Click ( ByVal Sender As

"Label1 . Text = "Egypt


End Sub

-1

-2

-3

-4

Page 41 of 109

) B = 2 * 3.14 * R

) Start

) Read R

) Output A

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

) A = 3.14 * R * R

End

Output B

Page 42 of 109


- :
...... -1 Controls

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) Class - Group Box - List Box - Items

-2 Solution Explorer . ............

( - Properties - Colntrols
- Projects )

-3 . ..............

( - )

-4 . .............
( ) IPG - IPO - IDE - ERD

:
-1 .

-2 Code Window . F5
-3 Text

Radio Button

-4 BluePrint . Form

: Label1

:
- Fore Color - Blue ......................
Text

- - Egypt .......................

Page 43 of 109



Even : Odd
Is res = 0
Input number N

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
)"Output ("number is even
Res = N mod 2

Page 44 of 109


( ) ( )

-2 Fore Color . Button

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 Object . Class

-3 Event Handler .
-4 BluePrint .

-5 Size 109 : 89 109 . 89


(

-1 Form . .............

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

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

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

Page 45 of 109


:
-1 :
(

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Right To Left Layout Right To

Left . .............

( ) False - Yes - True

-3 Form Project ..........


( ) File - View - Project

-4 ........... . Start Debugging


( ) Window State - Text - Back Color

- Text Box1

-:

Multi Line

- - True .........

Font

- Andulas - 20 ..............

- Back Color - .............

Page 46 of 109


( ) ( )

-2 Algorithm .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

. Terminal

-3

-4 Code Window Form

. F5

-5 Properties .
(

-1 ..........
( - Algorithm

- Problem Solving

) Problem

-2 . ...............
( Flow Chart

Algorithm

Problem Solving

-3 . .............

( - Color

) Fore Color

- Back Color

-4 . ...............

( - List Box

Check Box

) Group Box

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

( Function

) Event - Event Handler

Page 47 of 109


:
-1
-2 N
R = 1 -3

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-4 R < = 10
1-4 R * N

R = R + 1 2 -4

3-4 4

-5

- ....................

- .

- Text Label1
" .. "

- :

Page 48 of 109


- ( ) ( )
-1 Radio Button .
-2 ( .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-3 Project .

-4 lbl_Title . Visible = False . Visible

-5 Properties Controls .

-6 .

- - :

-1 .

-2 .

- - :

................ -1
.

( - - ) Algorithm

................. -2 .
( - Class ) Object - Label
-3 Frame Work . ...............

( - IDE

Tool Box

- ) Compilers

-4 Form . ...........
( Back Color - Name - Text

Page 49 of 109

.......... -5 Text Box


- Font ( .

- Size

Multi Line

-6 ........ .
( - F2

F5 - F8

.............. -7 .
( ) List Box - Check Box - Group Box

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

- 3 : 1
-1 .

-2 M .

- :

-1 Fore Colr Label1 Red


Fore Colr = Label1 = Red

-2 Font lbl_Title ""arial

( ) 30

) Lbl_Title . Font = ( "arial" , 30


- :
-1 Windows State . Stop Debugging
-2 . Fore Color

Page 50 of 109


( ) ( )

-2 VB.Net .

-5 True ( . Control Box

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

-3 GUI

-4 .

Interest = balance * rate


End

Read name . balance , rate

Output name , balance , rate


Start

-1 Frame Work
-2 IDE
-3

Page 51 of 109


:
-1 . ..........
( ) Event Handler - Check Box -
-2

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

.........

( - Combo Box - List Box

Button

-3 .......... Label
( - Border Style

) Location - Auto Size

-4 . ...........

( - Group Box

- Text Box

) Radio Button

-5 ..........
( Class

- Flow Chart

) Object

Page 52 of 109


( ) ( )
-1 .
(

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Form1 .

-3 Net Frame Work


.

-4 .

-5 Selectio Mode
. List Box

-1 IDE Label . ............


( ) Solution Explorer - Properties - Tool Box

-2 . .............
( ) Name - Text - Text Length

-3 Start Debugging .............


( Show In Taskbar - Font - Text

........... -4 .

( ) Problem Solving - Algorithm - Problem

-5 . ............
( - Method

- )

Page 53 of 109


-
(

) Button - Solution Explorer-Radio Button - Label-Check Box

-1 . .............
-2 Projects . ..........

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

........... -3 .

-4 . ..........

- :

" " = Lbl _ Title . Text

Fore Color

Blue

1 3

Page 54 of 109


( ) ( )

-2 Algorithm .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

-3 Properties Control .

-4 Radio Buttons .
-5

. Terminal

-6 . Check Box

-1 . ..........
( - Radio Button

- Combo Box - Group Box

) List Box

-2 ........ .
( ) F2 - F4 - F5 - F8

-3 . .............
( - Event Handler - Function

) Event

-4 . ...........
( - Form1 - List Box1

Label1

Page 55 of 109


:
( Object - Class - Visual Studio - Net Frame Work -
) Programming Language - Form
-1 ........... .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

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

-3 ........ .

-4 .........
.

-5 BluePrint . ...........

-:

Print Y

Y=3*X+2

End

Input X
Start

Page 56 of 109


( ) ( )
-1 Event Handler .
(

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Debugging . Stop Debugging

-3 Properties . IDE
(

-5 Properties Controls ( .

-6 ( . Flow Chart

-4 Algorithm .

-1 Code Window Form ....


( F5 - F7 - F4

.......... -2 Controls .
( ) Tool Box - Properties - Solution Explorer

-3 . .........
( Radio Button - Check Box - Group Box

-4 Start Debugging .........


( ) Show In Taskbar - Font - Text

-5 ...........
( ) IPO - IDE
-6 . .............
( - Color

- Back Color

) Fore Color

Page 57 of 109



-1 . ..............
-2 Project . ..........
-3 Auto Size ..... Label

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-4 ......... .

Page 58 of 109


( ) ( )

-1
-2 .

-3 .

-4 Blueprint VB . N

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-5

-1 Event Handler .
-2 .

-3 Radio Button .

-4 Name .
-5 Save All File

Page 59 of 109


-:

Average = ( x + y + z ) / 3

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

End

Read x , y , z

Start

Print average

( - Form1 - Auto Size - Fore Color - Form - Size


) Group Box - Color -

-1 . ...........

-2 ........ .

-3 .... Label1
.

..........-4 Controls

.
-5 ide . .............

Page 60 of 109

-2 File . Save All

-3 .

-4 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

-5

-6 GUI .

-1 .............

( - - )

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

( ) Name - Color - Size

-3 . .............
( ) Fore Color - Color - Back Color

- :

-1 ......... .
-2 .............. Compiler

Page 61 of 109

R -

A = 3.14 * R * R
C = 2 * 3.14 * R

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

Start

End

Output A , C

Read R

Page 62 of 109

: ( ) ( )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
:

-1 Flow Charts Enter .


(

-2 Method Name
(

Class Name

-3 Solution Explorer

-4 .

-1

Start

-2 N
J = 1 -3

-4 J < = 12 :
1-4
2-4
3-4

j=1

J * N
J=J+1
4

-5

Page 63 of 109

Print j * N

End


:
-1 .
-2 ( ) Net
-3

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-4 .

- Project Solution
......................................... :

- TextBox1
................................. :

- : -

-1 Start Debugging :
( ) ShowInTaskbar - Font - Text

-2 Controls Tool Box :


( - - )

-3 Controls :
)

( Group Box - List Box - Combo Box

-4 Text Box
:

( Max Length - Size

Multi Line

Page 64 of 109


( ) ( )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 Name Form .

-2 F5 .

-3 Compiler .

-4 .

-5 .

-6 Property
(

( Form Border Style - Solution Explorer - Add - List Box - Class


-1 ................. .

-2 ............... . Form
.................... -3 .

-4 File . ...............
-5 ................. .

Page 65 of 109



Even : Odd
R = N mod 2
End

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Output
Is R < > 0

Input number N

Page 66 of 109


:
( Group Box - Solution Explorer - Event Handler

- )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

..................... -1 .
..................... -2 .

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

( ) ( )

:
-1 Object . Class

-2 ( .

-3 Algorithm .

-4 Border Style . Label

-5 .

-6 .

( ) ( ) - :
( )

( )

Back Color

Page 67 of 109

:
A B C

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Page 68 of 109


( ) ( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 Class .

-2 .

-3 Start Position .

-4 .

( ) :

-1
. Form

-2 Controls .
-3 Blueprint .

-4
.

-5 .

( ) :

-1 Label1 . = . . Label1
-2

Form1 Me . MaximizeBox

= ..
-3 Text Box1
TextBox1 . .. = True

Page 69 of 109

-4 ............. .
............... -5
.
( ) ( ) 21 : 5
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) :

-1 .............. Button . Form


( ) Size - Border Style - Location - Auto Size

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

. List Box

( - Auto Complete Mode - Checked - Selection Mode

) Items

-3 Form Add Window Form . .......


( Edit - Project - File - View

-4 ........... Radio Button .


( Sorted - Check Box - Checked - Enabled

( ) Area R

Area = 3.14 * R ^ 2

Page 70 of 109


( ) ( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 . VB . Net

-2 . Documentation

-3 .

-4 Name Text
(

-5 Font Button

.
(

-6 Password Char
(

- :

-1 . ...............

-2 ................. . Net

-3 List Box ............ .

- :

-1 ( ) . Label 2
-2 Text Box 1 .

Page 71 of 109


:
-1
N = 10 -2
Sum = 0

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

Sum = sum + n -3
N=n+1

Is N > 20 -4

Print Sum 1-4


-5

1-5 3
- 6

Page 72 of 109


( ) ( )
:
-1 Properties Control Name . Property = Value

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Propertis IDE
(

-3 Properties
(

-4 Radio Button .
(

-5

-6 Properties Control .

-1 Label

. .......

( ) Border Style - Auto Size - Location

-2 . ..................
( - Check Box

Combo Box - List Box

-3 ....................
( - - )
-4 ........... .
( F5

F2 - F4

Page 73 of 109

-5 Algorithm .............. .
( - - )
-6 Blueprint . ...........
( Form

- Object

- ) Class

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

( ) :

* Interest = balance

rate

End

Start

Output name , balance ,

interest

( : ) Text Box1

Multi Line

True

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

Back Color

Yellow

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

( ) Text Label1 "


"

Page 74 of 109



-1 ...........................................

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

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

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

( ) ( ) :
( )

( )

-1 Group Box

-2 Window State

-3 Start Position

-4 Combo Box

( ) ( )

:
-1 .
-2 .
-3 .

Page 75 of 109

-4 .
-5

Button
.

-6 Solution File Add


(

. New Project

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1

-2 X , Y , Z

Average = ( X + Y + Z ) / 3 -3
Product = X * Y * Z

-4

Average , Product

-5

Page 76 of 109


( ) ( )
:
-1 Algorithm .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Widows Event Driven


(

-3 Debugging . Stop Debugging

-5 Event Driven ( .

-4 Check Box . Radio Button

............ -1 Control . Form


-2 True . ...............
-3 Button12

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

-4 Sorted ........ .
............ -5 .

-1 Frame Work

-2 .
-3

. Label22


X , Y
.

Page 77 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 Combo Box
(

-2 Tool Box Controls


-3 Properties .

-4 Algorithm .

-5 Code Window Form . F7


(

( - File - Auto Size - ) Object - Back Color


-1 .............. .
-2 . ....................

................. -3
.

-4 Project ............. Save

. All
-5 Label . ..............

Page 78 of 109


- -:
-1 . ................
-2 .............. .
-3 ............. .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

Text LBL_Title

" "

( )

51

Print
X > = 50
Start
End

Enter X

Page 79 of 109


( ) ( ) ( )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 Properties .

-2 Properties . IDE
(

-3 . Check Box

-4 Object . Class

-5
(

-6 Code Window Form . F7


(

-7 Radio Button .
-9 . Property

( ) Label1

-1 Visible
-2

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

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



-1 . ...............

Page 80 of 109

-2 . .................
-3 Label . ...............
-4 ............

( Button )

-5 ............. ( )
.
-6 Start Debugging . ..................

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
( ) 1 ( ) 11
:
M=M+1
M=1

M < = 10
Print M

Page 81 of 109


( ) ( )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 ( .

-2 VB.Net .

-3 .

-4 Office ( . IDE

-5 Window
(

. State

-1 Start Debugging ..........


( F1

F5

F7

-2 ........... Class Name .

( - Name - Text

) Click

-3 ............

( - Console

- Class Library

Window Form Application

) Application
-4 . ..............
( Algorithm

InterFace

Flow Chart

-5 Frame Work . ..............


( CLR

) Compilers

Page 82 of 109



- :

Read N1

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Is N2 = 0

" Print " not defined


Start
End

Read N2

Output Result

Result = N1 / N2

( Solution Explorer - Right To Left - Combo Box - Group Box -


) Check Box

................ -1 .

-2 ...............
-3 ............... .

.................. -4 .

-5 ........... Control
.

Page 83 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
)

-1 C = A + B C .

-2 Property
(

-3 Properties .

-5 Code Window ( . F5

-4 Algorithm .

-6 Radio Button .

-1

:
( - Algorithm

Problem Solving

Flow Chart

-2 :
( Event Handler - Event

) Function

-3 . ................
( Location

Right To Left

Border Style

-4 Start Debugging :
( - Text

Font

Show In Taskbar

Page 84 of 109



( ) X : 51
Print
X > = 50

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
Start
End

Enter X

( - Object - Class - Auto Size - IDE -


- Form )

-1 ............. Label

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

-3 . .....................

-4 .........
.
-5 Blueprint . ................
-6 . ................

Page 85 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1

.
(

-2
(

-3 F5 .
(

-4 .

-5 .

-1 Blueprint ................
( Form

- - Class ) Object

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

( - - )

-3 .................
( - IPO

IDE - ERO

-4 . .............
( - Color

- Back Color

Fore Color

-5 . ...........
( - Check Box1

List Box1 - Form1

Page 86 of 109


A , B C

-

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 ............... Save All . Project
-2 Control Box . ...............

-3 ................ .

-4 .......... .

- Label1 .

Page 87 of 109


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

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 Label Size Auto Size

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

................ -3 .

-4 ............... .

( ) -:

............... -1

( Properties Window

- Solution Explorer

ToolBox

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

.
( GUI

Net Frame Work

IDE

-3 Lbl . Fore Color = Color . Red


. ..........

( - - )

................ -4 .
( Event Handler

Class Name

Method Name

( ) ( ) TextBox1 , Text Box2


.

Page 88 of 109


( ) ( ) ( )
:
-1
(

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-2 Properties Object .

-3 Check Box .
(

( ) :

-1 ( ) . Label1
-2 Font Button2

Font

Andulas . 20

A R

A = 3.14 * R * R

Page 89 of 109


( ) ( )

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

-2 .

-3 Radio Button .

-4 ( ControlName . Property = Value

-5 .

-:

-1 ......... .
( F7

F2

F5

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

-3 . ...............
( List Box1

Form1

) Label1

-4 ........... .
( ( F7

F2

F5

-5 Blueprint . ...........
(

Page 90 of 109



( - - - ) Group Box -
............. -1 .
-2 . ................

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

............... -3 .

.............. -4 .
................ -5 .

( ) ( ) :
()

-1 IDE
-2

Button

( )

-
.

-3

- .

-4 Label

-5

- .

Page 91 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .
(

-2 .

-3 .

-4 .

-5 .

-1 .
( - - )

-2 ...........
( Flow Chart

Algorithm

InterFace

-3 .............. IDE
(

- )

-4 Text Box .............

( - -

)
-5 Code Window . ..............
( F5

F7

F1 -

Page 92 of 109


( ) ( ) -:
()

()
-2

) Event Handler

-3

) Fore Color

Border Style

-4

Back Color

Sorted

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

) Net Frame Work

-5

Print Y

Y=3*X+2

- :

End

Input x
Start

Page 93 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 . Solution Explorer

-2 Properties .

-3 F5 .

Radio Button ( .

-5 Form .

-6 Object . Class

-4

1 -: 111

) N=N+2

) N > 100

) Sum = Sum + N

) Sum = 0

) Print Sum

) N=1

Page 94 of 109


- :
( - Form - Code Window - Flow Chart
- Algorithm ) Event Handler
................ -1

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

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

............. -3
.

............. -4
.

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

-1 Tetxt Label " "

-2 Back Color Text Box1


. Yellow

-3 Visible Form1 . False

Page 95 of 109


( ) ( )
:

-2 Algorithm .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-1 .

-3

Radio Button -4

-5 Property .
(

-1 ..........

-2 C = A + B

A B

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

-3 .................

-4 Text Box . ..............


-5

Label1

Page 96 of 109



-1 Code Window Form
. .....
( F1

F7

F5

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

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

- - )

-3 . ................
( -

- )

-4 . ..............
( Color

Fore Color

) Back Color

-5 Label

. .............
( Location

Auto Size

Border Style

( ) 5 ( - : ) 11

Page 97 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
(

-1

-2 .

-3 . F5

-4 .

-5 . Window Application

- :

( - Object - Class - Visual Studio - Net Frame Work

- ) Form

-1 ............. .

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

-3 .............. .

-4 .........
.

-5 Blueprint . ...............

Page 98 of 109


-:
-1 Text Label1 (
)
-2 Fore Color Button1 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

- :

Read N1

Is N2 = 0

" Print " not defined


Start
End

Read N2

Output Result

Result = N1 / N2

Page 99 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 .

-2 Net Frame Work . Net

-3 Fore Color . Button

-4

- :

-1 . Method

-2 Max Length . Text Box1

-3 Sorted List Box1 . True

- :

( - File - IDE - IPO - F7 - F5 - Lay

Right To Left

) Out

-1 Save All . .............


-2 Righttoleftlayout Form1
........... . Yes
-3 ............. .
-4 . .................

Page 100 of 109


-:
-1 .
-2 .
-3 .

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-:

-1 ...............
( Event Handler

Function

) Event

-2 Label . ..............
( Auto Size

- Border

Font

-3 ................ .
( Radio Button

Text Box

Check Box

A R

( ) R

Page 101 of 109


( ) ( )
:

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-1 .

-2 Project .

-3 Combo Box

-4 lbl . Title . Visible = False Visible

-5 Frame Work . Net

-6 Name Controls .
(

-1 Blueprint . ..........
- - Class ) Form

( Object

-2 Start Debugging .............


( Show In Task bar

Font

) Back Color

-3

. .....

( Flow Chart

Algorithm

) Problem Solving

-4 Code Window Form1


. ..........
( F7

F4

F5

Page 102 of 109


( ) ( ) :

-1 .

Items

-2

Text

Event Handler

-3 List Box

Radio Button

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

()

()

( : ) R

A = 3.14 * R * R
C = 2 * 3.14 * R

Start
End

Output A , C

Read R

Page 103 of 109


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

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

-2 ........... .
.................... -3 .

-4 Righttoleftlayout Right To Left


......

- :
-1

-2 R

M = 1 -3

-4 M <= 12
1-4 M * R

M = M + 1 2-4

3-4 4

-5


. Label1
Text Box1 Andulas ( . ) 16
Button1 .

Page 104 of 109


( ) ( )
:
-1 Check Box
(

D
al
e
In el
Co El
m Ta
pu fo
te uk
r
-2 Class . Object

-3 M = N + O M .

-4 Label Auto Size


. False

-5 Algorithm .

Page 105 of 109


-:
-1

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

N = 1 -2

-3 N <= 12 :
1-3 N

N = N + 1 2 -3

3-3 3

-4

( ) ( )

-1

-2 .

-3 Solution Explorer .

-4 Code Window . IDE

-5 Event Handler .
(

-6 Text

Radio Button
(

Page 106 of 109


( ) ( ) :

-1 Selection Mode

- .

-2 Location

- label

-3 Start Position

-4 Border Style

D
al
e
In el
Co El
m Ta
pu fo
te uk
r

()

()

List Box

- Button . Form

- :

-1
.

-2 .
-3

-4 .

Page 107 of 109


:
( - - - - )
............. -1 .
............. -2 .
............. -3 .
............. -4 .
............. -5 .

( ) ( )
:
-1 Group Box .

-2 .

-3 .

-4 .

-5 Pass Word Char ( .

-6 .

-:
-1 New Project .............
( Format
Back Color -2

File
(

) Data

- )

-3 ) Form Border Style ( None - No - False

Page 108 of 109

-4 ............ .
( Label

Text Box

) List Box

-5 ( - F1

) F 7 - F5


-:
-1

Start

-2

Input A , B , C

-3

D=(A+B+C)/3

-4

Print D

-5

End

Page 109 of 109

You might also like