Вы находитесь на странице: 1из 41

*+,%&-.)/$% '()&& ! !

"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& *+,%&-.)/$%
& 8>?@A%&B)+&8<.=<
)*9+:; )<=5" >%?5 @"4&:; )<=5" )?5; AB%!" #$%&'( )*+%$ ,- )$./$ 0'1& 2.345" 67+ 8
%F )&4GH" %+'I%C- )J'1$; )KGLH" M*KN 8 .-%OP Q5" .-"4/5" R'L& S5T .1( UV E)<=5" )CD$
UBd e4$d fg4& %h`: %D*J; E%D1$ M$%1_5" MDO` 2a?I b"Xc: ]^ )KGLH" )WXY ,GZ [*\ ;
p)KGLH" M! 2d4I no1P Q5"; med"4j" )(%_\ .1( )KGL9K5 iW"'j" 67+ UBd UV kJ._5" iW"'l

&&&&&&&&

- -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

8<.=<&&EC+,%&B!D$%
& &E-F%.G%
%D-"4&:; )<=5" >%?5; AB%!" #$%&'( )*+%$ )J'1$

& EH%.I,%
srK- 2d./5" S`.5 q4G` 2.345" 67+ M9GP %$.C-
AB%!" #$%&'( )*+%$ UDJ u t
%+"'` q: ,GZ Q5" )wK_xH" )<=5" >%?5 )J'1$ u v
)<=5" )CD$ )*9+|( d%zl{" u y
>%*<=5" )-%CI UK- 4+ %$ )J'1$ u }

& '/>JA%&K%3,%&L/#M<
‚t )zOC( 2d".€" 67+ q%/P^ ]^ d._H" M~` q:

2.3"; )-%B E5QF.#>$&NO/#A%&PO/$%

& &E-.2(MA%&BR(6/$%
UKƒ
„J…

& E-F%.G%&S(T>J#<
)/(%O5" AW%/!" †*‡ e%*_c"

-"-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& 8<.=<&EC+,%&B!D$%

2%*!" >ˆ%< †*‡ 8 %+d%L_&"; )*5‰" >%zB%!" >%-%CI )*C/P 8 azG5" d4o_K5 "Š '‹&
)*w*\; >%zB%!" 67+ )J'1$ %C*K- %Š $"X5 fzI: Ž&J E>ˆ%Œ" r_ 8 2….1_H" %DP%$".x_B"; E)wK_xH"
]^ )J%g{%( 2az\ Žƒ.( ‘%9-" ,$ a’\ X“CP; ”ƒ45"; .D€" 'J4P %D& %DC$ 2…%w_Bˆ"; %D1$ M$%1_5"
>%zB%–K5 2azG5" >"d./5" ,$ 2…%w_B—5 )1W%L5" ˜'o5" ,$; p>%&%*z5%( •%w_3ˆ" 8 2azG5" %DP"d.ƒ
E)(4KoH" )ƒ.5" ]^ ˆŠ 4I;; ”ƒ45"; .D“K5 "ŠaJ4P >—GLH" ,$ a’\ M™ m4/P Q5" #$"=5" b%C( s4+
UV p)wK_xH" )<=5" >%?5 @"4&: S57\; AB%!" #$%&'( )*+%$ rK- b4h5" n/K& š4B 2.345" 67+ 8;
p>%*<=5" )-%CI; )<=5" )CD$ )*9+: ›z& S5T .1(

& &56(7%&U<(V:;
@49< %O3 M’$ %$ M91( m%*/K5 AB%–K5 ro1P >%9*K1_5" ,$ )-49< ,- 2d%z- 4+ #$%&=5"
"ppppppppp ›1$ ….- ;'h$ %O3 En(%O!" iB4_H" %O3 E)wK_œ U*ƒ
#$% &=5"; p) (4KoH" #W% _C5" r K- ‘4 ~–K5 >% &%*z5" † $ M $%1_5" ) *w*\ AB%–K5 ….Ÿ ž75" 4+ #$%&=5";
M ! 67 wC`; M !" R„ /`; )KG LH" U Dw` ž7 5" (Computer Programmer) #$= H" )o B"4( A_G`
p049£ ;: ¢z5 Ž*J ¢*5; %–g";; %Š –*–I Ž-49< 8 #$%&=5" q4G` q: A¡; )KGLH" 67+
2b%wG( (Hardware) )`…%H" >%&4GH" m".x_B" m.x_O9K5 MDOP Q5" n+&&& (Software)& >%*<=5";
u sn+; )*O*Wd @"4&: )V—V ]^ >%*<=5" U*O/P ,GZ; )3"d;

Operating System&&&&&&BYZ@#$%&U<%:;&X W
m4/P #$"'( ,- 2d%z- n+; p%+a£; VMS ELinux EUnix EDos ; ¥windows ¤7J"4C5" M’$
)`…%H" >%&4GH" m".x_B" ,$ m.x_OH" ,G¦ n+; )`…%H" >%&4GH"; m.x_OH" ›( i*B45" d;.(
M*?L_5" #$"'( ,$; p%+a£; >%wKH" m%‹& b%L&^ 8 m.x_OH" .-%OP %D&: %9\ E)3"'(; 2b%wG( AB%–K5
M’$ i/J AB%!" †$ m.x_O` ž75" %DC$; EWindows EUnix M’$ >%GzL5" 8 M91K5 fK~` %$
pDos

-#-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& Application Programs S(=YTJ#$%&U<%:;&X [


m".x_B%( UB'5"; >%&%*( 2.-%ƒ b%L&^ M’$ >%/*zo_5" ,$ a’\ b%L&^ 8 .-%OP #$"'( n+;
u s#$"=5" 67+ )K’$: ,$; %+a£ ; AB%!"
u OracleM\"d;" u Access ¢O\" u Excel M*O\ˆ" –Autocad …%\4P;" #$%&'(
pa’\ %+a£; Fotoshop 44P4w5"
&

& Programming Languages 89]$%&S(Z$&X \


2'%z$ M$%1_P Q5" >%?K5" ,$ R;"„P n+; )wK_xH" #$"=5" b%C( 8 m.x_OP Q5" n+ >%?K5" 67+;
§'l: 2d4I ]^ %D( A_GP Q5" %DPd4I ,$ %DK`4N AKo_P Q5" §'l"; AB%–K5 )`…%H" >%&4GH" †$
p%D1$ M$%1_5" AB%!" †*o_O`
@"4&: ¨—V ]^ %D9*O/P ,GZ >%?K5" 67+; m4*5" )$.x_OH" )<=5" >%?5 ,$ .`.15" .c4`;
u sn+ )*O*Wd
Machine languages )5‰" )?5 u t
Assembly languages †*9“_5" >%?5 u v
High level languages n5%15" §4_OH" >%?5 u y

Machine Language 8$^%&8Z$


M G5 ) I%l ) ?5 = _1P )?K5" 67+; p%D1$ M$%1_5" †*o_O`; AB%!" %D9Dw` Q5" 2.*345" )?K5" n+;
)  5‰" )  ?5; EŽ  Ow& A  B%–K5 )  `…%H" >%  &4GH" r  K- .  9_1P n  +; '  l© ]^ A  B%3 ,  $ [  K_ª .  ƒ; A  B%3
)* B%B" >% *K915" U ‹1« m% */K5 A B%–K5 >% 9*K1P n o1P Q 5" 1E0 › ( , $ m% ƒd: )-49< ,$ q4G_P
M91` ž75" #$%&=5" ¢w& q: .¬ %C&J S575; 'l© AB%3 ]^ AB%3 ,$ [K_ª n+; E§'l" .1( 2.3";
>% ?K5" , $ ) 5‰" ) ?5 ; p) `…%H" >% &4GH" 8 Ž C- [ K_­ ' l© A B%3 r K- M 91` ˆ . ƒ › 1$ AB%3 rK-
pi  /J ¥t E¤ m%  ƒd" ,  $ )  -49< ,  - 2d%  z- %  D& ›<=  9K5 )z  OC5%( r  _3 q%  O&®5 UK1_  5" 8 )z1  ~5"
) `X*K¬{" ) ?K5" , $ 2= 1$ >"d% ~_l" m".x_B" rK- .9_1P §'l: )?5 R"„ƒ" ¯ )(41~5" 67+ rK- AK?_K5;
p†*9“_5" )?5 n+ )?K5" 67+; AB%!" %D( m4/` Q5" )*5;" >%*K915" ,- az1_K5

-!-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

Assembly Languages NY_`#$%&8Z$


%D( m4/` Q5" )*5;" >%*K915" ,- %D( =1_5 )`X*K¬{" )?K5" ,$ 2=1$ >"d%~_l" m.x_OP )?5 n+
p%+a£; Sub R'±; Store °w3 ; Add )J%g^ M’$ AB%!"
S5T rK- ‘%’$
Load A
Add B
Store C
n  G5 ˆŠ 4  ² ³%  _N %  D&J )  `X*K¬{" )  ?K5" ,  $ 2'  ~_œ >%  9K\ m.x_  OP )  ?K5" 67  + q "Š'  ‹&;
n \ ) 5‰" ) ?5 ]^ † *9“_5" ) ?5 M `4–_( m4 /` ž7 5" assembler † 9Œ" r9 O` %$ 4+; )5‰" )?5 ]^ %F4Ÿ
)  *K91( m%  */K5 #$=  H" kP%  - r  K- r  /KH" …4  DŒ" M  *K/P ,  $ U£'5%  (; E%+7  *wCP †*o_  O`; A  B%!" %  D9Dw`
, $ . `.15" ) (%_\; ) J'1$ A Ko_` S 5T q MW% OH" i O(: M 3 . C- )/ L$ . c4P ” 5"e %$ Ž&: ˆ^ )<=5"
a’ G5" ) (%_G5 me— 5" az G5" …4 DŒ" M K/P §' l: >%?5 8 aGw_K5 ›<=H" †J… %$ "7+; E>%9*K1_5"
pn5%15" §4_OH" >"T )<=5" >%?5 ”&%GJ >%9*K1_5" ,$

