In-Class Exercise #12 - Data...

7
!"#$%&'' )*+,-.'+/ 0&1& 2.'3&%.4&1.5" 675%31.5"8 !" $%% &'$()*+ ,-. *'-.%/ (01-20 )'0 3($"/ 4-)$%+ $* )'5* 2$%.0 $//* "- $//5)5-"$% 5"6-(1$)5-" 75) 5* $ *.1 -6 $%% -)'0( 2$%.0*8 $"/ 5) 1$90* 5) /5665&.%) )- &-1:$(0 )'0 -)'0( 2$%.0* ;5)' -"0 $"-)'0(+ <, -20(= 0>)0"/5"? )'0 ($"?0 -6 )'0 ,=$>5*@ 69+%% & $%+&, 715,:8 $;&,1 < !**.0* $"/ :-**5<%0 65>0*A B-(5C-")$% $"/ 20()5&$% %5"0* $(0 )-- 25*.$%%, &-1:%0> $"/ /-"D) $// $",)'5"? )- )'0 5")0(:(0)$)5-" -6 )'0 '05?') -6 )'0 <$(* 6=,&>;.-&% $5?>%+*.1:8 4'0 ".1<0( %$<0%* $(0 .""0&0**$(,@ 4'0, $(0 (0/."/$") <0&$.*0 )'$) 5"6-(1$)5-" 5* $%(0$/, -" )'0 $>5* 6=,&>;.-&% $5?>%+*.1:8 4'0 20()5&$% $>5* 5*"D) %$<0%0/@ E0 /-"D) 9"-; )'0 ."5)*@ F$" $// )- )'0 )5)%0 -( )'0 $>5*@ 6@++A 15 9+%% & $%+&, 715,:8B G.??0*)5-"A !"#!$%!& '#!(&%)( "))*$(%)! ")'#'$%!& "+"+&#%(& "+("!'%+ "+#!#&%(' "*!"+*%"! $"+''%&( (#)'$%!! ""("#&%#' ")$"&#%'! !)))) ')))) $)))) "")))) "+)))) "!)))) ,-./"" 012/"" 3-4/"" 564/"" 3-7/"" ,8./"" ,89/"" 58:/"" ;16/"" <=>/"" ?@A/"" B1=/"" !"#$%&' )*&+, Order Date Sum of Extended Price !"""" #"""" $"""" %%"""" %&"""" %!"""" '()*%% +,-*%% .(/*%% 01/*%% .(2*%% '3)*%% '34*%% 035*%% 6,1*%% 789*%% :;<*%% =,8*%% !"#$%&' )*&+, -./ Order Date Sum of Extended Price

Transcript of In-Class Exercise #12 - Data...

!"#$%&''()*+,-.'+/(0&1&(2.'3&%.4&1.5"(675%31.5"8(!"#$%%#&'$()*+#,-.#*'-.%/#(01-20#)'0#3($"/#4-)$%+#$*#)'5*#2$%.0#$//*#"-#$//5)5-"$%#5"6-(1$)5-"#75)#5*#$#*.1#-6#$%%#-)'0(#2$%.0*8#$"/#5)#1$90*#5)#/5665&.%)#)-#&-1:$(0#)'0#-)'0(#2$%.0*#;5)'#-"0#$"-)'0(+#<,#-20(=0>)0"/5"?#)'0#($"?0#-6#)'0#,=$>5*@#69+%%(&($%+&,(715,:8(

$;&,1(<(

#

!**.0*#$"/#:-**5<%0#65>0*A#

• B-(5C-")$%#$"/#20()5&$%#%5"0*#$(0#)--#25*.$%%,#&-1:%0>#$"/#/-"D)#$//#$",)'5"?#)-#)'0#5")0(:(0)$)5-"#-6#)'0#'05?')#-6#)'0#<$(*#6=,&>;.-&%($5?>%+*.1:8#

• 4'0#".1<0(#%$<0%*#$(0#.""0&0**$(,@#4'0,#$(0#(0/."/$")#<0&$.*0#)'$)#5"6-(1$)5-"#5*#$%(0$/,#-"#)'0#$>5*#6=,&>;.-&%($5?>%+*.1:8#

• 4'0#20()5&$%#$>5*#5*"D)#%$<0%0/@#E0#/-"D)#9"-;#)'0#."5)*@#F$"#$//#)-#)'0#)5)%0#-(#)'0#$>5*@##6@++A(15(9+%%(&($%+&,(715,:8B(

G.??0*)5-"A#

#

# #

!"#!$%!&'#!(&%)(

"))*$(%)!")'#'$%!&

"+"+&#%(&"+("!'%+"+#!#&%('

"*!"+*%"!

$"+''%&((#)'$%!!

""("#&%#'")$"&#%'!

!))))

