MidtermProject.pdf

 Pascal Programming
!" "# $ %&"#" ' (" )* +
, "
-+ %. "
)
•
+
$ /" 01 .) '
•
2#+3 %. Project1-???????? "
45 . e-mail 1 . +"+ #"6 ????????.pas "# +
, ' 78#" pascalassignment86@gmail.com
•
'"
, 9:
#
;< =#
> %. ? . "'@ 78A !" #+ "# +"+
•
$ '"
, +#
,. =$ %. BC %
D' .
•
E
•
8" /F"+ 2#+ 1 =" . #G ". +8 #H. +"+ I 1 )<"J K L" (" M'
•
4G )N!F ( ="#
!8+ (" . $ %.
Add
4G) %O:" /F"+ H- %. " =P F "' %. "# /F"+ 1
Delete
4G) MQ< /F"+ H- (" "# " =P F %!OD "# /F"+ 1 )
/F"+ #$
Edit
4G) A'"O "# " =P F R *" %!OD "# /F"+ 1 )
/F"+ #$
Sort
B ?.#G !" %. %!H.@ 2#+ K)
/F"+ #$ 28" . "# /F"+ H4G)
Print
$ B /F"+ H- #
!8+ L" (" N6 %G )#
> #+ 4G) ST UV"+ ) H+
. '"
, $ B =#
> %. )U, K$.
Save
4G) ,W std H . O 1 #+ "# /F"+ HLoad
L" (" X. "
) .#G '+) #"6 %YO< #+ "# /F"+ H- K.#G (" std O 1 L!OD .
4G ,W ZG #+ save #
!8+ . #.+ "# 3 #+ +"+ R "# U O =
! K#
!8+
#
!8+ )U, (8N( K2[G LI LX K2#+ +"X V"\O" Y !F. '.6 +G %O:"
. . . O 1 +G Load ". +#
H (" +0!8" K Print
]
•
Snake
•
(. -
#
Y4 %. +8 #H. )*O"D '#G ". 7*8 .( '.6 D+ K%. L" (" M'
+
"+ ( 2#+3 (" "
) "# (. L" (" 04T %
1 8" snake
http://www.behdad.org/downloads/nibbles.exe
?'+ V'G "# 58 !"# #"C Division by zero ^, . $ %U"
=#
>#+@
#G )!<"# ". 4G (8%N$ "# snake 01 (. ).
, < )*O"D _- (" . $ %.
4G +0!8" ) %. %. $ 1+\ ". ( ) <" (" "
)
U 'G (" +0!8" . +G ST %0> # . ’*’ !G"#G 1 %G H
4. "%.
readkey `."
(" . #G L" ". '+ R "# 3 ? Ka K]@ G%0> +5 H6
I. 1G gotoxy
?E
(" +0!8" . ’*’ !G"#G * R %G '+ R "%
D%. "# N6 %< #+ $ %!$
%.
G 'G 7U (" . #GL" ". +D =#
> ? ↓ ↑ ← → @ G%0> U 'G
4G +0!8" %!O b!HD
?]
)-, ;O !G"#G K ’*’ !G"#G U %. +"+ R "# %4(c d# crt `."
(" +0!8" .
4G ST ?space@
?
+"+ %"+" +
, G< %. AC!H e, #+ .f 58 . space !G"#G %G '+ R "%
D%. "# %.
delay `."
(" . #G L" ". 4G R 3 G< U eCO KU 'G (" +0!8" . 4G +0!8" keypressed
?a
(" "
) #G L" ". 4G N ?%, E [
g h@ .f 7
J . # 1 %. "# N6 %< !G"#G
L4j' 4G #"I "# # '%, (" 1 ' =P! 3 #+ +0!8" E 7
J %. %"#3 1
# D" [
g h@ +
$ c*5. 3 G< U %G $. "%
D %. # U R N snake (. 4'
?+"+ G< kT 8 %. "# 3 KkT 8 G +( . "
) K4G G< 8"# 8 %.
?i
•
#+ K random `. (" +0!8" . %G =#
> L" %. 4G N R! 7
J . # 1 %. "# N6 %. #
?%, a [
g h@ )!.f +"X K3 +#
, . # 7
J 4G ST #!8 1 %0> (" )O+P %^C 1
'+ #"6 %, E .". "# # 7
J %. "!." #+ . V"\O"
?
". +G A8# "# %0> M"J" '#"
+ l4G 4.3 )G "# +
, %. 'm ,3 %< #+
%. +#
,. . +G " V'G # U '#"
+ %. +#
,. . '+ #"6 (!" ?l@U +"X #
4G) " V"\O" 3 (!" ’*’ !G"#G
?n
% #+ #"
+ +/" .@ (. %. o! <" +G %O:" K.#G )!<"# ". B84 'R ST
K# d# KG< 58 N6 ("@ =Y4 R .6 K?X. <" #+ # 58 V"\O" %0>
. . . (. +G 0+ K.#G MJ (" ?%4(c d#
+
. '"
, !F. +"+ I (" L" )G #
J %. L4j'
a
•