High Level Languages a$(b$%&L/#MA%&S%c&89]$%&S(Z$


m4/` ´*3 %D*&%1$ ¢wC( )`…%15" )`X*K¬{" >%9KG5" µ1( m.x_OP ´*™ ”z_\ >%?K5" 67+;
Q5" Compilers >%‡„$ ]^ ³%_N %D_/(%O\ >%?K5" 67+; E>%zc"45" ,$ .`.15" 7*wC_( %DC$ '$: M\
šd%1_H" )*g%`'5" M$"415"; >%ƒ—15" m.x_OP >%?K5" 67+;pE)5‰" )?5 ]^ ¥'$";"¤>%9*K1_5" M`4–_( m4/P
S5T ‘%’$ p%D*K-
Sum = A + B+ C
S 5T; ) 5‰" ) ?5; † *9“_5" >% ?K( )&d%/H%( ›<=H" '‹& )Dc; ,$ )(4£'$; )KDB =_1P >%?K5" 67+;
‘%G B%z5" EC++ EC ) ?5 >% ?K5" 67 + ) K’$: , $; E%D$".x_ B%( M\%LH" M3; %D9DJ; %D_(%_\ )54DO5
p%+a£; Java %J%€"E ADA"…‰" EBasic SO*z5" EFortranq"'Pd4w5" EPascal
¯ S575; %Š _ƒ; SKD_OP )5‰" )?5 ]^ ‘%- §4_O$ >"T )?5 ,$ #$%&=5" M`4N )*K9- q: m4K1H" ,$;
)‡„( m4/` ž75"; Interpreter'Ow$ #$%&'( m.x_OP ´*™ n5%15" §4_OH" >%?5 ,$ ¶O& '`4oP
p7*wC_5" b%CV: "'oB "'oB …4G5"

-$-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

q4GP compiler Uc„H" m".x_B%( )‡„5" )*K9- ,$ )Y%C5" )‡„H" #$"=5" q: ,$ U£'5%(;p
M91P )?K5" ,$ )xO& …4c; Mhw` Ž&: ˆ^ ¥Interpreter) 'OwH" m.x_OP Q5" #$"=5" ,- 7*wC_5" 8 @'B:
>—`.1_5" M\ ,$ b%D_&ˆ" .1(; pf*–~_5"; )J%g{"; š7!"; a*?_5" )54DO5 S5T; 'OwH" m".x_B%(
q4GP r_3 )`7*wCP )xO& ³%_&^; #$%&=5" )‡„5 Uc„H" m".x_B" U_` Ž&J )*W%D& )xO& ]^ ‘4I45";
pAB%!" rK- %DK*?LP .C- S5T .1( 7*wC_5" 8 @'B:
& &&&
& 89]$%&8de<&8Y_If&&&&&&
ˆ; q4<=H" U+ 2./1H"; 2a’G5" >—GLH" M! #$"=5" )(%_G( m4/` ž75" q: m4K1H" ,$
>ˆ%Œ" r_ 8 UF )c%!" '’GP; ž4*3; UD$ U+d;… q ‘"43" ,$ ‘%™ UDC- b%C?_Bˆ" ,GZ
u snP‰" M915 S5T;
pAB%!" †$ M$%1_5" i*OzP; M\%LH" M! )wK_xH" )9‹&" b%C(; #$"'( )(%_\ u t
)9‹&" 8 ¨.N Q5" M\%LH" M3 ;: ‘%o-: ,$ ¨.Ÿ %$ R—I^ ,- )K$%G5" )*54·OH" u v
p)wK_xH"
p>%/*zo_5"; >%?K5" ,$ a’\ 8 )wK_xH" m.x_OH" )Dc"; b%C( u y
C )?5 m.x_OP —
Š ’9J .!"#$% &' ()*+,- Windows Unix M’$ )wK_xH" M*?L_5" U‹& b%C( u }
pUnix M*?L_5" m%‹& b%C( 8
p)*KV%9_5" ; )*9ƒ'5" )oK_xH" )9‹&" 8 )wK_xH" )Dc"4H" #$"'( u ¸

& S(Y9]$%&82(dg
d"'9_ B%( d4o_P Q5"; ".c )9DH" >%-%C~5" ,$ n5%!" %&'~- 8 >%*<=5" )-%CI =_1P
2' D$ ›<= $ A Ko_P )-%C ~5" 67 + q J S57 5; E)*5‰" >%zB%!" )-%CI 8 MW%F" d4o_5" )“*_&
'`4  o_5"; m4  K15"; >".“_  OH" M  G( m%  H^ ]^ )J%  g{%( M\%  LH" M  3; M  *KN r  K- 2d.  /5" UD`.  5;
) wK_xH" U‹C 5"; #$"=5" '`4oP )z\"4$ "41*o_O` r_3 S5T ; >%zB%!" )-%CI; AB%!%( kK1_H"
p>%zB%!" 8 m./_5" ,$ r9‹15" 2…%w_B—5

-%-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& hQF(i

)zB%C$ >%9KG( )*P‰" >"d%z15" M9\: -1


ppppppppppppppppppp Eppppppppppppppppppppp EppppppppppppppppppM*?L_5" #$"'( )K’$: ,$ u :
u sn+ )*O*Wd @"4&: )V—V ]^ >%*<=5" U¹O/º P» u 
ppppppppppppppppppppppppppppppppppppp u t
ppppppppppppppppppppppppppppppppppppp u v
ppppppppppppppppppppppppppppppppppppp u y
ppppppppppppppppp Epppppppppppppppp Epppppppppppppppppppp EpppppppppppppppM’$ §4_OH" )*5%15" AB%!" >%?5 ,$ .`.15" .c4` u ³
pppppppppppppppppEpppppppppppppM’$ %$ M91( m%*/K5 AB%–K5 ro
º 1»P ppppppppppppppppppppppp ,- 2d%z- 4+ AB%!" #$%&'( u …

)·±%j" >"d%z15" m%$: ¥×¤ )$—-; )–*–~5" 2d%z15" m%$: ¥.¤ )$—- †g -2
¥ ¤ m.x_»OH"; AB%–K5 )&4GH" )`…%H" >%&4GH" ›( i*B45" d;.( m4/P M*?L_5" #$"'( -/

¥ ¤ )<=5" >%?5 MDB: =_1P )5‰" )?5 -0

¥ ¤ 2Š '%z$ %+7*wCP U_` n5%15" §4_OH" )?K( )(4_GH" #$"=5" -1

¥ ¤ )5‰" )?5 ˆ¼^ UDw` ˆ AB%!" -2

¥ ¤ )5‰" )?5 ]^ )<=5" )?5 M`4–_( m4/P >%‡„H" -3

-&-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& aV(j$%&B!D$%
& Problem Solving &8>?@A%&B)&
&

& E-F%.G%
>%*$ed"4j"; kJ._5" iW"'l m".x_B%( )KGLH" 67F M!" i*oª; )KGLH" M*KN 8 2.-%OH"

EH%.I,%
rK- 2d./5" S`.5 q4G` 2.345" 67+ M9GP %$.C-
)*-'w5"; )*O*W'5" )KGLH" b"Xc: )J'1$ -1
)KGLH" M! )(4KoH" >%c%*_3ˆ" .`.N -2
#$%&=K5 kJ._5" )o`'l UBd; †g4( )\d%LH" -3
& )KGL9K5 M!" )*$ed"4l )(%_\ 8 )\d%LH" -4
&
& &&&&E'/>JA%&K%3,%&L/#M<
‚100 )zOC( 2d".€" 67+ q%/P^ ]^ d._H" M~` q:
&
& >%-%B 8&&&&E5QF.#>$&NO/#A%&PO/$%
&
& E-.2(MA%&BR(6/$%
UKƒ
„J…

& E-F%.G%&S(T>J#<
)/(%O5" AW%/!" †*‡ e%*_c"

-'-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& aV(j$%&B!D$%
& 8>?@A%&B)&
Problem Solving
& 8<.=<
E)*W"4L15" rK- .9_1P ˆ; )zP'$ )/`'±; 2d%D$ n+ )<=5" )oB"4( M\%LH" M3 rK- 2d./5"
.-"4/5" 67+ µ1(; ES5T rK- .-%OP Q5" .-"4/5" µ1( @%zP%( %D9K1P; %D(%O_\" ,GZ 2d./5" 67+;
u sn+; š;'1H" š4OK*w5"; ng%`'5" >d%G`… ,`d %+'\T
p2.+%LH"; )('“_5%( S5T ”zV "T^ ˆ^ )9KO$ )/*/3 bn ž: ‘4zƒ ,GZ ˆ u t
pS5T ,G$: %9K\ 2.- b"Xc: ]^ %D9*O/P; %Do*OzP U_` )Kh1$ ;: )KGL$ M\ u v
]^ ³d._5" UV UDw5" )KDO5"; )o*Oz5" b"Xc%( b.z5%( S5T; )*/oC$; )9‹C$ )/`'o( 'GJ u y
p)KGLH" ,$ b%D_&ˆ" U_` r_3 "7G+; A1I" b"Xc"
pM!" M9_G` r_3 b"Xc" †*9€ )1c"'H" u }
%$ %D&: ˆ^ n&;„G5^ AB%3 ‘;: )-%CI ,$ m%-y Mzƒ %D1g; ¯ .-"4/5" 67+ q: ,$ U£'5%(;
"Š.c UD$; žd;'g )KGLH" .`.N; [`'1_5 U‹CH"; .*€" aGw_5"; Em".x_B—5 )!%I; )/zo$ ”5"e
M! 24ol ‘;: qJ S575; EAB%!" †$ M$%1_5" .C- )I%½; )–*–I #W%_& rK- ‘4~–K5 nB%B:;
p%D9DJ 4+ )KGLH"