'))))

$))))

""))))

"+))))

"!))))

,-./"" 012/"" 3-4/"" 564/"" 3-7/"" ,8./"" ,89/"" 58:/"" ;16/"" <=>/"" ?@A/"" B1=/""

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

Order Date

Sum of Extended Price

!""""

#""""

$""""

%%""""

%&""""

%!""""

'()*%% +,-*%% .(/*%% 01/*%% .(2*%% '3)*%% '34*%% 035*%% 6,1*%% 789*%% :;<*%% =,8*%%

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

Order Date

Sum of Extended Price

$;&,1(C(

#

!**.0*#$"/#:-**5<%0#65>0*A#

• G'$/5"?#&(0$)0*#$#/5*)($&)5"?#H-5(0#0660&)#6=,&>;.-&%($5?>%+*.1:8#• 4'0#IJ#&'$()#5*#1-(0#25*.$%%,#&-1:%0>#71-(0#5"98#$"/#/-0*"D)#(0$%%,#$//#$",)'5"?#)-#)'0#

5")0(:(0)$)5-"#-6#)'0#&'$()#6=,&>;.-&%($5?>%+*.1:8#• H-*)#51:-()$")A#4'0#:50#&'$()#5*#.*06.%#;'0"#*'-;5"?#(0%$)520#0660&)*@#J5*&-.")*#$(0#

5"/0:0"/0")#$"/#*'-.%/#<0#&-1:$(0/#5"#$<*-%.)0#)0(1*#*5/0=<,=*5/0+#"-)#$*#(0%$)520#&-1:-"0")*#-6#$#;'-%0@#K-)0#)'$)#0$&'#/5*&-.")#5*#$(-."/#LM+#<.)#<,#6-(&5"?#)'01#5")-#$#:50#&'$()#5)#1$90*#)'0#%$<0%*#10$"5"?%0**#$"/#-20(*)$)0*#)'0#2$%.0*@#6@++A(15(9+%%(&($%+&,(715,:D(=,&>;.-&%(!"1+E,.1:8B(

• 4-#(0$%%,#5"&(0$*0#)'0#/$)$=5"9#($)5-+#(01-20#)'0#20()5&$%#$>5*#%$<0%*#$"/#N.*)#%$<0%#)'0#5"/525/.$%#<$(*@#6=,&>;.-&%($5?>%+*.1:8(

#

# #

3-%/#IIM#

O%$P".1#ILM#

G5%20(#IQM#

0.'-53"1(F:($3'15?+,(9:>+(

!"!#$

!"%&$

!"&%$

'()* +),-./01 2.)345

!"#$%&'()*+),&#(%-./)0+1.

Customer Status

Average of Discount

$;&,1(G/(

#

!**.0*#$"/#:-**5<%0#65>0*A#

• !6#)'0#?-$%#-6#)'0#&'$()#5*#)-#*'-;#)'0#&'$"?0#5"#/5*&-.")*#-660(0/#1-")'=)-=1-")'+#)'0"#)'0#%5"0#?($:'#5*#65"0@#

• B-;020(+#,-.#/-"D)#"00/#)'0#'-(5C-")$%#-(#20()5&$%#%5"0*@#R01-20#)'01#)-#(0/.&0#)'0#/$)$=5"9#($)5-@#6=,&>;.-&%($5?>%+*.1:8B(

• S-.#$%*-#"00/#$#%$<0%#6-(#)'0#20()5&$%#$>5*#-(#$#%$<0%#6-(#)'0#)5)%0#)-#5"/5&$)0#."5)*@##69+%%(&($%+&,(715,:8#

G.??0*)5-"A#

#

# #

!

"!!!

#!!!

$!!!

%!!!

&!!!!

&"!!!

'()*&& +,-*&& .(/*&& 01/*&& .(2*&& '3)*&& '34*&& 035*&& 6,1*&& 789*&& :;<*&& =,8*&&

!"#$%&'()*+,"-#$

Order Date

Sum of Total Discount

!

"!!!

#!!!

$!!!

%!!!

&!!!!

&"!!!

!"#$%&

'()*+%&

'(),-

.

/%'(012)!"#$%&'(

Order Date

Sum of Total Discount

$;&,1(H/(

#

!**.0*#$"/#:-**5<%0#65>0*A#

• 4'0#IJ#0660&)#(0T.5(0*#1-(0#20()5&$%#*:$&0#-"#)'0#:$?0#$"/#)'0#$"?%0#1$90*#5)#1-(0#/5665&.%)#)-#(0$/#6=,&>;.-&%($5?>%+*.1:(I($;&,1(J3"K(."(1;.'(-&'+8B(

• 4'0#&-"0=*'$:0/#<$(*#1$90#5)#020"#'$(/0(#)-#/0)0(15"0#)'0#*$%0*@#!)D*#/5665&.%)#)-#*00#;'0(0#)'0#<$(#0"/*#75@0@+#)'0#0>$&)#2$%.0#-6#)'0#)5:#-6#)'0#&-"08@#6=,&>;.-&%($5?>%+*.1:8B(

• U#<$(#&'$()#5*#65"0#'0(0#*5"&0#)'0(0#5*#&-1:$(5*-"#-6#*$%0*#<0);00"#*)$)0*@#U#%5"0#?($:'+#6-(#0>$1:%0#;-.%/"D)#<0#$*#0660&)520#<0&$.*0#)'$)#51:%50*#$#)(0"/@#6@++A(15(9+%%(&($%+&,(715,:8B(

• !"#)'5*#&$*0+#'-(5C-")$%#%5"0*#;-.%/#<0#'0%:6.%@#3(0$)0(#?($".%$(5),#71-(0#)5&9*#-"#)'0#20()5&$%#$>5*8#;-.%/#$%*-#<0#'0%:6.%@#6@++A(15(9+%%(&($%+&,(715,:8B(

G.??0*)5-"A#

#

# #

!"#$%

&

'&&&&&

(&&&&&

)* +) +, -. /) 01 .) 21 23 2, 3+ 34 ,0 5) 61 7+ !3 8! 9) :)

!"#$%&'$%()&*+&'#$#(Sum of Extended Price

!"!!!!#!!!!$!!!!%!!!!

&!!!!!&"!!!!&#!!!!&$!!!!&%!!!!"!!!!!

'( )' )* +, -' ./ ,' 0/ 01 0* 1) 12 *. 3' 4/ 5) 61 76 8' 9'

!"#$%&'$%()&*+&'#$#(&,-.Sum of Extended Price

$;&,1(L/(

#

!**.0*#$"/#:-**5<%0#65>0*A#

• V.$")5),#$"/#0>)0"/0/#:(5&0#*'-.%/"D)#<0#-"#)'0#*$10#?($:'#*5"&0#)'0#."5)*#$(0#/5660(0")+#<-)'#5"#10$"5"?#$"/#5"#1$?"5)./0#7%$(?0*)#T.$")5),#W#XIY+#%$(?0*)#0>)0"/0/#:(5&0#W#ZXL+[XY8@#

o 6@++A(15(9+%%(&($%+&,(715,:D(=,&>;.-&%($5?>%+*.1:8B(• U#'-(5C-")$%#<$(#&'$()#5*#$#%5))%0#0$*50(#)-#(0$/#)'$"#$#20()5&$%#<$(#&'$()#*5"&0#5)#&$"#<0#*)(0)&'0/#

20()5&$%%,#7*00#G.??0*)5-"#X8@#\20"#5"#)'5*#&$*0+#5)D*#/5665&.%)#)-#)0%%#)'0#<$(*#$:$()#6(-1#0$&'#-)'0(@##o 6@++A(15(9+%%(&($%+&,(715,:D(=,&>;.-&%($5?>%+*.1:8B(

• !6#;0D(0#(0$%%,#&-"&0("0/#$<-.)#&-1:$(5"?#6.%%#:(5&0#)-#0>)0"/0/#:(5&0+#)'0#/5*&-.")#;-.%/#:(-25/0#)'0#*$10#5"6-(1$)5-"#.*5"?#-"%,#-"0#*0)#-6#<$(*@#!)#*)5%%#$%%-;*#.*#)-#&-1:$(0#:(-/.&)*+#$"/#5)#&$"#<0#*-()0/#5"#$*&0"/5"?#-(/0(#)-#$5/#5"#)'0#&-1:$(5*-"#7G.??0*)5-"#Q8@#

o 6@++A(15(9+%%(&($%+&,(715,:8#• V.$")5),#*-%/#&$"#<0#(0:(0*0")0/#-"#$#*0:$($)0+#<.)#*515%$(+#&'$()@#

o 6=,&>;.-&%($5?>%+*.1:8##

# #

!

"!!!!

#!!!!

$!!!!

%!!!!

&!!!!!

&"!!!!

&#!!!!

&$!!!!

'()*+,-.//01

203/01

,4567,-+6/

465165801,9):+53

4;61:

4;+<,'1/01

=3,46>.1

,?+6301)1:

4;0*0(6@+

A3*65:0/3,@+

,20.

5:0:1+

B(C/+D

E303/

F+1

+1,?;0

.E.

F05:01G0(6,9+()10

F5686@,(6H

F.@

7561@3@6(303/

F.D

7I5,F.D

D)7I5*;+1

JK.56

JL0;

,40<<++

M017

.

N6.:;)1:,N.D

7+5>6*K,N6:+5

N0.)3)616,B)+5E,O0/,P+L

L+5Q

-61>)D

.L,R5)+@

,'LL

(+3

-6H)(6K.

-0GG65+((6,@),F

)08611

)

S05/;T00

@3,45617

+55E,?6.*+

U5):)16(,B561K<.5/+5,:5V1+

,?0W

+

PX/Y,*;)10

)3

P+5/;,P63/)+3

Z.+

30,-

61*;+:0,N6,P63/056

[68)0(),'

1:+(0

[\@,M68)65

[\33(+,?6.+5K56./

?*;0

::),?*;0K0(6@+

?)1:6L05+61,O0KK)+1

,B5)+@

,-++

?)5,[0

@1+E=3,?*01+

3

?L+:+3)(@

965/+,6.,3.*5+

9;V5)1:+5,[0

3/756/T.53/

90.5/)]5+

^1*(+,207

=3,U5:61)*,R5)+@

,P+653

_+:)+`3L5+6@

a6613+,K0+

K+1

!"##$%&'()$*)&+"+$,-.)/0)0$%&'()$*)&+"+$1"2/.'.3

?.D,0<,B.((,P5)*+

?.D,0<,AH/+1@+@,P5)*+

?.D,0<,Z.61/)/E

Values

Product

Sum of Full Price Sum of Extended Price Sum of Quantity

G.??0*)5-"#X#76-(#6.%%#$"/#0>)0"/0/#:(5&08A#

#! "!!!! #!!!! $!!!! %!!!! &!!!!! &"!!!! &#!!!! &$!!!!

'()*+,-.//01'1)2++3,456.7

802/01,96:;,-+:/9:<+<;+6/,=)+660/9:61:6>01,?)@+62

9A:)9A:1@

9A:6/6+.2+,>+6/+9A+B,'1/01C2,9:D.1,4+:201)1@

9A+B,'1/01C2,E.<;0,-)F9A0*0(:3+

9G/+,3+,8(:5+H2*:6@0/2,3+,80.6@0@1+

I)(0,-)FI(J/+<5202/

E+)/02/E+1+1,4A0.5.

E10**A),3),1011:,'()*+E06@01K0(:,?+()10

E6:13<:C2,8052+1;+665,476+:3E6:>:3,(:F

E.:6:1L,I:1/L2/)*:E.3;6:1323:(202/

E.(:,-:(:**:E.<;M6,E.<<);M6*A+1

E.2/:BC2,N1M*O+;6P3QO.6:

Q1(:@3,4)((Q70A,90BB++

R:*OC2,S+T,H1@(:13,9(:<,9A0T3+6N01;.

U:OO:()OPP6)U:.@A)1@,U.<;+6D:*O,U:@+6

U01@()B+,?0B.U0.)2):1:,I)+65,V0/,=+77+6,4:.*+

U0.)2):1:,V0/,47)*+3,WO6:-:1D)<.7,X6)+3,'77(+2

-:2*:6701+,I:;)0()-:F)(:O.

-)2A),N0;+,S)O.-0KK:6+((:,3),E)0>:11)S063YW2/,-:/D+2A+6)1@

S06/AT0032,96:1;+665,4:.*+S.S.9:,S.ZYS0.@:/Y96+<+

W6)@)1:(,I6:1OB.6/+6,@6[1+,40Z+W./;:*O,U:@+6=\/],*A)10)2

=:>(0>:=+6/A,=:2/)+2

^.+20,9:;6:(+2^.+20,-:1*A+@0,U:,=:2/06:

_:*(+//+,90.63:>:.(/_:>)0(),'1@+(0

_AP1;6M.,N(02/+6;)+6_P3,N:>):6_J@+3+,2)(3

_P22(+,4:.+6O6:./4:2`.:/*A,'(+

4*A0@@),4*A0O0(:3+4*0//)2A,U01@;6+:32

4)1@:706+:1,V0OO)+1,I6)+3,-++4)6,_031+5C2,-:6<:(:3+

4)6,_031+5C2,4*01+24)607,3C]6:;(+

47+@+2)(34/++(+5+,4/0./?:6/+,:.,2.*6+

?+:/)<+,9A0*0(:/+,8)2*.)/2?A[6)1@+6,_02/;6:/T.62/

?0B.?0.6/)a6+?.11;6P3

b1*(+,80;C2,W6@:1)*,X6)+3,=+:62c:(O0)1+1,2.O(::

c+@)+Y276+:3d)<<+62,@./+,4+<<+(O1P3+(

e::12+,O0+O+1

!"##$%&'()$*)&+"+$,-.)/0)0$%&'()$*)&+"+$1"2/.'.3

4.<,0B,HF/+13+3,=6)*+

4.<,0B,I.((,=6)*+

ValuesProduct

Sum of Full Price Sum of Extended Price

G.??0*)5-"#Q#7.*5"?#$20($?0#/5*&-.")#5"*)0$/#-6#6.%%#$"/#0>)0"/0/#:(5&08A##

#

#

!"!!#

$"!!#

%"!!#

&"!!#

'"!!#

(!"!!#

($"!!#

!"#$%&#'()*+,-./'01'2$,3-+/

Product

Average of Discount

!

"!!

#!!

$!!

%!!

&!!!

&"!!

&#!!

&$!!

&%!!

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

Product

Sum of Quantity