You are on page 1of 9

# 1

DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
Instructor: Shu-huar Yeh
O!ce Locat!on : n/a
"#one : n/a
Ema!l : yehshuhuar @f hda. e du
\$E% : http://puma.deanza.fhda.edu/distribute/yehsh/cis-22a/
&ours : n/a
Class meet!n's: AT205 Tue, Thu 6:00! " #:50!
LA% : \$%&'%( See ca)endar entries c*)*red in +reen
"rere(u!s!tes: Ad,is*ry: (n+)ish -ritin+ 2.. and /eadin+ 2.. 0*r &an+ua+e Arts 2..1, *r
(n+)ish as a Sec*nd &an+ua+e 222 and 2234 !athematics ..5 *r e6ui,a)ent.
Course Descr!)t!on: An intr*ducti*n t* c*mputer pr*+rammin+. 'ts primary *b7ecti,e is t* teach
pr*b)em s*),in+ usin+ the 899 pr*+rammin+ )an+ua+e. (mphasis :i)) be p)aced *n structured
pr*cedura) pr*+rammin+ :ith an intr*ducti*n t* *b7ect-*riented pr*+rammin+. ;esi+ned
primari)y f*r c*mputer science and re)ated transfer ma7*rs.
Course ob*ect!+es: <p*n c*mp)eti*n *f the c*urse, the student :i))