8>?@A%&1e0
)€%1$ ,$; p)KGLH" UDJ m.15 S5T; %D*K- n+ Q5" )/*/!" ,- "Š.*/1P '’\: 'D‹P Š%9W"… M\%LH"
M! ];" 2.-%/5" rK- ‘4~!" ,GZ .`'P %¾ .\|_5" rK- ¿CP Q5"; >d%G`.5 n5;" 2.-%/5"
u sn+; )KGLH"
t 2.-%ƒ
‘4z/H" M!" rK- ‘4~–K5 >%zKo_H" M\ .`.N; %DP%*WXc M\ UDJ ˆŠ ;%² )/W%J )`%C1( )KGLH" MK3
p)KGL9K5 ‘4z/H" M!" rK- ‘4~–K5 ž…À` %$ M\ UDJ;
8 )(4KoH" #W%_C5" §4_O$ .`.N A¡ "75; pM!" "7+ k*/–_5 M915" ,GZ [*\ ›( EM3 .c; "TJ
67+ k*/–_5 )$e—5" MW%B45" S57\; )$4K1$; )–g"; š".+" q4GP q: A¡ %9\ ];" M3"'H"
-(-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

f*–~5"; .*€" UDw5" S57\; M!" [~& M’Z )KGLH" UDJ q: 4+ 2.-%/5" 67+ ¿xK$; E š".+"
pf*–I; )–g"; #W%_& %Š 9W"… no1` )KGL9K5 M$%G5";

& &&8>?@A%&1YM=k
)KGLH" fz~P n5%_5%(; E)KGLH" …%1(:; >—*~wP R4g; Ž5 %Š 1zP …"…X` )KGLH" UDJ 2…%`X(
E”ƒ45" ¢w& 8 M*I%w_5" 67+ M\ †$ M$%1_5" A1~5" ,$ M1¡ %¾ E%34g;; %Š P%zV; —
Š *~wP '’\:
u s rK- ¿CP Q5"; >d%G`.5 )*&%’5" 2.-%/5" fg4` "7+;
v2.-%ƒ
rK- bXc M\ rK- X\d UV µ1z5" %Dh1( rK- 2.9_1$ a£; )o*O( b"Xc: ]^ )KGLH" UO/P q: ‘;%3 Á
,GZ S57(; E )KGLH" U*O/_5 )wK_xH" ˜'o5" ,$ .`.15" m".x_B" ,GZ d%±{" "7+ 8; p Á2.3
)*&%’5" 2.-%/5" ,$ )*5%_5" )*-'w5" .-"4/5" rK- ‘4~!"
:v 2.-%ƒ
M$%G5" M!" rK- M~ r_3; E)1(%__$ )o*O( ¥b"Xc:¤ M\%L$ )-49< ]^ )KGLH" U*O/P ‘;%3
4+ )KGLH" U*O/P ,$ 0'?5"; p§'l" 4KP 2.3"45" )o*Oz5" )*-'w5" M\%LH" M™ )*KI" )KGL9K5
‘%9+^ m.- A¡ ,G5; EŽ1$ M$%1_5" MDO` r_3 §'l" b"Xc" aV|P ‘X-; i/J .3"; bXc †$ M915"
,$; Eb"Xc" nƒ%( ,- %Š *W%D& )5;X1$ q4GP q: ,GZ ˆ Ž& )KGLH" ,$ §'l" b"Xc" Ž( m4/P %$
;: Ž( 'V|_P §'l" b"Xc" q ˆŠ ;: Ž1$ M$%1_5" U_`; Ž5 '‹C` q: A¡ )KGLH" b"Xc: µ1( q: .\ÀH"
µ1( †$ M$%1_5" d"'GP ,9h_` S5T qJ M\%LH" ,$ a’\ M3 .C-; pŽC$ #_CP Q5" #W%_C5" rK- .9_1P
A¡ ¥>ˆ%!"¤ M\%LH" 67+ M’$ 8; E"pppppppd%“_5" #W%_& E ›GKD_OH" M’$ @%g;"; >ˆ%!"
%Š *J%\ ¥MW%OH"¤ M\%LH" 67+ .3: M3 q%\ "T^; p)`…'w5" >ˆ%!" †$ M$%1_5" )*w*\ rK- .*\|_5"
p>ˆ%!" †*‡ 8 )D(%LH" M\%LH" MG5 M!" "7+ m".x_B" .*1` q: #$=9K5 ,GZ %Š –*–I;
v2.-%ƒ
2…%-{" AKo_P ˆ Q5" >%*K915" ‘X- ‘;%3 %+d"'GP …%1` Q5" >%*K915" µ1( ,9h_P )KGLH" ”&%\ "T^
p2…%-{" AKo_P Q5" SKP ,$
AzOP Q5" )I%j" >ˆ%!" µ1( …4c45 ¨.Ÿ "7+ qJ :.zP ,`: ,$ d'/P q: †*o_OP ˆ ”C\ "T^
S57\; )I%j" >ˆ%!" 67+ ‘%9+^ U_` q: .*wH" ,$ q4G` )5%!" 67+ 8; p%DK~J .C- %Š c%-e^

- )-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

%D*J %« >ˆ%!" †*‡ †$ M$%1_5" ,GZ M!" )`%D& 8 UV )`".z5" 8 )1J%C5" a£; 2.*wH" a£ >ˆ%!"
pR„/H" M!" rK- )o*Oz5" >—`.1_5" µ1( b"'c^ .1( S5T; )I%j" >ˆ%!"
³v2.-%ƒ
M3 ]^ ‘4I45" .C-; 2d4DLH" >ˆ%!" ;: )o*Oz5" >ˆ%!" 8 M\%L9K5 M3 …%¡^ ‘;%3 )`".z5" 8
p2./1H"; )I%j" >ˆ%!" M9L*5 M!" "7+ '`4oP ,GZ f*–I; 0
à '$
)*g'$ #W%_& rK- %DC$ ‘4~!" .C-; 2d4DLH"; )o*Oz5" >ˆ%!" †$ M$%1_5" q: #_C_O& 2.-%/5" 67+ ,$;
#W%_& rK- ‘4~!" †*o_O& Ä "T^ %$:; p)I%j" >ˆ%–K5 M3 ]^ ‘4I45" )*&%G$^ rK- †“L` S5T qJ
S5T ¿xK&; p2./1H"; )I%j" >ˆ%!" 8 )–*–I #W%_& rK- ‘4~!" †*o_O& ,KJ )o*Oz5" >ˆ%!" 8
p"7G+; A1I%J A1I" ]^ ³d._P UV )o*Oz5" b"Xc" †$ M$%1_5%( :.zP q|(

& &Bl(@A%&B)&8Y>_2
"7+; )`%C-; biz( kzoP q: A¡ %D&: %9\ E)wK_œ ˜'o( kzoP q: ,GZ M–K5 )`…ÀH" .-"4/5"
)’5%’5" 2.-%/5" Ž–g4P %$
y2.-%ƒ
m.x_OP ´*™ 2….1_$ >"4ol rK- U*O/_5" q4G` q: A¡ 2a?I m%Oƒ: ]^ )KGLH" U*O/P .C-Á
ÁS5T .1( )I%j" M3"'H" ]^ ‘%/_&ˆ" U_` UV ];" M3"'H" 8 )$%15" .-"4/5"
rK- X*\„5" AKo_P 2'l|_H" M3"'H" %9C*( )1B";; )$%- >"d%z_-" AKo_P M!" 8 ];" M3"'H"
top-down MwB" ]^ rK-" ,$ )/`'o( š'1` %$ "7+; Å%j" ]^ m%15" ,$ ‘%/_&ˆ"; M*I%w_5"
)*K9- 8 )*B%B" 2.-%/5"; pb"Xc: ¸ 24ol M\ 8 )9O/H" b"Xc" ….- e;%“_` ˆ: R„/`; pdesign
b"Xc" 67+ M3 q4G` q:; Eµ1z5" %Dh1( ,- b"Xc" ‘X- ,GZ r_3 U*O/_5" '9_O` q: n+ U*O/_5"
%+'`4oP; %D(%O_\" ,GZ 2=j" 67+ q: ˆ^ 2=l; )*5%- 2d%D$ AKo_P U*O/_5" rK- 2d./5"; p—
Š DB
p%D_*9CP;
} 2.-%ƒ
Áf*–I; M$%\ Ž&: ,$ .\|_5" U_*5 R„/H" M!" )1c"'$ A¡ M3"'H" ,$ )K3'$ M\ 8Á
. 1( p) K3'$ M \ . C- ) 1("'5" 2. -%/5" k *zoP A ¡; )*J%\ q4GP ,5 M–K5 2.3"; )1c"'$ q: S5T Æ1`
4 KoH" k /Ÿ q% \ "T^ §' C5 R„ /H" M!" 8 '‹C5" 2…%-^ A¡ b"Xc" ;: )*-'w5" #$"=5" ,$ .3"; M3

- -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

M \ › ( k J"4_5" , $ . \|_5" A ¡ ) *-'w5" #$"= 5" ‘4 K3 †*9Y .C-; E n-'w5" #$%&=5" "7+ ,$ )ƒ.(
>ˆ%  !" M  \ q%z  O!" 8 7  l|P %  D&:; 4  KoH" k  /N %  D&: ,  $ .  \|_5"; )  *-'w5" #$"=  K5 ‘4  K!" 67  +
;: ‘. 1` ;: š% h` q: A ¡ % $ %Š ·*  .Y š4B S&J )3„/H" ‘4K!" )1c"'$ 8 ……„P ˆ "Š al:; p)I%j"
p"pppppppppppppppš7Ÿ

& Algorithm and Pseudo Code&&&&nR%o$%&3/?$%+&pq&F%/m%&


)(%_\ M*I%wP 8 Ml.& q: Mzƒ; )*<'( )5|O$ )`: M! aGw_5" >"4ol %Cg'1_B" q: .1(
p¥1-t¤ MGL( ›z$ 4+ %9\ ›_K3'« 'Z M!" q: ‘4/& )5|OH" M! med"4j"
];" )K3'H"
%DK9¬; kzB %9*J %F %Cg'1P >"4ol 2.- ,$ q4G_P; )5|OH" M3 8 q%O&{" d;… M’¦ )K3'H" 67+
snP|` %9*J
)5|OH" Ä%1$ .`.N u
#W%_C5" U+:; E%F nB%B" š.F"; E%DP%*o1$ )J'1« S5T; E%+'I%C- M*KN u
U`./P 2d4I S57\; E%D*J #W%_C5" 0'- …"'H" 2d4~5" n+ %$; E%DC$ )(4KoH"
p>%*o1H"
)5|OH" M3 )/`'± 8 aGw_5"; ´–z5" u
)$4G² )`…%15" )?K5%( %DC- =1` E)zƒ%1_$ )KOKO_$ >"4ol 8 M!" ,`;.P u
%9\ EAlgorithm med"4j%( n9OP %D-49< 8 >"4oj" 67+ png%`'5" koCH%(
flowchart kJ._5" )o`'½ š'1` %« %DC*( %9*J Ç%zPdˆ"; >"4oj" 67+ M*’¦ ,GZ
M*~w_5%( 0'1_& š4B; – )5|OH" M! m%15" koCH" MOKOP 8 .-%OP nG5 S5T; E
ppM~w5" "7+ 8 %/3ˆ kJ._5" iW"'l; me d"4j" ,$ M\ R'L5
#$%&=5" )(%_\ u

- "-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

)5|   OH" .   `.N
Definition of
Problem

• •••••
!"#$$$%&' !!"#$% ($$$)*+
Problem Analysis
%&!!!!'()*

#$
!"
!"#$$$%&' !$$$$),-.'/0
•••• •••••••••• Algorithm

1,2$$$$34"' !$$$5267
Program

.TU 1,2$$$$34"' !$$$89:

Q$$$$R2S' 1,2$$$34"' ;2$$$<0= !$$>?2@


1,2$$$$34"' H2$$$$)<I&' J$$$CK

Errors List Byte Code Data


P Checking

($$O

!"#$$$%&'

;2$$$$<0A' B)C$$$D:

1?2$$$6G"' .'L$$$MN 1,2$$$$34"' E$$$)FG:


Execution of
O utput Results
Program

QR2S' Z'L[6R25 !"#%, (O (O'9, Y 1-1X (VW

- #-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

!)32\"' !*O9&'
!b*5 c/6V&' 1,234"' !8d5 =Le: f"'T a!"#%&' (O P ]%F3 QR2S' .TU (\^ !*O9&' _E`T
mLnLo' m./D"' P 1,234"' pFq Z/rn gs t,T aCompiler ghd&' !<R'/5 !"i' !b" jN k"2I"' l/6%&'
(V|"25 2}G, mU2F6R~25 ZL[6%&' Z/r)" akh.2u' vR/"' jN 1?26G"' w'90x y"z LI5 _E)FG: g6n {6O
Q‚ ]3ƒK 1,234"' P ;2<0= U/hT !"2O P 2,= 1,234"' P ;2<0= U/hT ZL€ LG€ y"zT _Ln9n E"'
LI5 gs ;2<0= „TL5 1,2395 {*€ (D… {6O 'EV`T !)32s m9, !8d"' U2I: gs ~† T= ;2<0A' _E` B)CD:
1,234"' E)FG: g6n y"z

& &&IAlgorithmsH&&C(D<EF%/G%
a2$$Vn9,=T 2$$5T.T= P a‰$$R'T (V$$|5T ak$$ˆ2&' „9$$r"' P a!$$),-.'/u' !$$>*7 ‡,L[6$$R' L$$r"
„/$)59b"' ‹6$W' L$@T (?2$%&' t$, !"#$%, ($O T= aH2$>}&' t$, !$>}, E)FG6" ‹)@L"' ŒM/"' aŠI: ‡327T
k,-.'/u' {R/, t5 L> aT9I&' g*%&' H2)ˆ2n9"' Ž2€ gR' t, !>*V"' _E`
9I: ‘)O „i' aQR2S'T H2)ˆ2n9"' Z/*€ P a‰R'T 2<3 {*€ a!),-.'/u' !>*7 ZL[6%:T
’2}3#5
kI”52$$6: (V$$|5 2$$`•– T= a!$$)r<G, T= a!)52$$%O !$$)*>€ E$$)FG6" a!$$e:9&' YH2$$>)*I6"'X H'/$$<u' !$$€/>“
g—G,T (%*%6,
t, mLOT 2}%FG5 46I: m/<0 (7T a˜I5 9sN 2}™I5 a!e:9, H'/<0 t, „/V6: !),-.'/0 = „N
š60'T aH2),-.'/u' š6025 H'/<u' _E` g›O Œ*6œT a!),-.'/[*" (,2V"' ;2Ge"' H'LOT
’!),-.'/u' {GI, Bˆ/n k"26"' ž2\&'T H'/<u' y*: E)FG65 „/,/rn tnE"' a2[WA'
’ž2\,
P 2}e):9: tVŸ !)r<G&' (S' H'/<0 „ƒK š
† \, T3,T2,T1 ,’ m.'9S' H2h.U vR/6, Lh/3 „= 23U.= 'zN
’!)"26"' !),-.'/u'
T3,T2,T1 ’ m.'9S' H2h.U g)@ =9@' ’jTA' m/<u'
’!"U2I&' t, aAV am.'9S' H2h.U vR/6, Q%O' ’!)32\"' m/<u'
AV = (T1 + T2 +T3) / 3
!›)6G"' ‰e ' ’!\"2\"' m/<u'

- !-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

’90¡ ž2\,
.T9$, L$I5 a k€9$|"' c2DG"' ‡b*5 f"'T aCM a!nLrG"' ]"'/,= t€ Z am27£"' Q%¢ „= J[W U'.=
¤ (IFn Œ)VK a]:-/O P k`T a2})*€ 9>@ ž/O
„ƒK 'E"T a c2DG"' ¥"2e"' ž2&' !>)@ t, a2.5% !e%G5 Q%+ m27£"' !>)@ „= T9I&' t, ’(S'
’k"26"' /CG"' (€ 2}e):9: tVŸ (S' H'/<0
CM a c2DG*" ¥"25 Lr3 ž2, t, ]:-/q 2, !>)@ =9@' ’jTA' m/<u'
Z = .025 CM !"U2I&' t, a Z !rC6%&' m27£"' !>)@ Q%O' ’!)32\"' m/<u'
Z !›)6G"' ‰e ' ’!\"2\"' m/<u'

& Flow charts&& J0.#$%&KL%:M


-/,. Z'L[6R25 a˜Ie5 2} 2e:.' !)F)7T !"#%&' (O H'/<0 „2)5 P ‹KL6"' v?'90 ZL[6%:
Y1-2X g@. (V|5 !G)e, -/,9"' _E`T a(S' H'/<0 B)ˆ/6" !)Oš<M'
& RJ0.#$%&KL%:M&N%."#6%&8DOPQ
’!):i' ./,A' a1,2395 = !5267 (e@ ‹KL6"' v?'90 Z'L[6R' L?'/K g`= t,
%%A!!BC%@>,?!!51%;!!<=%:%68-!!951%6!!7%*!!4(+"51%01(!!"2+3%*!!+,-./,%&'(!!)% ! "#$ ¦
U-O/P-OT%R/IS%-O/P1Q4%;,%*3N951%J1KLM%6.4%*+,-.31%*H-IG1%;,%DE.F
%J-"Z[1%*)-`S%@>,1?31%:%&_-W%]^$%\31%J-"Z[1%XB2Y$%R+W%>,?51%QW-9$ UV
%6I%01("e%@ ^"E51%69+9/31%]dS%R+W%-Ob-Y/c1%Qa/#P%\31S%%@-OE,%*B^"E51
% U>,?51%fQ3%*3N951
%@*Wh94%@*3N951%J1KLM%;,%JKL%kM%:%@0lPQ#$%kM%i-Z_j%h,M%>,?a+3%h9B$ Ug
UQPQL%;,%-O/,h4%@*3N951%*n1'_%&_-WG%*L-71%mS_S
%v8-w_%*#4-/,%h,M%stuP%@0-Whr/31S%0q-a/Iq1%-OBb%hp.$%\31%68-951%: Uo
%671%01("Z%DBb%hO}$%{"2|%;#/9P%z%1=j%@>,?51%R+W%-x w-y%1xh,M%@69+9/31
% Usd1S%6.Y4%*9B8h31
%
%

- "-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

Il")G1 6.Y31 ( K,h31 ) 3!$&' >?@!

!"#$%&' ()"*# 6A ()'+, (1)


( STRRT / STOP )

-'$./ 6A 0".1/ (2)


( INPUT / OUTPUT )

2)3456 (7,"89 B"7CDE (3)


( CALCULATION AND STORE )

$)$:5 (4)
( DECISON )

;'<61 6A <'$=5 (5)


( LOOPING )

FE$G !"#$, H"E+IJ' (6)


( CALL SUBROUTINE )

!"#$%&' $7J K"L5' (7)


( FLOW LINE )

M,<6 N7OP5 (Q:# (8)


( CONNECTOR )

R"S)/6 T7C@5 (9)


( COMMENT )

%
% vbQ/31%{81he%*BIl")q1%€(,h31%%1-2%~6.y
%
- "-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

%:%@-x #Lh,%@68-951%„#4%i(+I%ƒBau$%:%*+a#/951%vbQ/31%{81hZ%‚(n'%?/#$ U
%68-951%],%*wlW%-…%&QPQL%68-9,%67%-x I-/r,S%@*O4-Y,%fhZM%68-9,%6I
%-O#ŒP%\31%‚(nh3-4%@Š‹<%*3-71S%@vbQ/31%{81hZ%‚(n'%DˆtY‰/b%@*3(+‡1%*†Q^31
% %U1%UUUU1ŽQ9,%SM%@&'-aW%SM%-x /B4%DaBau$%QEW%k'-a#51%QEO51

& C0.#$%&DE%:F&G%/HI&
% “-a<S%0-B+a#31%{81hZ%;,%’9B8'%@’W(T%‘-E<%mN4%i(^31%;.†%@‚-W%6.Y4
System Flowcharts %ƒ}E31%”n%{81hZ%M
%6a#/9$%\31S%@-<”–S%]T-u51%:%@*BnQE…1%&KOL[1%ƒBau$%QEW%{81he1%;,%•(E31%1‹<%‚Q2/9P%
%{˜Œ31% {td% &KOLMS% @*B8(Œ31% 'Sh51% 01'-yjS% @Š-B51% 0-T1KZ% :% *,1(#31% 6p,% @*B$1=% ƒ.—% *a}TM
%’tP%k‹31%6,-.31%{"251%*4-p|%@-E<%vbQ/31%{81hZ%?/#/b%@iS™t31%”"^$%š1h4M%:%&'1h71%0-L'_S
%;.†S% @6,-./51% ‚-}E31% '-Hj% 6Z1_% @-<Q#4% -|S% @-O+tw% -|% *+Ih,% 6c% @*rBœSS% @*wlWS% @›B$h$
% “ $NP%-|%{81he1%Š‹<%D,Q^$%k‹31%'SQ31%XB2+$
%6O9P%ABC%@‚-}E+3%*TŸ(.51%fhZ[1%01("e1%;,%&("Z%6c%]w(,%’t$ ž 
%0-B+aW%h9BP%-£%@h}E31%_h|%D+c%‚-}E31%:%¡Q¢%6+Z%kM% -Y/c1
& U¤B3-./31%6wN4%S%@&KOL[1%*T-B)
& UDE,%]w(,%kM%:%‚-}E31%>,-Th4%R+W%lx t^/9,%Mh"$%Qw%\31%0lPQ#/31%J1hLj%6O9$ ž V
& U‚-}E31%¦j%-…-Z_j%¥(+"51%0-B"#51%;W%0lBur/31%m-B4% ž g
& U‚-}E+3%Q#51%>,-T?31%;,%*4(+"51%SM%*#w(/51%>8-/E31%•1(TM%;W%0lBur/31%m-B4 ž o
& U*BE#51%*9n¨51%:%&_(L(51%*a}T[1%*B^t4%@‚-}E31%{4'%§hH%m-B4 ž 
% Programs Flowchart% %>,1?31%”n%{81hZ%%%¥
%©3=S% @-,% *3N9,% 67% ]d($% \31% @*9B8h31% 01("e1% m-Bt3% @{81he1% ;,% •(E31% 1‹<% 6a#/9PS%
%:%-OE,%6c%*rBœSS%]w(,S%@671%01("Z%h8-n%’4%@*B^"E51%0-wl#31%’t$%@*BIl")1%‚(n'%6.Y4
% U*3N9a+3%6,-Y31%671%'-Hj

- #-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

% %“ <%*9B8'%•1(TM%*#4'M%¦j%Š‹<%>,1?31%”n%{81hZ%¤BEu$%;.†S%@1‹<
& &&&&&&&&&&&& &&Simple Sequential Flowcharts&&&{B9t31%]4-//31%{81hZ&&J &&&&&&&&&&&&
& &&&&&&&&&&&&Branched Flowcharts&&&•Shr31%01=%{81he1&&J V&&&&&&&&&&&&
&&&&&&&&Simple – Loop Flowcharts &&&&&QI1(31%m1'SQ31%{81hZ&&J g
Multi – Loop Flowcharts&&&&&_Q#/51%0-T1'SQ31%{81hZ&&J o&&&&&&&&&&&&
%ªhy% $NP%-aBb%iS-E/TS%@•1(T[1%Š‹<%;,%QI1S%•(T%;,%hpcM%6aYP%mM%QI1(31%>,-T?+3%;.†S%
U6Bur/3-4%•1(T[1%Š‹<
%

& &&&DKLM$%&N;(##$%&DE%:F
%>,-T?31%*P1Q4%;,%@*aB^/9,%*+9+n%6.Y4%@{81he1%;,%•(E31%1‹…%671%01("Z%›B$h$%ƒ/PS%
%:%_(L(,%(<%-£%0-T1'S_%kM%;,%(+«%-ac%@vPh"31%R+W%0-Whr$%*PM%-OBb%‚Q#E$%ABC%@D/P-OT%R/I
%-OBbS%@% (1-3)%6.Y31%:%’t,%(<%-ac%•(E31%1‹…%‚-#31%6.Y31%m(.PS%U{81he1%;,%fhZ[1%•1(T[1
% %U¤w(/31%ŠQ#4S%b %¡Q71%‹BrE$%DB+P%ƒ¬%a %¡Q71%‹BrE$%ƒ/P
% U-<‹BrE$%¥(+"51%*B+a#31%SM%¡Q71%­#$ (1-3)%6.y%:%&_'1(31%@a%¡Q71%*a+cS

% :(1)i-p,%%%
% U›/.31%]B4%Kch,%;,%¥-/c%J1hy%*B+aW%6pF%\31%>,-T?31%”n%*"PhZ%ƒn'1
% “671%%%
“*B$®1%01("e1%-O+pF%mM%;.† (1-4)6.Y31%:%>,-T?31%”n%*"PhZ
%
% ¥-/.31%›+H1%-1%%%
% &'($-r31%ƒ+/n1%-2%%%
% '_-–S%&'($-r31%]b_1%-3%
%

- $-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

&

&

START START

Order Event
book a

Receive Event
bill b

Pay bill
Event
& Leave
c

STOP STOP

% 1-4~%6.y% % % %%%{B9t31%]4-//31%{81hZ%1-3~%6.y

- %-
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

V%i-p,
START
% *I-9,%_-¯G%flow chart%~%>,-T?31%”n%*"PhZ%ƒn'1
% R~%‚(+#,%-<h"w%¤uT%&h81_%{B°S
%
READ % “671
R
% R2%±%&h81Q31%*I-9,%
2 R = &h81Q31 {B°
% %g²o%kS-9$S%*/4-¬%*P_Q#31%-O/aBwS%*BtPh^/31%*t9E31 %± % %%ABI
PI = 3.14 % &h81Q31%h"w%¤uT%6p†% %”˜/,%R%-aEB4
% “% $NP%-ac%*3N951%Š‹<%6IS
%
% %R %*aBw%Mhw1 -!
2

% g²o%%±pi %±% %%%*aBw%]d


A = Pi(R)
-"
% A%±% R2%%*3_-#51%;,%A %&h81Q31%*I-9,%›9I1 -#
% C%±%2 R%*3_-#51%;,%C %{B‡1%*I-9,%›9I1 -$
C = 2PI (R)
% A, R, C%“%;,%6c%ƒBw%]tH1 -%
% %1-5%~%6.y%:%*EBt,%*3N951%Š‹<%6I%sd($%\31%>,-T?31%”n%*"PhZ%
%

PRINT
R, A & C

STOP

%
% %1-5~6.y%%
- &' -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& &G+:O$%&P%Q&DE%:R%

%SM%;P'-!!B/Z1%’!!4%*+!!d-r,%SM%@'1h!!w%=-!!«q%*!%L-71%›t!!94%m(!!.P%-!!³j%@>,-!!T?31%:%¡Q!!¢%•h!!r$%kM%mj
%>,?!a+3%;!.†%'1h!^31%;!,%m-!T(3%‘-E<S%Uh% Z®1%;W%•hr$%~%6^/9,%vPhH%:%'-B/Z1%6c%”9Bb%@hpcM
% U'1h^31%;,%;P'-951%;P‹<%’tP%1-6~%6.Y31S%@-On'QP%\31%*3-71%›9I%-a<QIM%i-a#/n1

$UO 2! $VOA $UO 2! $%WA


NO YES
?X Event ?

'X$UO Y6"85

% %•hbM%*¬l¬%S=%'1hw%1-6-b~%6.y% % % % % %’Whb%S=%'1hw%1-6-a~%6.y
%
1-~%6.!Y4%sd(,%(<%-ac%’/B$®1%’$'(u31%fQ% Ij%‹ZN$%mM%;.†%•hr/31%{81hZ%m%́%b%‚-W%6.Y4S%
%‹!BrE/31%:% 3-!%/31%¡Q!71%m´!b%ƒ!#T%“µ
% h!Y31%¥1(!L%m-c%1=1%DTM%*}Il,%;.†%% 1-7-a~%6.y%:%U7
%6.!Y31%:%-!,M%Ub%~%¡Q!71%m(!.P% 3-!/31%¡Q!71%m´!b%@%q%“%¥1(!¶1%m-c%1=1%-,M%Ua%~%¡Q71%m(.P
%a~%¡Q!71%m(.P%‹BrE/31%:% 3-/31%¡Q71%m´b%@ƒ#T%“%µhY31%¥1(L%m-c%1=1%DTM%·IlT%-ET´b%1-7-b~
% %¡Q71%m(.P% 3-/31%¡Q71%m´b%@q“%µhY31%¥1(L%m-c%1=1%-,M%@Ub~%¡Q71%D#t/P%ƒ¬
% &hy-t,%b%~

-& -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

NO YES
YES
Condition Condition
? ?

Event a Event b Event a


NO

Event b

(1- 7 - b ) N=Z (1- 7 - a ) N=Z

g%i-p,

% “% +P%-ac% h#51%F(x) %*31Q31%*aBw%_-¯G%flow chart%~%>,-T?31%”n%*"PhZ%ƒn'1

% x x 0
F ( x) # { " x x!0
“671
“ +P%-ac%*3N951%Š‹<%67%>,-T?31%”n%*"PhZ%’tP%1-8%%~%6.y
% X %”˜/51%ƒBw%Mhw1 ž 
% o%&("e1%¦j%›<=-b%qjS%@g%&("Z%¦j%›<=1%1hr) kS-9$%SM%;,%?cM%X %¸T-c%1=1 ž V
% %&("e1%¦j%›<=1%ƒ¬ F(x) =X %;,%F(x) %*31Q31%*aBw%›9I1 ž g
% %F(x) %;,%F(x) %*31Q31%*aBw%›9I1% ž o
% X , F(x) %;,%6c%ƒBw%]tH1% ž 

- && -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

START

Read X

NO YES
X 0

F $x%&= - X F (x) = X

Print
X & F $x)

STOP

(1-8) 6.y

- &( -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

o%i-p,
'Sh51%01'-y1~%*B8(Œ31%”931%01'-yG%>,-T?31%”n%*"PhZ%ƒn'1

% %“671
% %1-9~%6.Y4%’t,%*3N951%Š‹<%6I%

START

Read Green
Color

Yellow
STOP
Pass

Wait

STOP

6.y
(1- 9 )

- &! -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

% %%i-p,
START
% @W%*aBw%¥-97%>,-T?31%”n%*"PhZ%ƒn'1
%X %”˜/51%*aBw%mN!4%-x a+W%*B$®1%0q_-#51%;,
% *,(+#,
Read X
X +1 if x > 0
W = sin(x) +5 if x = 0
2X -1 if < 0
hr) ;, h˜)M hr) ;, ?cM
X?
% “%671
% %6.y%:%*EBt,%671%01("Z
% “ <S%1-10%~
%
W = 2X - 1 W = SinX + 5 W =X+1 %¦j%›<=1%hru31%;,%?cM%X %¸T-c%1=j -!
% V%&("e1
% g%&("e1%¦j%›<=1%1hr)%kS-9$%X %¸T-c%1=j
%¦j%›<=1%hru31%%;,h˜)M%X %¸T-c%1=j%-,M
% o%&("e1
%ƒ¬%%W= X+1 %%*3_-#51%;,%W %›9I1%ž V
Print
X &W
% %&("e1%¦j%›<=1
%%%W= sin (X) +5 %%*3_-#51%;,%W %›9I1%ž g
% %&("e1%¦j%›<=1%ƒ¬
% % %W=2X -1 %%*3_-#51%;,%W %›9I1%ž o
STOP
% X, W%;,%6c%ƒBw%]tH1%ž 

( 1-10 ) N=Z

- &) -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

% “QI1(31%m1'SQ31%{81hZ
%”–%SM%1_SQ°%1_QW%>,-T?31%:%0-B+a#31%;,%*W(a¹SM%*B+aW%&_-WG%-OB31%š-/º%{81he1%Š‹<S% %
%{81he1%Š‹<%¸B»%QwS%U1-11~%6.Y4%’t,%{81he1%Š‹<%6p5%‚-#31%6.Y31S%@01h51%;,%_SQ°
% @{B9t31%m1'SQ31%{81hZ%-T-BIM%Ra9$S%@&QI1S%*^+I%6a#/9$%-OT[%QI1(31%m1'SQ31%{81h`
%
%

#$%&' ()!*+
Condition ,(-. / Event a
? 012+ 3*4
5'67&'
Yes No Yes

[+\&' <$=I)
No
Event a ]<61 NW Condition
?
;"W "D&"^
_$`&' a'Pb
Yes Yes

( 1-11 ) !"
%
% ¼%i-p,
% *,(+#,%-<'-"wM% -uTM%h81SQ31%;,%*W(a¹%*I-9,%_-¯G%>,-T?31%”n%*"PhZ%ƒn'1
% “ <S%1-12%~%6.y%:%*EBt,%671%01("Z%%%%“%671
% R% &h81Q31%h"w%¤uT%Mhw1 ž 
% A%&h81Q31%*I-9,%QLSM ž V
% A,R %;,%6c%ƒBw%]tH1 ž g
% %½%h81SQ31%;,%QPK51%‘-E<%6< ž o
% %&("2+3%QW%ƒ#T%m-c%1=j
% ¤w(/b%%q%m-c%1=j%-,M

- &" -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

% !"#$
AB CD"E4* FG"4* A,+)* A.+HI7 =)>: ?*:@)* <3, &"'()* +,"-. /0 123-4* !"$ 567 8"'9*: ;$
^-) P[.T\ ]ZY* X"$", /:T(, OU ?*:@3) CD"E4* ;-)* /0 VTW <3, SM+N*O)* PQ@3) !".R KLLLLJ
db:T(4* *cB _$"`a)*
gkU: S1-13 J ehi j PE6'$ ef* 8*O[\ gef*
R:+)* <3, "7"i c\ -
l"$", /:T(, mT2, ;$ <n$ eU -!
K MO[p* q* CU>* Ar` /"s /o
u MO[p* qo CU>* Xt /"s /o "$0
ROsc4* &"()* ?:v -"
l&"'()* ;$ +.@$ w"EU eU -#
x MO[p* q* CU>* Ar` /"s /o
yYOIW Xt /"s /o "$0

gPzO{3$
t – t P||7"9t* /O||h€ "$+||E, – u MO||[p* qo  MO||[\ ;||$ !"||HI`t* P||632, /0 qo "||EU }||6'EI)* k||~'E.
M+||, P||$+HI$ MO||[\ qo MT\…||I$ MO||[\ ;||$ !"||HI`t"7 AI||€ "|‚o /*R:+||)* P||632, /ƒ *R*T||h€ :0 "||`*R:G e||#„
x MO[\ qo u MO[\ ;$ MGOr)* }3#‰: X!"#4* *cU j *+N*: "[6-7 "`*R:G w"EU /ˆW *c): X"‡€G",† 8*T$

- "# -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

START
START

READ
Take next R
person

No
A= R2
Age ! 20

Yes

Get him Print


married R, A

Yes
More people? More Circles

No
No

STOP STOP

( 1-13 ) ehi ( 1-12) ehi

- "$ -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

Š !"#$
}6W "4* OI-$ b"‘€R* ’'“. "$+E, XS"‹ 6Œ h6€"$O€0 J "‹ 6Œ €*> "4"7 Ž‰/*@p _$"`a)* ^D P[.T\ ADR*
dZ$ ;$ eY0
"‹ |6€*> P|.c~I)* RO'E|” ’I|‘€ •|)* P|$*Or)* GO|9: MT|hW <|3, –O|H€ /*@|p* e|$ P|632, /0 –O3r4* ;$ g ef*
"4* OI-$ !O”: +E, P.c~I)* RO'E” —3~€: S!"#4* *cU j *‹ +N*: *‹ Z$J "‹ E6r$ *‹+N "4* b"‘€R* e“. "$+E,
gk€…. "2s /Oh€ (1-14) eh()* j PE6'4* ef* 8*O[\ /ˆW k)"I)"7: &O3[4* b"‘€Rt* qo /*@p* j

*>o l Z$ ;$ eY0 "4* OI-$ eU -1


START
(2) MO[p* qo CU>"W Ar` &*O˜* /"s
qo CU>"W Xt &*O˜* /"s *>o:
(4) MO[p*
Is Yes
dP.c~I)* RO'E” ’I‘. -2
d&O3[4* OI-4* qo /*@p* Ž‰ -3
Level " 1
?

dS"‹ H3~$ }63, šW"N :0J RO'E“)* —3™0 -4


Open
OI-$ ›{‘) (1) MO[p* qo +, -5
$@ Feeding
Tap
œO)* <3, z"‘{3) MT$ +r7 MT$ "4*
>%?&
No dAž*G eh(7: &O3[4*
;6*<=
Fill tank
89:&'

Keep Tap
Closed

( 1-14 ) ehi
Ÿ !"#$

- "% -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

œ||'I€ +||r7 8"||632r)* ¡RG* dP67"||-f* 8"||632r)* ;||$ P||,O2  _$"||`a)* ^||D P||[.T\ e||#‰ (1-15) eh||()*
dP[.Tp*
j "|2s N MTs*c|)* /@|£ j 1 "UR*+|H$ q:0 P6ž+'$ P26Y œO7 0+'. CD"f* /0 šN¢` eh()* ;$
!…|-. A¤ k9R"p* ¥DO)* <3,: X?*T\†* v"‡9 !¢\ ;$ XP26H)* mcU œ'[7 –OH. A¤ X(1-16a) eh()*
T||$ƒ* c||‘E. O||‡W *c||B X1 $ 7 /ƒ Xt g œ'[)"||7 &*O||˜* Sl7 F:"||-€ N /@||£ j P||`:@¦4* P||26H)* e||UJ
3 }|6)o "‹ W"|n$ "‹ H7"|D }6W /"s "$ N /@£ j œn6D CD"f* /0 §r. T$ƒ* *cU: N = N + 3 gk)"I)*
T|\0 MT|$ GO|r. A|¤ S (1-16b) eh|()* T¨`*J 1 ;$ t‹ +7 4 F:"-€ N /@¦4* j P`:@¦4* P26H)* ’'“I)
’'|“€ <|IN PH7"|-)* P|632r)* RT|h.: l 4 = 7 e|U !…|-6) k9R"p* ¥DO)* <3, M+.+˜* N œ'[. /0 +r7
<|3, "|E) œ|'© +|Y /O|h.: Xy|YO€ gT$ƒ"|7 _$"`a)* yYOI. "U+E,: 7 F:"-€ N /@¦4* j P`:@¦4* P26H)*
gkU: k)*OI)* <3, N /@£ j 5`@\ •)* A6H)* k9R"p* ¥DO)*

5|YO)* j M+|N*: P|26Y }|6W /@|« MTs*c|)* M+|N: j N A|D* 5|ª ¥|HW +|N*: /@|£ w"|EU gPzO{3$ #
7 kU !"#4* j N /@¦4* j <H'€ P26Y T\¬ /ˆW *c): X+N*O)*

- &' -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

START

N=1
(a)
N

Print
N
N= N+3
(b)
N

No
N = 7?

(c) Yes
N

7
STOP

( 1- 16 )
ehi
( 1- 15 ) ehi

xL !"#$
=||)> T||¤0 "||2W (1-17) eh||i j 1'||$ O||U "||2s ’'||“6) (1-15) eh||()* j "‹ [6||-7 *‹^6||~€ "E¤+||N0 O||)
l^6~I)*
8T\…|€ +Y N ^~I4* P26Y P7"Is MO[\ /0 j ›¦3I. ­+N Fc)* ^6~I)* /0 (1-15) eh()* ;$ šN¢`
F0 /*R:+|)* ;|$ "|‡I`t* +|r7 k€…|€ N ^~I|4* P|26Y P|7"Is /0 §|r. *c|U: lSN = 7 eUJ T.THI)* MO[\ ;,
7 gkU: ¥HW M+N*: P26Y /Oh€ ?*T\†* _ž"I` /ˆW *c): X7 F:"-€ N P26Y ’'“€ /0 +r7

-& -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

P‘3I£ 1)"#4* j _ž"IE)* er9 "® X/*R:G es j œ'[€ 5`"s —7"-)* !"#4* j ?*T\†* _ž"I` /0 1N j
dROsc4* ^~I)* C'-7

START

N=1

N= N+3

No
N=7
?

Yes

Print
N

STOP

( 1- 17 ) ehi

- &" -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

xx !"#$
P6H6Hf* G*+,ƒ* ;$ m bO2¯ G"Q† _$"`a)* ^D P[.T\ ADR*
(X1, X2, ..., Xm)
m
T = $ Xi /o ±6N T G*+,ƒ* P,O2¯ kU P7O3[4* P°6IE)* gef*
i %1

gk)"I)* O{E)* <3, ^-€ /0 ;h‰ ef* 8*O[\


T0 = 0
T1 = T0 + X1 = 0 + X1 = X1
T2 = T1 + X2 = X1 +X2
Tm = Tm-1 + Xm = X1 + X2 + ... + Xm-1 + Xm

gOU <W"h$ ?>O2E7 T“I² /0 ;h‰ *cU ef* ?>O‚:


Ti = Ti-1 + Xi (1)
m qo 1 ;$ i ^~I€: T0 = 0 ±6N
/*R:G e|s j }|I26Y /O|h€ Fc|)* XT O|U +|N*: ^~I|³ Tm .… T1 8*^~I|4* G+|, R"|“I\* "|EEh‰:
<|3, (1) P|)G"r4* P|7"Is MG"|,ˆ7 =|)>: d}|6)o "‡IW"|o G*T|4* X P|26Y "|‡6)o "‹ W"|n$ PH7"|-)* }I26H) P.:"-$
gO{E)*
Ti = T + Xi i = 1, m (2)
d*‹ T‘” F:"-€ T bO2°23) q:ƒ* P26H)* /Oh€ /0 <3,
XMTs*c)* j MT™"()* /v"¦4* ;$ ;h® G+, as0 TWO. /0 }`…i ;$ (2) P)G"r4* j ?>O2E)* C6€T€:
k)"I)"7: (1) P)G"r4* P~6” ;$ e‡D0 (2) P)G"r4* P~6” /ˆW =)cs: XT\0 V*T™0 j "‡$*+¦IDt
dP¯a)* P632, e6‡-€ <3, +,"-€ "‡`ˆW
S"EU 100 F:"-€ m P26Y /0 VTW*J (1-18) ehi j PE6́'2W _$"`a)* ^D P[.T\ "$0

- && -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

STAR
& &-3.C#A%&D(E%F+.$%&GH%:I
T
/O||||||||h€ P||||||||)"f* mc||||||||U j
µr'|||||)* "‡|||||nr7 e|||||\*G 8"`*R:+|||||)*
T=0 "E.+|||) /"|||s *>ˆ|||W œ©"|||HI€ t ±|||6¶
I=1

eh|i T|¨`*J bO|E)* *c|U ;|$ /"`*R:G


m = 100

(1) A|||YR /*R:+|||)* <2|||-6W S(1-19)

Read
"||2E67 Inner Loop "‹ | 63\*G "‹ | `*R:G
X
"‹ ||||69R"\ "‹ ||||`*R:G (2) A||||YR /*R:+||||)*
1||7 —6||-EI)* AI||.: XOuter Loop
±|||6¶ X1`*R:+|||)* ;.c|||U e|||#$ e|||2,
T= T+X /*R:+||||||3) c||||||6‘EI)* P||||||.O):0 /O||||||h€
dk3\*+)*

I=I+1

¥ž*T||· ¥ž*T||p* mc||U 5||6¸ +|Y:


e2rI||||-€ "||||‡`ƒ MG+||||rI4* 8"`*R:+||||)*
No
+||Y: XM+||N*: /*R:G P||H3N ;||$ T||#s0
I& M
8"`*R:+||||)* ¥ž*T||||· "‹ | ||`"6N0 <2||||-€
Yes
P6E2||||n)* :0 P||||'s*Z4* :0 P||||3\*+I4*
FG¹||€ P62||-I)* mc||U e||s: Xnested
Print
2 1
T d+N*: <Er$ qo

STOP

( 1-19 ) ehi ( 1-18 ) ehi

- &! -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

START
& LM&J(K<

"|‡E$º es !O© »"2H)* œ[Y ;$ P,O2¯ œ6[H€ j T9"€ C™T.


Take a
Piece F:"|-. "|‡E$ M+|N*O)* !O|© XM^~|” œ[Y qo XR"I$0 5 ;, +.@.
db:T(4* *cB _$"`a)* ^D P[.T\ ADR* XR"I$0 5
gkU (1-20) ehi j PE6'4* ef* 8*O[\
Pr[Y c\ -1
Cut off a
5m Length
Z$ 5 "BO© Pr[Y "‡E$ œ[Y* -2
lZ$ 5 ;, +.@. kH'I4* eU -3
(2) MO[p* qo CU>"W XAr` &*O˜* /"s *>o
Yes
Is Remainder (4) MO[p* qo CU>"W Xt &*O˜* /"s *>o
& 5m
l"‡r6[H€ G*T4* œ[H)* ;$ +.@$ w"EU eU -4
No (1) MO[¦3) CU>"W XAr` &*O˜* /"s /o
yYOIW Xt /"s /o:
Yes More
Pieces ?

/*R:+)* /0 (1-20) eh()* ;$ šN¢. gPzO{3$ #


No
œ[Y qo M+N*O)* Pr[H)* œ6[H€ ;2nI. k3\*+)*
/*R:+)* e#‰ "2E67 XZ$ 5 "‡E$ es !O© XMG+rI$
STOP
8**T9o "‡63, c‘EI) M+.+9 M+N*: Pr[Y !:"E€ k3\*+)*
dk3\*+)* /*R:+)*
( 20 ) !"

- &( -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& N)OPQR%&B?@$%&J(SC#6(;&T%F+.$%&8UVQ
/¼* "||EEh‰: XP6E2||n)* 8"`*R:+||)*: ¥6||-')* /*R:+||)* –O||‡‘$ 1IH7"||-)* 1€T||H‘)* j "||EWT, +||H)
^||||D ¥ž*T||||p P6N¢[|||”t* vO||||$T)* ;2||| GR*O||||)*½ /*R:+||||3) kN¢[|||”t* eh||||()* –*+¦I|||D*
gk)"I)* O{E)* <3, ½ _$"`a)*
gP6€¼* T”"Er)* qo ?"I¾ "E`0 (1-21) eh()* j šN¢`

I =1

Loop
I=1,N, !

I=I+% Process to
be repeated
Process to be
repeated

I N?

b a

S1-21J ehi

- &) -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

(I) !"#$%!&
& 2i = 1&/01.&I& !"#$'%&()%*+!&(,)-%!&
& 2N&/01.&I& !"#$'%&()3/40%!&(,)-%!
& ( " ) 56* &78&(9/4:&#0;& !"#$%!&<&5 /9=%!&(,)>
&7F>&AB&('GHI!*&()JK!&L!MNO'%&P/-FQ&RSJ&T:/8&U!6*#%!&L!V!WXY&UZ&(1-21-a)&7?@%!&AB&CDE:&
& ][B\I!
& _()%*Z&(,)>&I&^;Z&-1
& _/4J /;Y&`M'NI!&L!V!WXa!&bZ&-2
&<&(cc)%/S%!&5MccNi!&fY&jWk/ccl&hN&(cc)3/40%!&(cc,)-%!&fY&T'ccg*&I& !#cc$%!&(cc,)>&Tcc:/8&!dY&]6!Wcc>&d/cce!&-3
& (4)&5MNi!&fY&m1d/l&noY*&[B/:\%!
"&5 /9=%!&6!#-q !#$%!& p&-4
& (2)&fY&#;&-5
&<&(c0)FB&5#cD!*&(c',u&5MNv&(1-21-a)&7?@%!&<&(5,4,3,1)&('GHI!&L!MNi!&r!#FSs!&/00?t&&&&
&7cF>&AB&()?)J/BMJ*Z&56MGy&L!MNi!&z{1&{H0J&|)D&h(1-21-b)&7?w&U!6*#'%&xDENgn!&7?@%!
&cc$y&mcc0‚*&[B/cc:\%!&<&L/cc)',$%!& #cc;&6/ccGSk!*&h(& c u\%!&(cc)',;&7)4cc~J&:€ccw&AccB&!{cc1*&&_mccs/}!
& _V/Nk+!
&†Eccv&‡WcckZ&(cc,)>&ˆ^c $‰J&Š&!dY /P c ,3! &1&…*/cc~J "&(cc,)>&\ccS$J&](ccƒM„'B
Loop
I = 1, n
&<& 6!Mc%!&xDENcgn!&7?c@%!&FcG9 "&(,)>&W8d&Œ#;&(%/D&<*&h‹%d
&5 /c9=%!&(c,)>&UM& ?J*&21-22.&7?@y&ŽMB&M1&/,8&(1-21-b)&7?w
.)*+*'%,-'. /0-12 (1 #$%&' "
( 1- 22 ) 7?w
& ‘&r/B
&xDENgn!& 7?@%!& Œ!#OSs/y& W3!*#%!& AB& (D/~B& /’a& (6)& r/B& 7D& #;Z
& _U!6*#'%
& (1-23)&7?@%!&<&(0)FB&/,8&7}!&L!MNk&&&&
& “&r/B
& &|)” _U!6*#'%&xDENgn!&7?@%!&Œ!#OSs/y&(11)&r/B&7D&#;Z
m = 100
(1-24)&7?@%!&<&(0)FB&x1&/,8&7}!&L!MNk&&&&
- "# -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

START

T =0
I=1
START
m = 100

Loop Loop
I = 1, m I = 1, n

Read Read
X R

T = T +X A = ! R2

1
Print
R, A

Print
T
1

STOP STOP

( 1-24 ) 7?w ( 1-23 ) 7?w

- "$ -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

& C(DEF.G
&/4$FN)s&–%!&()3/40%!&[J!M0%!*&^N—&78&†!#1Z&P/0)FB&2jh`hZ)&L/NNOI!&•6 ! ( 3)
_&x=3 , Y=5&h&^N—&78&V!pY&(0)FI!&L/,)'$S%!&{)H0J&#0;&ms/}!
&
S T AR T

R ead
X, Y

Y ES NO
X < 0

YES NO Y ES NO
X > Y X < Y
?

X Y
F" F" F " X2 F " Y2
X-Y X -Y

Print
X, Y , F

STOP

( )

&
&

- "% -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

&
START

I=1
S=0
N=0

Read
X START

No
X # 0? K=1

I=I+1

S=S+X
Y = K2 + 1
N= N+1

Y = K2 + 2
No
I = 20 Print
Y

Yes

Print
S, N K $ 100

STOP STOP

( ! ) ( " )

- !& -
*+,%&-.)/$% '()&& ! !"#$%
8>?@A%&B)&+&8<.=< 56(7%&89:; 40&123

]()%/S%!&L/)Bp6!Mi!&AB&E8&7™&–%!&[B/:\%!&˜s&(N9Wk&Rs6! -4
2Z.
1 …*/~J N (,)>*&h!PWHg&SUM (,)>&šŽ -1
SUM fY N š›! -2
1 5MNi!&fY&m1d!&Rœ&h()%/}!&N (,)>&fY 1 Ž€l N<6 T:/8&!dY&-3
SUM (,)>&šFQ! -4
2`.
X (,)>&ZW>!& -1
(5) 5MNi!&fY&m1d/l& X 0 T:/8&!dY&-2
(5) 5MNi!&fY&m1d!&Rœ &h W = x 2 & 5x % 4 (% /$I!& 5, W (,)>&m~D! -3
W = -X + 13 ](% /$I!&AB W (,)>&m~D! -4
W$ X –,)>&šFQ! -5

]()JK!&L/:!Ÿ>n!&AB&ž78&`/~}&[B/:\%!&˜s&(N9Wk&Rs6! -3

f(X) = | X-3 | 2Z.


n
SUM = ' i &&&&&&2`.
i "1

F = n! = n(n-1) … (2)(1) 2j.


]|)D&S (;M, !&<& #;&\8Z&(,)>& /’Y&2 .
S = [A, B, C ]
_/P 9#;/GJ&Rœ&P/)%p/0J&/4~H:&S (;M, !&<& #;&W¡gZ&(,)>& /’Y&2c1.
]()y/~}!&('~'~%!&<& #;&\8Z&(,)>& /’Y&2p.
a1, a2, a3, ….., an-1, an

_£y/~%!&r!¤~%!&<&()y/~}!&('~'~SI!&<& #;&W¡gZ&(,)>& /’a&[B/:\%!&˜s&(N9Wk&Rs6!&2¢.


]/P )%p/0J&P/F)JWJ&()%/S%!&(;M, !& *#D&mJWJ&|)”&[B/:\%!&˜s&(N9Wk&Rs6!&2¥.
a1b1, a2b2, a3b3, ….., an-1bn-1, anbn

-! -

Вам также может понравиться