...stop(); stopBtn.stop(); playBtn.stop(); pauseBtn.stop(); //Events playBtn.addEventListener(MouseEvent.MOUSE_OVER,playBtnOver); playBtn.addEventListener(MouseEvent.MOUSE_OUT,playBtnOut); playBtn.addEventListener(MouseEvent.MOUSE_DOWN,playBtnDown); //Functions function playBtnOver(e:MouseEvent)( playBtn.gotoAndStop(2); ) function playBtnOut (e:MouseEvent)( playBtn.gotoAndStop(1); ) function playBtnDown (e:MouseEvent)( ballMotion.play(); ballShape.play(); ) import flash.media.Sound; import flash.media.SoundChannel; import flash.display.MovieClip; stop();// Assign The URL to the mp3 to play var req:URLRequest = new URLRequest(".mp3");// Boolean value for button functions, to switch in the conditionals var isPlaying:Boolean = false;// Create the sound object var snd:Sound = new Sound(req);// Assign a var name for the sound channel var channel:SoundChannel = new SoundChannel();// Pause position variable var pausePosition:Number = 0;// Start Playing var playBtn:MovieClip = playBtn; //channel = snd.play(pausePosition);// Make Play button change cursor to click hand playBtn.buttonMode = true;// Move the play/pause button movieclip to frame 2(active state) playBtn.gotoAndStop(2); // Play Button Listener playBtn.addEventListener(MouseEvent.CLICK, playPause);...
Words: 335 - Pages: 2
...Arrays An array is a special kind of variable that contains multiple values. Example: $myarray = array('one', 2, 'three'); echo($myarray[0]); //output “one” echo($myarray[1]); //output “2” echo($myarray[2]); //output “three” example 2. $birthdays['Kevin'] = '1978-04-12'; $birthdays['Stephanie'] = '1980-05-16'; $birthdays['David'] = '1983-09-09'; echo('My birthday is: ' . $birthdays['Kevin']); The PHP If Statement if (condition) code to be executed if condition is true; Example1 (true statement) $my_name = "someguy"; if ( $my_name == "someguy" ) { echo "Your name is someguy!<br />"; } echo "Welcome to my homepage!"; Example2 (false statement) $my_name = "anotherguy"; if ( $my_name == "someguy" ) { echo "Your name is someguy!<br />"; } echo "Welcome to my homepage!"; Example calcIFrevised.html <html> <title>A simple math calculator</title> <body> Insert two numbers in the next form and hit submit button <br> <form action="calcal.php" method="post"> Firstnumber: <input name="num1" type="text" /><br> Secondnumber: <input name="num2" type="text" /> <input type="submit" /> </form> </body> </html> Example calcIFrevised2.php <?php $num1 = $_POST['num1']; $num2 = $_POST['num2']; $a = $num1 + $num2; $b = $num1 - $num2; echo ("The...
Words: 1002 - Pages: 5
...EXPLORE Activity 3: Designing Objects with Visio In-Class Activity Ungraded Course Support Tools/Resources required for this activity: Visio Description: Demonstrate creating an object in Visio. Create a UML diagram and show how to define attributes (properties) and operations (methods). Create the UML for the Card object used in the example. The result should look like this: [pic] Estimated Time: 10 minutes PRACTICE Activity 1: Designing Objects In-Class Activity Ungraded Course Support Tools/Resources required for this activity: None Description: Divide the class into groups of three or four students. Assign each group one of the following objects: Product MusicDownload User TakeoutItem ElectronicBook Video Ask each group to identify at least three properties and one method for each object and write the JavaScript code they would use to define the object. Have a member of each group write their code on the whiteboard. Built-In Objects EXPLORE ACTIVITY 4: BUILT-IN OBJECTS In-Class Activity Ungraded Course Support Tools/Resources required for this activity: Unit 5 PowerPoint Presentation (SD1340.U5.PP1) Unit5Sample2.html (SD1340.U5.AF2) Description: Use Slides 22 through 32 to discuss built-in objects. Students have already been introduced to the Array, String, and Math built-in objects. Use Slides 22 and 23 to show how a built-in object can be extended. Use Slides 24-26 to explore the Math object. Unit5Sample2.html (SD1340.U5.AF2)...
Words: 1297 - Pages: 6
...DECISION/SELECTION STRUCTURES If-Then Statements A conditional statement used in directing program flow based on multiple decision criteria. It has an equivalent to the English form: “If such-and-such is true, then do so-and-so.” General forms: A. Single Selection 1. Single line If statement 2. If…Then B. Multiple Selection 3. If…Then…Else 4. Nested If…Then.. Else 5. If…Then…ElseIf DECISION/SELECTION STRUCTURES If-Then Statements 1. Single-Line Syntax: 2. If…Then…Syntax: If [Condition] Then [Statement] If [Condition] Then [Statements] End If 3. If...Then...Else Syntax: If [Condition] Then [Statements] Else [Statements] End If DECISION/SELECTION STRUCTURES If-Then Statements 4. Nested If...Then...Else Syntax Nesting is the process of embedding program statements in other statements Below is the syntax for Nested If-Then Statements: If [condition1] Then [VB statements] Else If [condition2] Then VB statements If [condition3] Then [VB statements] End If Else [VB Statements] End If End If DECISION/SELECTION STRUCTURES If-Then Statements 5. If-Then-ElseIf Syntax The ElseIf keyword is used to specify several conditions in one If/Else Statement. Syntax: If [condition1] Then [VB statements] ElseIf [condition2] Then [VB statements] ElseIf [condition3 Then [VB statements] End If DECISION/SELECTION STRUCTURES Assigning Condition in If-Then Statements Below are condition statements that include conditional operators and results to a...
Words: 1412 - Pages: 6
...If statement [pic] 1. void main() 2. { 3. int a=5,b=6,c; 4. c = a + b ; 5. if (c==11) 6. printf("Execute me 1"); 7. printf("Execute me 2"); 8. } 9. Output : 10. Execute me 1 ////////////////////////////////////////////////////////////// Else-if Ladder in C : Decision Making [pic] 11:11 AM [pic] Admin [pic] 1 comment If Else Ladder / Else-If Clause Syntax of Else-If Ladder : view plainprint? 1. #include 2. if(expression1) 3. statement1; 4. else if(expression2) 5. statement2; 6. else if(expression3) 7. statement3; 8. else 9. statement4; [pic] Explanation : • Conditions are evaluated from Top to Bottom • As soon as TRUE expression is found the statement associated with it is executed and rest of the ladder isBypassed Flowchart : [pic] Sample Example : To find the Grade of the Student) view plainprint? 1. if (marks >= 67 ) 2. printf("Distinction"); 3. else if (marks >=60) 4. printf("First Class"); 5. else if (marks >=55) 6. printf("Higher Second Class"); 7. else if (marks >=50) 8. printf("Second Class"); 9. else if (marks >=40) 10. printf("Pass Class"); 11. else 12. printf("Fail"); ///////////////////////////////////////////////////////////////// If – else statement [pic] 1. void main() 2. { 3. int marks=50; ...
Words: 1725 - Pages: 7
...Selection statements Selection is used to select which statements are to be performed next based on a condition being true or false. Relational expressions In the solution of many problems, different actions must be taken depending on the value of the data. The if statement in C I used to implement such s decision structure in its simplest form – that of selecting a statement to be executed only if a condition is satisfied. Syntax: if(condtion) statement executed if condition is true When an executing program encounters the if statement, the condition is evaluated to determine its numerical value, which is then interpreted as either true or false. If the condition evaluates to any non-0 value (positive or negative), the condition is considered as a “true” condition and the statement following the if is executed; otherwise this statement is not executed. Relational Operators In C Relational operator | Meaning | Example | < | Less than | age < 30 | > | Greater than | height > 6.2 | <= | Less than or equal to | taxable <= 200000 | >= | Greater than or equal to | temp >= 98.6 | == | Equal to | grade == 100 | != | Not equal to | number !=250 | In creating relational expressions, the relational operators must be typed exactly as given in the above table. Thus, although the following relational expressions are all valid: age > 40 length <= 50 temp >= 98.6 3 < 4 flag == done day != 5 The following are invalid: length =< 50 ...
Words: 1617 - Pages: 7
... 2007 Data Analysis of Hamilton County Judges Probabilities used to assist with Ranking of Hamilton County Judges After the current statistics were gathered to produce data analysis regarding Hamilton County Judges, we can come to a conclusion and rank judges appropriately by their probability to be appealed, reversed and a combination of the both. With the provided data analysis, I have included statistics to all probabilities including: total cases disposed, appealed cases, reversed cases, probability of appeal, rank by probability of appeal, probability of reversal, rank by probability of reversal, conditional probability of reversal given appeal, rank by conditional probability of reversal given appeal and overall sum of ranks. The judges that rank the highest (i.e. 1st, 2nd, 3rd) have the lowest probability to have appealed cases, reversed cases and lowest conditional probability of reversed cases given appeal. In my opinion, by ranking the judges as such, we can see how often their ruling is upheld, which is ultimately desirable when concerning the credibility of a judge. I have provided rankings for all three different courts including: Common Pleas Court, Domestic Relations Court and Municipal Court. These overall rankings are gathered by summing up all of the rankings by the three probability variables. I have also provided data analysis which interprets who is the most credible judge overall out of the three courts. Judges with Lowest Probability of Appeals: Court...
Words: 1210 - Pages: 5
...English Grammar : Conditionals Quiz Fill in the blanks using the most appropriate conditional type. ------------------------------------------------- Principio del formulario 1. If he (have) more time, he (finish) decorating the baby's room before she was born. 2. Both parents and teachers (feel) pleased if students studied harder and got higher grades. 3. Even if I (do) well on the test tomorrow, I don't think I (pass) , for the teacher underevaluates my papers. 4. If the United Nations (stop) the war between the two countries beforehand, today, so many children and the old (suffer) from hunger and cold. 5. I overate last night, so I couldn't sleep well. If I (eat) so much, I (have) a sweet sleep. 6. (Be) I in your shoes now, I (choose) to decline this offer. 7. But for Kevin's assistance, we (complete) our term paper in time. 8. No one can succeed anything unless s/he really (resolve) to do it. 9. If you (forget) to take the compass, we (be) lost now. Also: ( Had forgotten/ would be) 10. As long as your company (assure) our success in marketing, we (continue) doing business with you. 11. I wouldn't be so upset if you (invite) me to your birthday party last Wednesday. 12. You can use my dictionary on condition that you (promise) to bring it back tonight. 13. All this calamity (happen) if they (cut) most of the trees in that area. 14. I (take) some cash with me in case I exceeded my credit card limit. 15. Only if George...
Words: 261 - Pages: 2
...Indian Institute of Management Bangalore PGP 2009-10 Quantitative Methods I Mid Term Examination Time: 2 hours 30 minutes Name:____________________________ Maximum Marks: 50 Roll. No.________________ Section____ Question No. | 1 | 2 | 3 | 4 | 5 | Total | Maximum Marks | 3+2+2+2+4=13 | 2+3+4=9 | 2+2*1+2*1.5+4=11 | 3+6+2=11 | 3+3=6 | 50 | Student’s Score | | | | | | | Instructions: This is an open-book (1 text-book), open note exam; however you are not allowed to share material with other students. Use of calculator is permitted, but not computer (laptop). Please do not seek any clarifications. To get any credit, you must * circle/clearly indicate your final answer (in the space, whenever provided); * answer all questions in the space provided, * State any assumptions that you make. Assumptions made should be reasonable. * Show calculations and provide reasons to support your answers. Do not attach any additional sheets; use the back sides, if necessary. 1. A highway restaurant is trying to plan its capacity. It finds that on average during the peak lunch hour, which is between 1pm and 2 pm, vehicles arrive at a rate of 1 vehicle per 6 minutes. (Each vehicle on average has four customers, and they can all sit on one table.) To avoid incurring a loss on a particular day, there should be at least 6 vehicles arriving during the peak lunch hour period. (a) What is the probability of the restaurant incurring...
Words: 2305 - Pages: 10
...Massachusetts Institute of Technology 6.042J/18.062J, Fall ’02: Mathematics for Computer Science Professor Albert Meyer and Dr. Radhika Nagpal Course Notes 10 November 4 revised November 6, 2002, 572 minutes Introduction to Probability 1 Probability Probability will be the topic for the rest of the term. Probability is one of the most important subjects in Mathematics and Computer Science. Most upper level Computer Science courses require probability in some form, especially in analysis of algorithms and data structures, but also in information theory, cryptography, control and systems theory, network design, artificial intelligence, and game theory. Probability also plays a key role in fields such as Physics, Biology, Economics and Medicine. There is a close relationship between Counting/Combinatorics and Probability. In many cases, the probability of an event is simply the fraction of possible outcomes that make up the event. So many of the rules we developed for finding the cardinality of finite sets carry over to Probability Theory. For example, we’ll apply an Inclusion-Exclusion principle for probabilities in some examples below. In principle, probability boils down to a few simple rules, but it remains a tricky subject because these rules often lead unintuitive conclusions. Using “common sense” reasoning about probabilistic questions is notoriously unreliable, as we’ll illustrate with many real-life examples. This reading is longer than usual . To keep things in bounds...
Words: 18516 - Pages: 75
...City Centre G Orchard Park G Kingswood Monday to Friday route number 15 15 15 15 15 low floor 15 N15 15 15 15 Kingswood G Orchard Park G City Centre Monday to Friday route number 15 15 15 15 15 low floor 15 N15 15 15 15 15 15 Hull Paragon Interchange Princes Av Zoological PH Newland Av Cottingham Rd Beverley High Rd Tesco Kingswood Retail Park route number 0705 0711 0721 0733 0743 15 0725 0731 0741 0753 0803 0745 0751 0801 0813 0823 35 40 45 57 05 0805 then up 0811 to every 0821 0833 mins until 0843 10 1725 1731 1741 1753 1803 15 1735 1741 1751 1803 1813 15 1745 1751 1801 1813 1823 15 1755 1801 1811 1823 1833 15 1805 1811 1821 1833 1843 15 Kingswood Retail Park Orchard Park Tesco Cranbrook Av 5th Avenue Princes Av Pearson Park Hull Paragon Interchange route number 0540 0550 0557 0605 0620 15 0610 0620 0627 0635 0650 15 0640 0650 0657 0705 0720 15 0710 then up 0720 to every 0727 0735 mins until 0750 10 1650 1700 1710 1720 1735 15 1705 1715 1725 1735 1750 15 1720 1730 1740 1750 1805 15 1735 1745 1752 1800 1815 15 1750 1800 1807 1815 1830 15 15 15 15 15 15 15 15 Hull Paragon Interchange Princes Av Zoological PH Newland Av Cottingham Rd Beverley High Rd Tesco Kingswood Retail Park route number journey codes 1820 1825 1830 1842 1850 50 55 00 12 20 05 10 15 27 35 N15 F 20 25 30 42 50 2035 2040 2045 2057 2105 2050 2055 2100 2112 2120 2120...
Words: 1378 - Pages: 6
...OLONGAPO CITY GP OCT 2011 Vitamin A Supplementation Barangay Asinan Banicain Barretto New Cabalan East Bajac Bajac East Tapinac Old cabalan Gordon Heights Ilalim Kababae Kalaklan Kalalake Mabayuan Pag-Asa Sta. Rita West Bajac Bajac West Tapinac Population Target 4,234 7,624 20,758 21,401 21,356 11,137 21,930 25,369 1,716 2,642 12,180 10,119 12,474 6718 43,646 8,965 7312 57 103 280 335 288 150 296 380 23 36 164 137 168 91 589 121 99 6-11 months No.Given 59 86 284 319 274 106 282 356 22 35 139 120 172 82 520 115 96 % 103.51% 83.50% 101.43% 95.22% 95.14% 70.67% 95.27% 93.68% 95.65% 97.22% 84.76% 87.59% 102.38% 90.11% 88.29% 95.04% 96.97% 92.46% Target 457 823 2242 2683 2306 1203 2368 3044 185 285 1315 1093 1347 726 4714 968 790 12-59 months No.Given 433 780 2,129 2,431 2,450 1,110 2,106 2967 197 295 1020 1,097 1,466 725 5,010 1,049 771 % 94.75% 94.78% 94.96% 90.61% 106.24% 92.27% 88.94% 97.47% 106.49% 103.51% 77.57% 100.37% 108.83% 99.86% 106.28% 108.37% 97.59% 98.07% Target 514 926 2522 3018 2594 1353 2664 3424 208 321 1479 1230 1515 817 5303 1089 889 29866 60-71 months No.Given 492 866 2413 2750 2724 1216 2388 3323 219 330 1167 1217 1638 807 5530 1164 867 29103 % 95.7% 93.5% 95.7% 91.1% 105.0% 89.9% 89.6% 97.1% 105.3% 102.8% 78.9% 98.9% 108.1% 98.8% 104.3% 106.9% 97.5% 97.4% 31 17 109 24 2 4 30 10 28 23 92 19 79.00% 200.00% 100.00% 100.00% 90.30% 135.00% 0 0 0.00% 62 53 52 45 83.80% 84.00% 21 Target Lactating Mothers No.Given % Deworming 12-71 months Target 572 1029 2802 3354 2883...
Words: 449 - Pages: 2
...了解中国 的企业破产法 中国的新破产法 新的《中华人民共和国企业破产法》已于2007年6月1日起施行。按照新破产法,如债务人符合该法 第二条规定之情形,债务人和债权人均可提出债务人企业重整、和解或破产申请。 一 适用程序 对于到期未清偿债务,有重整、和解和破产三种可选程序。 重整/和解申请 破产申请 失败 成功 债务人申请 债权人申请 人民法院审核破产申请 企业恢复正常运营 裁定破产 二 可提出申请的情形 三 管理人资格 申请可由债务人企业、其出资人或债权人提出。 法院将指定管理人负责管理企业的重整、和解或破产。法院将确定 管理人报酬和决定更换管理人(若适用)。 若企业不能清偿到期债务,并且资产不足以清偿全部债务或明显缺 乏清偿能力,则企业可提出重整、和解或者破产申请。上述情形 管理人可以由下列机构担任: 下,债权人也可以向法院提出重整或者破产申请。 • 由有关部门、机构的人员组成的清算组 • 律师事务所 企业或出资额占企业注册资本十分之一以上的出资人,在债权人提 • 会计师事务所 出破产申请后至企业被宣告破产前之期间,随时可向法院申请重 • 破产清算事务所,及 整。另一方面,企业在债权人提出破产申请后至企业被宣告破产 • 其他相关社会中介机构 前,随时可向法院申请和解。 有下列情形之一的,不得担任管理人: • 与本案有利害关系,及 • 了解中国的企业破产法 曾被吊销相关专业执业证书 • 1 因故意犯罪受过刑事处罚 • 法院认为不宜担任管理人的其他情形 四 管理人的义务和职责 债权人应划分为四类: 管理人应向法院和债权人委员会(若已成立)报告其职务执行情 • 担保债权人 • 职工及职工相关费用(如:保险) • 税务机关,及 • 普通债权人 况,同时其职务执行受债权人/债权人委员会监督。《企业破产 法》的第二十五条、第五十七条、第六十九条、第七十四条、第九 十一条、第九十八条、第一百一十一条和第一百一十五条规定了管 理人的义务和职责。 自按照草案规定清偿债务完毕时起,企业应按照草案之约定获免除 五 程序启动 所有债务。 重整 企业重整程序自法院受理重整申请之日开始。法院亦应指定管理 若草案未获债权人和/或法院批准,或发生《企业破产法》第七十 人,就此予以公告,并通知所有已知债权人。法院可指定企业(在 九条所述之情况,或企业未能执行草案,则法院应裁定终止重整程 管理人的监督之下)或管理人继续经营企业业务。 序并宣告企业破产。 和解 重整计划草案(“草案”)应自法院裁定重整之日起六个月内提交给 法院和债权人会议。法院可酌情裁定将草案提交时间延期三个月。 企业和解程序自法院受理和解申请之日开始。法院亦应指定管理 若草案未能在规定时限内提交,则法院可裁定终止重整程序,并宣 人,就此予以公告,并通知所有已知债权人。 告企业破产。 法院应召开债权人会议,对和解协议进行讨论和表决。 法院应在收到草案后三十日内召开债权人会议,对草案进行表决。 债权人会议 债权人会议 出席且有表决权的债权人过半数 同意且其代表的债权额占债权总 ...
Words: 774 - Pages: 4
...Chapter 10: Re-expressing Data: Get it Straight Creating a model is a mechanical process; knowing when it is appropriate to use it is a thinking/analysis process. A useful model is the ultimate goal. Linear Models have tools that are relatively simple to understand and interpret: slope, yintercept. We can verify that a linear model is appropriate by checking the conditions and looking at the residual plot. Curved Models can be fit, but relatively speaking are more difficult to calculate. First Approach: Make sure that a re-expression can be meaningful. • Once we re-express, decide if the model is appropriate o Create the model o Plot the residuals o If there is still a curve, build another model o When the model has random, scattered residuals then we interpret using the model • Scatter plot shows a mixture of “signal” and “noise” o Signal is the underlying association between the variables o Noise is the random variation unaccounted for by the association o Example: in a scatter plot of height and weight, generally tall people weigh more; however, not all 6 ft tall people weigh the same—that variation is the noise. We want a regression model that describes the signal (the underlying relationship between ht and wt) Residual plot shows us the variation that is not explained by the model If the plot is random (just noise) then we have captured the whole signal If a curve remains in the residual plot, then we missed some of the signal meaning we need to look for a better model...
Words: 1098 - Pages: 5
...25/15/01 PLAN 5453 FROM KDOV/DOV FUEL ------BOF 68712 RR 3436 DR 20974 TAXI FUEL 2000 REQ FOB 95122 FOB 95122 ADD AMOUNT 0 TOTAL RESERVE 24410 ZFW 170000 TO FUEL 93122 LF 24410 TOW 263122 LW 190974 FPL -----NAME VOR(f) LAT/LON ROUTE MORA ALT ___ ___ MC MH ___ ___ FUEL DIST LEG LEG TAS ETE REM REM GS CUMM MREQ _____ ____ ___ ____ 93122 3103 ___ ____ 95122 3867 89255 92306 31 370 0:07 3072 414 0:07 ATA ATE ____ ____ WIND OAT ____ ____ 2ft TO LFRB/BES 325ft ETD 04:00 ETA 10:08 KDOV _____ N3907.8 W07528.0 _____ SIE 114.8 .. N3905.7 W07448.0 027 CLB 103 108 _____ 259/046 _____ -18 AVALO J55 N3916.9 W07430.8 022 CLB 061 058 1025 88230 91178 1130 87100 89935 1086 86014 88740 311 85703 88398 701 85002 87627 17 400 0:02 3055 453 0:09 _____ 255/059 _____ -27 BRIGS J55 N3931.4 W07408.3 022 CLB 063 060 23 431 0:03 3032 492 0:12 _____ 252/067 _____ -38 DRIFT J55 N3948.9 W07340.8 022 CLB 063 061 27 454 0:03 3005 523 0:15 _____ 247/072 _____ -50 MANTA J55 N3954.1 W07332.5 015 CLB 064 061 8 452 0:01 2997 526 0:16 _____ 247/077 _____ -52 PLUME J55 N4007.1 W07317.1 030 CLB 055 051 18 447 0:03 2979 522 0:19 _____ 245/083 _____ -57 Page 1 You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com) SHERL J55 N4015.3 W07307.3 030 CLB 056 051 428 84574 87156 233 84341 86900 402 83939 86458 326 83613 86099 25 83588 86072 451 83137 85576...
Words: 967 - Pages: 4