Assignment1.pdf

1
1391
: !
" #$% &
:
' #"
15 :
('
)
!" #
//ID: Your Student ID (First Last Name)
( $ ,-.
/ assignment#assNom-StudentID
.
(
$
.
.>.
*.
% $&
"+ * + .
> 5
.
&. 3 $
% 6 78%
&
%
AP_2013_SPRING@GOOGLEGROUP. COM
$&
9.
%20 $
9.
3
"+
5 9: * + # ;<
:
/
'
* 4 5
assignment#assNom-StudentID
.
IJ
* + $
. ap.2013.spring@gmail.com 0 1
.
.
)
#
4
# ;<?.
%
.
D E F G&
=&
# 7
> 3 $& ;<
%
#
*
H .
(Calculator.cpp) F L $
> T
:%
&
() U& ( # L #
=5
.1
.
(QuickSort.cpp) # . 9% .2
.
(*/-+) P * 5 4 3 ? 3 L )
.F L$
?
.
. 3 >+
W
3 XY :
#
67
5
() */-+
"Syntax Error" &
= =&'
L#
P 5*
< .
L
=5
>. =&'
P 5#
3
#
=5 3
. 3XY :
. . 4 (
!
3 >+
V G"% &
&
#
* L
8
'#' &3 3 3
:
Z
#
1*-2
1+(2*(-2+1))
1+1(2)
2-(*(3))
#
:
:
-2
-1
3
Syntax Error
.
3
]&.
%
string.h 0[3 \ %
$ $&
.? 3 9% Quick Sort ^
1
# : :%
?
.$
1, 67, 87, 35, 6, 8, 23, 10, 6
:35 [_ .? 3
F G&
1 7 4 5
1
5
# 5 + 8% )
&
1, 67, 87, 35, 6, 8, 23, 10
:?
/
1
7 >. > .
&< U
5 bY > .
1 7
5
&cY 3
5
1
L
1, 6, 8, 23, 10, 35, 67, 87
:?
1, 6, 8, 23, 10
67, 87
# . 9% #
Z
.?
. 3XY
9%
1# '
G
1 # ' J.
!
1
) J.
. .
. &
+E
1
:#
1#
34
# &
3
#
%
3
]&.
L
1
0
!
$&
)
: :%
(Car.cpp) # . * = % >3
3 >.
<d #
* = % Z&.
.>.
7
# . * = % e U >3
% 5[)
.
- Name ( ‫ را ر‬٢٠ ‫) دا ر‬
-Price (double ‫ورت‬
‫دد‬
- Color
- Serial number
- Used (boolean‫ورت‬
)
% =5
.3
.
$&
!< &
:
3 <
#
<d $
)
:
/4
&
# &" >.
5[)
/
- Show list of all cars
- Search by :
Name - Price - Color - New or used car
- Find the maximum price
- Find the minimum price
.
]&. struct & . .
=
# >
+ H \ % f1
/
. 0 &.
5
3
main \ % #
*= %
8G" 3
: :%
3 >/ :2 : %
.
.
☺
g+
3 +E
H 3
\%
:3 : %
3