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 NP'p<'p@A)BCD|E?@3333@80 1  7R ʚ; b) { // some instructions here } If (a >= b) { // some instructions here } else { // some instructions here } xZx If (a < b) { // some instructions here } else if (c == d) { // some instructions here } else { // additional instructions here } Nested ConditionsWIf (a <= b) { // some instructions here if (d == f) { some nested instructions } } XPX {If (a != b) { // some instructions here } else { // some instructions here if (d == f) { some nested instructions } } |P|%Exercise: jex6.html Checking for null&&&In this exercise below, when you reset the form and you click Total when both input box are empty, you displayed an  NAN You need to check for null in the input box before you perform the addition or multiplication function. if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the first box ); } else if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the second box ); } else { // use the code from before to display the total }0PPRecall: Button and ResponseNMake a button and a message box. Need to have a form to  hold this GUI objects You write form instructions in the body. You write the javascript function in the head.  

33P 2 6* Math objects&Calculation sometimes require you to use mathematical functions such as a3 requires you to use the power function such as Math.power(a, 3). Examples are: Math.PI ~ p Math.round(3.14) that rounds off a number Math.random() that gives you a floating pt. number between 0 and 1 DzIZ$n>z / 9#Exercise: jex7.html Loan Calculator$$&Get three input values, loan amount, yearly interest rate and Number of Years. Compute the monthly and total payments using formula below L: Loan Amount R: Monthly Interest Rate (YearlyRate / 12) N: Number of payment periods (NoYrs X 12) Output the results<ZdZZd, %/w  0` 3Wo+ff3̙` 33f33̙3` ! <yxG`wglZff` yE[AQpff3k` 31m̙3f` 3333̙3` O~̙Zƺ` ffff̙` ǵfZƺ` fff3fZ̙>?" dd@*?tZd@nK `7@d` n?" dd@   @@``PR    @ ` `0p>>   ` 2 (  T `   "`   6K"  <  \ }`  "}`  6\"}` <  B  s *DjJ"`,$D  0  6 "@`  T Click to edit Master title style! !$  0 "@`  RClick to edit Master text styles Second level Third level Fourth level Fifth level!     S  0l #" `b@   b*0    0$ #" ``@   d* 0    0t "``  d* 0  `B  s *D"    s *" B  H  0޽h ? fff3fZ̙___PPT10i. 3l+D=' = @B + HTMLE   0   pE (  TT   "  6"P  <  `\   "  <L"p <    < "0 `s <  hB  s *Dp" p \ Pp  "Pp   6"pPp <  B   s *D"p,$ 0  64 "`@  T Click to edit Master title style! !  6Ě " `@   W#Click to edit Master subtitle style$ $  0 #" `b?  b*0    0d #" ``Aa   d* 0    08 #" ```  d* 0  H  0޽h ? fff3fZ̙80___PPT10. 3l 0 z``(  ` ` 00j P    R*    ` 0Dk     T*   d ` c $ ?   ` 0_  @  RClick to edit Master text styles Second level Third level Fourth level Fifth level!     S ` 6@f `P   R*    ` 6 `   T*   H ` 0޽h ? ̙3380___PPT10.{p  0   (  x  c $p; `@  H  0޽h ? ̙33   0 0(l(  l~ l s *T@`    l s * B  ^ l0 3 0e0eA  ?A@ A5%8c8c     ?1d0u0@Ty2 NP'p<'p@A)BCD|E?`  H l 0޽h ? ___3̙3f3   0   T(  Tr T S 4@`   x T c $<@   r T S  `  H T 0޽h ? fff3fZ̙80___PPT10.\,p4   0 & (  x  c $v@`   ~  s *4w@   x  c $w `  H  0޽h ? fff3fZ̙80___PPT10.\,p4   0 ` 0(  ~  s *1@`   ~  s *2@`     s *T6 B  H  3 A"` PH  0޽h ? ___3̙3f3   0  t2(  t~ t s *N@`   r t S r@P @   r  t S sP     t s *u r,Note the difference between ALERT and COFIRM*- ,P  t Zz ?? , Zfunction displayText() { document.simpleForm.response.value="You click the red button!"; }[ [, " 2  t  ` ??"` p@ 2  t  ` ??"` p B  t  `D??@` B t  `D??P  H t 0޽h ? ___3̙3f3$   0  $(  r  S @`   r  S @`  H  0޽h ? fff3fZ̙80___PPT10.1   0 & (  r  S @`   r  S <@`     NA TTr??#" ` H  0޽h ? fff3fZ̙80___PPT10.'1>!  0  (  X  C `     S X` @    H  0޽h ? ̙3380___PPT10.;KY'  0  (  X  C `     S <` @    H  0޽h ? ̙3380___PPT10.;K`'  0  (  X  C `     S 6` @    H  0޽h ? ̙3380___PPT10.;K`'  0  (  X  C `     S 0` @    H  0޽h ? ̙3380___PPT10.;Kg'  0   (   X   C `      S $M` @    H   0޽h ? ̙3380___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ez#:5?Dśz 9߅lE)5 f]p郫3uVuǃVZ-0{p+<>\6>.oS5CP]Fz2T%5?D˝kke2e <u۴}3m]qi72X:!JWq^3NK$.|6u܉"}(eYWwmY Pp=6ez6h ioikuzLHB2MM #<kdHxDA \>w,:׾"%x8KȞ;+$7Q+ k=Lo+)%o^xu&SL`c09i5'17s.;`1L;8|}=Mx?X9G9IˑsUχXOp/Zh,9/a.rNɐs:l'D{LU)%9ggs^Ȗs?s{^qqHޙ1Û+4saʜ,9< 9$9ul'DK<-r@?}Z {ʉ\+(9dZ[hmk+m:K/tO|F:Vvk oZ{Uʗ09$^Ͷ^-ysezu&ȞsZV*9?4>6퇑-sBKl {2(9f9k^oCۮ_|C|s)_\䜫$9Ml/ZY0:d9WrRBcݵr|Ax;0 !+0~HBPhmM.K ZW\^`ce,g@iTkx1!(   On-screen Show51M Times New RomanArial WingdingsSymbolHTMLSmartDraw Drawing%JavaScript- conditions, Math objectsGeneric Representation ConditionNested Conditions&Exercise: jex6.html Checking for nullRecall: Button and Response Math objects$Exercise: jex7.html Loan Calculator  Fonts UsedDesign TemplateEmbedded OLE Servers Slide Titles--' Ow_L 0Terence T. OwTerence T. Ow--'--$AffAA--'ff--%UU--'̙--$m m m --artDraw SmartDraw.20"SmartDraw Drawing/ 00DTimes New RomanTT\uܖ 0ܖDArialNew RomanTT\uܖ 0ܖ DWingdingsRomanTT\uܖ 0ܖ0DSymbolgsRomanTT\uܖ 0ܖ C .  @n?" dd@  @@``   @_*""   &' > 4"   4b$NJM{ $$$2$uehE[yu$b$۹Bzʤlĕru 0e0e A@A5%8c8c     ?1d0u0@Ty2 NP'p<'p@A)BCD|E?@3333@80 1  7R ʚ; b) { // some instructions here } If (a >= b) { // some instructions here } else { // some instructions here } xZx If (a < b) { // some instructions here } else if (c == d) { // some instructions here } else { // additional instructions here } Nested ConditionsWIf (a <= b) { // some instructions here if (d == f) { some nested instructions } } XPX {If (a != b) { // some instructions here } else { // some instructions here if (d == f) { some nested instructions } } |P|%Exercise: jex6.html Checking for null&&&In this exercise below, when you reset the form and you click Total when both input box are empty, you displayed an  NAN You need to check for null in the input box before you perform the addition or multiplication function. if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the first box ); } else if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the second box ); } else { // use the code from before to display the total }0PPRecall: Button and ResponseNMake a button and a message box. Need to have a form to  hold this GUI objects You write form instructions in the body. You write the javascript function in the head.  
33P 2 6* Math objects"Calculation sometimes require you to use mathematical functions such as a3 requires you to use the power function such as Math.pow(a, 3). Examples are: Math.PI ~ p Math.round(3.14) that rounds off a number Math.random() that gives you a floating pt. number between 0 and 1 DzIX$n>z / 9#Exercise: jex7.html Loan Calculator$$&Get three input values, loan amount, yearly interest rate and Number of Years. Compute the monthly and total payments using formula below L: Loan Amount R: Monthly Interest Rate (YearlyRate / 12) N: Number of payment periods (NoYrs X 12) Output the results<ZdZZd, %/$   0  $(  r  S Ĺ@`   r  S @`  H  0޽h ? fff3fZ̙80___PPT10.1rpLD1  !"#$%&'()*+,-./0123456789:;<=>?@ABCD`FHIJKLMNOPQRSTUVWX_abcdefghijklmnopGstuERoot EntrydO)@Kr PicturesCurrent UserGSummaryInformation(PowerPoint Document(DocumentSummaryInformation8 SmartDraw SmartDraw.20"SmartDraw Drawing/ 00DTimes New RomanTT8Wܖ 0ܖDArialNew RomanTT8Wܖ 0ܖ DWingdingsRomanTT8Wܖ 0ܖ0DSymbolgsRomanTT8Wܖ 0ܖ C .  @n?" dd@  @@``   @_*""   &' > 4"   4b$NJM{ $$$2$uehE[yu$b$۹Bzʤlĕru 0e0e A@A5%8c8c     ?1d0u0@Ty2 NP'p<'p@A)BCD|E?@3333@80 1  7R ʚ; b) { // some instructions here } If (a >= b) { // some instructions here } else { // some instructions here } xZx If (a < b) { // some instructions here } else if (c == d) { // some instructions here } else { // additional instructions here } Nested ConditionsWIf (a <= b) { // some instructions here if (d == f) { some nested instructions } } XPX {If (a != b) { // some instructions here } else { // some instructions here if (d == f) { some nested instructions } } |P|%Exercise: jex6.html Checking for null&&&In this exercise below, when you reset the form and you click Total when both input box are empty, you displayed an  NAN You need to check for null in the input box before you perform the addition or multiplication function. if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the first box ); } else if (document.simpleForm.box1.value== "") { alert ( You need to have a value in the second box ); } else { // use the code from before to display the total }0PPRecall: Button and ResponseNMake a button and a message box. Need to have a form to  hold this GUI objects You write form instructions in the body. You write the javascript function in the head.  
33P 2 6* Math objects&Calculation sometimes require you to use mathematical functions such as a3 requires you to use the power function such as Math.power(a, 3). Examples are: Math.PI ~ p Math.round(3.14) that rounds off a number Math.random() that gives you a floating pt. number between 0 and 1 DzIZ$n>z / 9#Exercise: jex7.html Loan Calculator$$&Get three input values, loan amount, yearly interest rate and Number of Years. Compute the monthly and total payments using formula below L: Loan Amount R: Monthly Interest Rate (YearlyRate / 12) N: Number of payment periods (NoYrs X 12) Output the results<ZdZZd, %/ryly<1!(   Sm * !"#$%&'()Oh+'0 hp   $HTML and Web PagesTerence T. OwHTMLTerence T. Ow102Microsoft PowerPoint@``@-@ K?Gg    y--$xx--'--$UU--'ff--$=hh==--'--$AffAA--'ff--%UU--'̙--$m m m --'ff--% --'@Times New Roman-. f32 $& JavaScript."System9-@Times New Roman-. f3 2 $S-.-@Times New Roman-. f32 $Y conditions, .-@Times New Roman-. f32 1& Math objects .--%_\ 0Terence T. OwTerence T.՜.+,0    i