• =n*: h*: t* create +**d basic 899 pr*+rams.
• Appreciate :hy a +**d pr*+ram sty)e matters.
• >a,e )earned ,ari*us types *f data and :ays t* hand)e them.
• >a,e de,e)*ped s*me basic pr*b)em s*),in+ s?i))s usin+ 899 c*nstructs such as f)*: c*ntr*)
statements, functi*ns, and array data structures.
• =n*: h*: t* :rite interacti,e pr*+rams usin+ cin and cout *b7ects.
• =n*: h*: t* hand)e input/*utput bet:een a pr*+ram and fi)es usin+ stream *b7ects.
• @e inspired t* )earn m*re ab*ut s*ft:are de,e)*pment techn*)*+ies.
,e-t re(u!re.: Aaddis, T*ny Standard Bersi*n *f Startin+ \$ut -ith 899 fr*m 8*ntr*)
Structures thr*u+h \$b7ects02th (diti*n1 Addis*n -es)ey, 20.2 'S@%: 0-.3-252625-2
Atten.ance )ol!cy: Y*u are eCpected t* attend a)) )ecture and the *n)ine )ab sessi*ns. 'f y*u
must be absent fr*m c)ass, arran+e :ith an*ther student t* share c)ass n*tes f*r that sessi*n. Y*u
sh*u)d p)an *n spendin+ at )east an*ther 5 h*urs per :ee? in the *pen )ab. I you /!s# to .ro)
t#e class, !t !s your res)ons!b!l!ty to .o so0 An unauth*rized :ithdra:a) fr*m c)ass :ith*ut
f*))*:in+ *fficia) pr*cedures :i)) resu)t in y*ur bein+ assi+ned a +rade *f DED 0*r D%8D if y*u
ha,e se)ected the 8redit /%* 8redit *pti*n1.
Sc#olarly con.uct: 'n *rder t* be successfu) in this c)ass y*u :i)) ha,e t* ma?e a c*mmitment t*
studyin+, readin+ the teCt, d*in+ y*ur h*me:*r?, :ritin+ y*ur )ab assi+nments, attendin+ c)ass,
and ta?in+ n*tes. -*rth:hi)e c*ntributi*n and re+u)ar attendance can p*siti,e)y affect the +rades.
Y*u are eCpected t* d* y*ur *:n :*r?. 8*pyin+ *r cheatin+ durin+ a test :i)) resu)t in a zer*
a+e 1 *f 1
2
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
bein+ assi+ned f*r that test. 'n pr*+rammin+ c)asses, students *ften c*nfer :ith *ne an*ther *n
appr*aches t* s*),in+ the pr*b)em: h*:e,er, y*ur s*)uti*ns t* )ab pr*b)ems must represent y*ur
*:n indi,idua) :*r?. Any c*pied s*)uti*ns :i)) resu)t in a zer* +rade f*r b*th parties, and may
resu)t in a fai)in+ +rade. 't may a)s* resu)t in dismissa) fr*m c)ass. )ease chec? the current
Schedu)e *f 8)asses t* )earn m*re ab*ut academic inte+rity, *ther p*)icies, and Student Standards
*f 8*nduct.
&ome/or2: >*me:*r? is n*t t* be run *n the c*mputer 0un)ess y*u :ish t*1. The purp*se *f
the h*me:*r? is t* he)p c)arify the materia) f*r y*u as :e pr*ceed and t* prepare y*u f*r tests,
theref*re, y*u are str*n+)y enc*ura+ed t* d* it.
,ests: There :i)) be p*p 6uizzes thr*u+h*ut the c*urse and a fina). The p*ints y*u earn fr*m the
6uizzes are c*unted as eCtra credit. There :i)) be n* ma?e-up f*r the 6uizzes y*u ha,e missed.
The fina) eCam is *pen b**?, *pen n*tes, n* cameras, n* internet access. Eina) date is sh*:n *n
the ca)endar. Eina) eCam papers :i)) be retained f*r a peri*d *f #0 days fr*m the eCam date.
Laboratory ass!'nments: Y*u :i)) be +i,en indi,idua) )ab assi+nments. A)) assi+nments must be
turned in *n *r bef*re the due date. artia) credit :i)) be +i,en f*r inc*mp)ete assi+nments. E*r
m*re inf*rmati*n *n the +radin+ *f )ab assi+nments, see F>*: &ab -*r?s Are (,a)uatedG
E-tra3cre.!t may *ccasi*na))y be +i,en thr*u+h*ut the c*urse.
Gra.!n': 200 p*ints are a,ai)ab)e 09 up t* 10 p*ints eCtra-credit1. Y*ur fina) +rade is based *n
the percenta+e *f the t*ta) y*u earn4 h*:e,er, if y*u fai) the fina) eCam y*ur fina) +rade :i)) be
)*:ered by at )east *ne )etter +rade.
Act!+!t!es Occurrences "o!nts
&abs See )ab assi+nments .00
Eina) . .00
T*ta) 200
(Ctra 06uizzes, etc.1 .0
"ercenta'e ,otal "o!nts Gra.e
#0 " .03 A-, A, A9
H0 " H#.# @-, @, @9
20 " 2#.# 8- 8, 89
60 " 6#.# ;
0 " 5#.# E
a+e 2 *f 1
4
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
,entat!+e Calen.ar
,o)!cs Sun !*n
Tuesday
-ed
Thursday
Eri
Saturday
5uly
.
st
:ee?
Intro 6721 40 7/1 2 4 4 8
onl!ne lab 10 am
312:40 )m

2
nd
:ee?
9lo/ control 6 : ;
Lab 1 Due
1 10 11 12
onl!ne lab 10 am
312:40 )m
3
rd
:ee?
9!les 14 14 18
Lab 2 Due
16 1: 1; 11
onl!ne lab 10 am
312:40 )m
5
th
:ee?
9unct!ons 20 21 22
Lab 4 Due
24 24 28 26
onl!ne lab 10 am
312:40 )m
5
th
:ee?
Arrays 2: 2; 21
Lab 4 Due
40 41 ;71 2
onl!ne lab 10 am
312:40 )m
Au'ust
6
th
:ee?
Searc# 4 4 8
Lab 8 Due
6
2
Eina) (Cam
6:00 )m < ;:40
)m
; 1
a+e 4 *f 1
4
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
&ere !s t#e lo'!n an. .!al3u) !normat!on or t#e onl!ne labs0
RECURRING MEET & CONFER PARTICIPANT INVITATION
Meeti ng Details
Status: Active
Title: RECURRING CIS-22A-62Y ONLINE LAB BEGINNING PROG
METHO IN C!!
C"lle#e\$G%"u&\$O%#: e A'(a C"lle#e
Cl"se) Ca&ti"': N"
;ate Start time (nd time ;urati*n 8)*sed 8apti*n
2/5/20.5 .0:00 A! .:00 ! .H0 %*
2/.2/20.5 .0:00 A! .:00 ! .H0 %*
2/.#/20.5 .0:00 A! .:00 ! .H0 %*
2/26/20.5 .0:00 A! .:00 ! .H0 %*
H/2/20.5 .0:00 A! .:00 ! .H0 %*
Is Y"u% C"*&ute% Rea)+,
H"- t" C"''ect -it. Y"u% M"/ile evice
Participant Details
Tele&."'e c"'0e%e'ce li'e: 1-213- 312- 3242 5
Pa%tici&a't &assc")e: 641646
5T"ll 0%ee 'u*/e%: 1-777- 776- 3281
G" t" ---9cccc"'0e%9"%#
Clic: Meet ; C"'0e% Pa%tici&a't L"# I'
L"cate +"u% *eeti'# a') clic: G"
Passc")e: 641646
Tele&."'e C"'0e%e'ce <eatu%e
56 - Mute\$u'*ute +"u% i')ivi)ual li'e
a+e 4 *f 1
8
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
FOR ASSISTANCE
CCC C"'0e% Clie't Se%vices - M"')a+ - <%i)a+ /et-ee' 7:44 a* -
=:44 &*
P."'e: 1-664- 6==- 1184 e>t 1836 "% 188=
E*ail: clie'tse%vices?cccc"'0e%9"%#
a+e 8 *f 1
6
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
&o/ Lab \$or2s Are E+aluate.=
A )ab :i)) be assessed :ith a minus 0-1, a chec?mar? 0I1, *r a p)us 091 based *n the f*))*:in+ criteria:

.. >*: :e)) is the pr*+ram structuredJ E*r eCamp)e, are there di,isi*ns int* sma))er tas?s/functi*nsJ
2. >*: :e)) is the pr*+ram d*cumentedJ E*r eCamp)e, ha,e y*u described the purp*se *f each tas?/functi*n
and the eCpected resu)tJ
3. >*: :e)) is the pr*+ram f*rmattedJ >a,e y*u :ritten it acc*rdin+ t* the pr*+rammin+ sty)es described in
the teCtb**? t* he)p readabi)ityJ >a,e y*u used pr*per namin+ c*n,enti*ns f*r the identifiersJ
5. >*: :e)) d*es the pr*+ram satisfy the re6uirementsJ E*r eCamp)e, ha,e y*u c*mp)eted a)) re6uired partsJ
5. >*: d*es the pr*+ram eCecuteJ
6. -hether y*u ha,e ans:ered the 8*de&ab 6uesti*ns c*rrect)y.
&o/ Do >ou Subm!t >our Lab Ass!'nments=
.. Submit the f*))*:in+ fi)es t* the desi+nated ;/\$@\$K f*)der thr*u+h a c*mputer in the AT8 )ab:
a. The pr*+ram s*urce fi)es :ith F.cppG eCtensi*n usin+ the namin+ c*n,enti*n,
FLabN?!rstName?lastName0c))G. E*r eCamp)e, &ab.aLManeL;*e.cpp, &ab.bLManeL;*e.cpp,
etc. (ach pr*+ram sh*u)d start :ith a mu)ti)ine c*mment that inc)udes a detai)ed descripti*n *f
the pr*+ram, the studentNs name, the date the pr*+ram is :ritten, and the ';( used t* create the
pr*+ram. Startin+ fr*m &ab O3, a)) parts *f the )ab must be :ritten in \$%( s*urce fi)e \$%&Y
b. (ach pr*+ram sh*u)d ha,e a teCt fi)e sh*:in+ the resu)ts *f runs. That inc)udes a)) ?eyb*ard
input and screen *utput. The teCt fi)e f*r a pr*+ram sh*u)d be named usin+ the pr*+ram fi)e
name :ith the .tCt eCtensi*n. E*r eCamp)e, &ab.aLManeL;*e.tCt.
c. Any input fi)es re6uired by y*ur pr*+rams.
d. Any *utput fi)es created by y*ur pr*+rams.
C#ec2 l!st beore subm!ss!on o your labs
Ei)es S*urce fi)es, input/*utput fi)es, interacti*n fi)es,
charts 0P1
r*+ram and functi*n descripti*n !u)ti)ine c*mments at the t*p *f y*ur pr*+ram
inc)udin+ a detai)ed descripti*n, student name,
date, and ';(. !u)ti)ine c*mments ab*,e each
functi*n.
r*+rammin+ sty)e A)i+nment *f parts and indentati*ns. -hite spaces
ar*und *perat*rs.
;*cumentati*n 6uantity and 6ua)ity !*re is better, but d*cumentati*n must be precise
and re)e,ant.
r*+ram bui)d time %either :arnin+ messa+es n*r err*r messa+es are
acceptab)e.
r*+ram run time r*+ram sh*u)d run fr*m start t* finish :ith*ut any
err*rs.
8*de&ab A)) eCercises attempted and ans:ered c*rrect)y.
0P1 >ierarchy charts and f)*: charts are *pti*na). Y*u may +ain eCtra credit f*r the charts if d*ne c*rrect)y. The charts sh*u)d be dra:n usin+ a t**)
such as *:er*int. ;ra:in+ by hand *n a piece *f paper and scannin+ it int* an ima+e is n*t acceptab)e.
a+e 6 *f 1
:
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
,entat!+e Lab Ass!'nments @sub*ect to a.*ustment .ur!n' t#e courseA
&ab O. (Cpressi*ns and 'nteracti,ity
a.1 -rite a pr*+ram that pr*duces the f*))*:in+ *utput *n the screen :ith y*ur name and the date y*u create
the pr*+ram usin+ cout:
b.1 ;efine ,ariab)es t* h*)d the f*))*:in+ eCpenses: 55.25, 5#.3H, .2.25, .23.50, H.25, .#.#5, and .55.20.
;efine ,ariab)es t* h*)d the days f*r the eCpenses. ;efine a ,ariab)e t* h*)d the sum *f the eCpenses.
;efine a ,ariab)e t* h*)d the a,era+e *f the eCpenses. ;isp)ay the eCpenses t* the screen *ne eCpense per
)ine. 8*mpute the t*ta) *f these eCpenses. 8*mpute the a,era+e *f these eCpenses. ;isp)ay a rep*rt *f the
eCpenses t* the screen. The rep*rt sh*u)d )**? as f*))*:s:
!y -ee?)y (Cpense /ep*rt
QQQQQQQQQQQQQQQQQQQQQ
Sunday 55.25
!*nday 5#.3H
Tuesday .2.25
-ednesday .23.50
Thursday H.25
Eriday .#.#5
Saturday .55.20
T*ta) *f eCpenses: R
A,era+e *f eCpenses: R
Y*u must use meanin+fu) names f*r the ,ariab)es. E*r eCamp)e, use weekDay1 f*r st*rin+ FSunday.G
c.1 !*dify &ab .b and f*rmat the *utput s* that a)) numbers are disp)ayed in fiCed decima) f*rmat. The
decima) p*ints *f the eCpense am*unts, the t*ta), and the a,era+e are a)i+ned ,ertica))y.
d.1 8hapter 3, 8 O.0, F8e)sius t* Eahrenheit.G Y*ur pr*+ram sh*u)d as? the user t* enter a temperature in
8e)sius and then disp)ay the resu)t.
e.1 8hapter 3, 8 O.5, F!ath Tut*r.G
f.1 8*de&ab eCercises up t* 899 basic pr*+ram.
&ab O2 ;ecisi*ns, &**ps
a.1 !*dify &ab .c. (Cpense am*unts must be entered by the user and read int* the ,ariab)es. 'n additi*n t*
disp)ayin+ t*ta) and a,era+e, a)s* disp)ay the )ar+est *f the eCpenses pr*+rammatica))y. That is, y*u :i))
:rite the c*de that FfindsG *ut the )ar+est eCpense.
b.1 8hapter 5, 8 O2, F8haracters f*r the AS8'' 8*des.G
c.1 8hapter 5, 8 OH, F!ath Tut*r.G
d.1 8hapter 5, 8 O.5, FStudent &ine <p.G
e.1 8*de&ab eCercises up t* F!athematica) )ibrary functi*ns.G
a+e : *f 1
;
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
&ab O3 &**ps and Ei)es
a.1 !*dify 2a. 'n additi*n t* the re6uirements *f 3a, the data entered in by the user must be sa,ed t* a fi)e
named FeCpenses.tCtG in the *rder they are recei,ed. Then the pr*+ram sh*u)d read the data fr*m the fi)e,
d* the ca)cu)ati*n, and disp)ay the rep*rt t* the screen.
b.1 8hapter 5, 8 O25, F<sin+ Ei)es " %umeric r*cessin+.G
c.1 8hapter 5, 8 O25, F<sin+ Ei)es " Student &ine <p.G
d.1 8*de&ab eCercises up t* F&**ps.G
%*tes: input fi)es can a)s* be f*und *n)ine
http://puma.deanza.fhda.edu/distribute/yehsh/cis-22a/Samp)es/
&ab O5 Euncti*ns
a.1 8hapter 6, 8 O5, FEa))in+ ;istance.G
b.1 8hapter 6, 8 OH, F8*in T*ss.G
c.1 8hapter 6, 8 O#, Fresent Ba)ue.G
d.1 8hapter 6, 8 O.., FStar Search.G
e.1 8*de&ab eCercises up t* F'nput fr*m a fi)e.G
&ab O5 Arrays
a.1 /e:rite &ab 3a usin+ arrays.
b.1 8hapter 2, 8 O#, F;ri,erNs &icense (Cam.G
c.1 8hapter 2, 8 O.5, F,ect*r !*dificati*n.G 0%*te. There is a typ* in the pr*b)em. 2-2. sh*u)d be 2-20
d.1 8*de&ab eCercises up t* FS*rtin+.G

a+e ; *f 1
1
DE ANZA COLLEGE Summer, 2014
11311 CIS-22A-62Y Beginning Programming Methodologies in C++ (4 1/2 units)
Syllabus
A..!t!onal L!n2s 9or >our Beerence:
'mp*rtant ;ates 0i.e., ;r*p date, etc.1: http://:::.deanza.edu/ca)endar/summerdates.htm)
/es*urces \$n 8ampus:
Tut*ria) http://deanza.edu/studentsuccess/
(T8 http://:::.deanza.edu/edc/
8*unse)in+ http://:::.deanza.edu/c*unse)in+/
8)assr**m 8*nduct: