Teen Smoking. New Mexico. Supercomputing Challenge. Final Report. April 2, Team Number 20. Centennial High School

Similar documents
Blood Ivory Final Report

UNIT 4: TOBACCO T H E P O W E R I S Y O U R S T O B E T O B A C C O F R E E

DOWNLOAD OR READ : TOBACCO INFORMATION FOR TEENS TEEN HEALTH SERIES PDF EBOOK EPUB MOBI

Jackson Tobacco Reduction Coalition 1715 Lansing Avenue, Jackson, MI Phone (517) FAX (517)

Why do Youth Use Tobacco?

The Ginseng Effect. Malcolm Bob

Consensus Dynamics. Giulia Graglia, Pietro Quaglio

Resource 7 (Activity 2) Smoking Quiz

Get Your Facts Straight!

Smoking Sophie Lee Writing-Period 6 March16, 2009

Achoo! Modeling the Spread of the Flu. New Mexico. Supercomputing Challenge. Final Report. April 20 th, Team Number 56. Los Alamos Middle School

Great American Smokeout November 15, 2018 Communications Toolkit

Smoking stops declining and shows signs of increasing among younger teens

Stop Smoking Start Living

Substance Prevention

E-cigarettes surpass tobacco cigarettes among teens

18 INSTRUCTOR GUIDELINES

Stop Smoking Start Living

Substance Prevention

Thinking About Stopping Smoking? Pick up the phone and call:

Get the Facts: Minnesota s 2013 Tobacco Tax Increase is Improving Health

Tobacco Use. Overview. General Data Note. Summary NYSDOH

9 INSTRUCTOR GUIDELINES

ACTIVITY 3 PPS-TOBACCO CONTROL ADVOCACY GROUP POST ANTI-SMOKING AWARENESS CAMPAIGN ONLINE SURVEY (November 1-December 10, 2017)

QUIT TODAY. It s EASIER than you think. DON T LET TOBACCO CONTROL YOUR LIFE. WE CAN HELP.

Tobacco Cessation Resource Guide Aetna Resources For Living SM

Session 1: Days 1-3. Session 4: Days Session 2: Days 4-7. Session 5: Days Session 3: Days Day 21: Quit Day!

Welcome Pioneers for Smoking Cessation

A Guide to Help You Reduce and Stop Using Tobacco

Small Cell Lung Cancer Causes, Risk Factors, and Prevention

Non-Small Cell Lung Cancer Causes, Risk Factors, and Prevention

Tobacco Data, Prevention Spending, and the Toll of Tobacco Use in North Carolina

Get ready for plain packaging

TOBACCO AND SMOKING PROGRESS AND CHALLENGE IN DISEASE PREVENTION DAVID DOBBINS COO

RADM Patrick O Carroll, MD, MPH Senior Advisor, Assistant Secretary for Health, US DHSS

15 INSTRUCTOR GUIDELINES

Nebraska Youth Tobacco Survey 2015/2017

Coach on Call. Thank you for your interest in E-Cigarettes: Your Questions Answered. I hope you find this tip sheet helpful.

2 INSTRUCTOR GUIDELINES

Let s Talk PREVENTION

What are long term effects of Marijuana use?

E-Cigarettes & Vaping. Information for Women & Their Families

Classroom lesson Plan and answers Produced by Quit Victoria

ORIENTATION SAN FRANCISCO STOP SMOKING PROGRAM

It hurts you. It doesn t take much. It doesn t take long.

WHY SHOULD CIGARETTE SMOKERS THINK ABOUT QUITTING?

SMOKE FREE CAMPUSES & 2 ND HAND SMOKE RAMIFICATIONS

F O R Y O U R H E A L T H. Nicotine and Your Health. Vocabulary Emphysema Addicted Toxic Secondhand smoke

3. What is the most common form in which tobacco is used? Name three other tobacco products.

Making Your Treatment Work Long-Term

Lesson 26 Tobacco Smoke Hurts the Body

Smoking vs Smokeless. Tobacco is a plant that contains nicotine. Cigars and pipes contain more tar and other chemicals.

OBJECTIVES: LESSON 11. Smoke Signals. Page 1. Overview: Suggested Time: Resources/Materials: Preparation: Procedure:

Cancer Control Office YOUR GUIDE TO QUIT SMOKING

Final Research on Underage Cigarette Consumption

A guide to keeping children away from the dangers of tobacco. LiveHealthy.org

People with HIV or AIDS are living longer, healthier lives. But, a lot of. 60% and 70% still smoke cigarettes.

Prevention of Teenage Smoking in Local Area Schools. by Scott Hampton Psychology 220 (Developmental Psychology)

THE DID YOU KNOW S ABOUT SMOKING

FOREVER FREE STOP SMOKING FOR GOOD B O O K L E T. StopSmoking. For Good. What If You Have A Cigarette?

Evaluating Interventions to Curb ENDS Use Among Utah Youth

Parent Handbook for Talking with Teens About Alcohol. Presented by MADD Parent Facilitator: Lucille Vitale MADD Long Island, New York

The Partnership at Drugfree.org Survey Idaho QuickRead Report May 2014

FOREVER FREE STOP SMOKING FOR GOOD B O O K L E T. StopSmoking. For Good. Life Without Cigarettes

Tutorial on agent-based models in Netlogo applied to immunology and virology

Clearing The Air about: Gretchen Hagenbuch, M.Ed. SAP Coordinator Philadelphia Region

MAT Mathematics in Today's World

Emphysema. Lungs The lungs help us breathe in oxygen and breathe out carbon dioxide. Everyone is born with 2 lungs: a right lung and a left lung.

Teenage Smoking Programme By Health Education England

7 PRINCIPLES TO QUIT SMOKING FOREVER

My Drug-Free Future. Brief Overview: Youth will discuss reasons to stay drug-free. Issue Area(s): Youth Health Care

Chapter 14. Lessons. Bellringer

Lindsey White. Tobacco Control Program Coordinator

Adolescent Substance Use: America s #1 Public Health Problem June 29, 2011

HEALTH EFFECTS OF UNDERAGE RETAIL MARIJUANA USE

Sweet Cheap Easy to Get. Tobacco industry tactics. Introduction. Tobacco Industry Tactics 5/1/2018

April 2019 Issue 32, Vol. 1. Former Smokers and Their Families Speak Out. Enter the Challenge SAVE THE DATE

Reducing Tobacco Smoke Exposure: The Role of Quitlines

HOW HEALTHY IS OUR COUNTY? 2013 COUNTY HEALTH RANKINGS & ROADMAPS

Tobacco and Health. Prof. Md. Abul Kashem Khandaker

Coach on Call. Thank you for your interest in Cutting Down to Quit Smoking During Pregnancy. I hope you find this tip sheet helpful.

Key findings from a national survey of 1,000 registered voters, conducted February 2-5, Project # 15054

The University of Michigan

Honors 177: Biotech and Art MIDTERM PRESENTATION. Title: Quit Smoking: 1+1 icigarette. Name: Paul Yang Major: Biology

Toolkit FOR EDUCATORS EDUCATE. ENGAGE. PREVENT.

Living My Best Life. Today, after more than 30 years of struggling just to survive, Lynn is in a very different space.

September 5, 2014 Sonoma County Independence Campaign Evaluation Report

Save Lives and Save Money

Thinking about giving up. Booklet 2

This week s issue: Word Generation UNIT 1.16 accumulation contradict exhibit inevitable manipulate

Anti-Smoking Advertising and Youth Smoking

Proposal to address Teenage Smoking Social Environment

Clear and Easy #11. Skypark Publishing. Molina Healthcare 24 Hour Nurse Advice Line (888)

January 2019 Volume 8, Issue 1

TOBACCO USE AMONG AFRICAN AMERICANS

Community Perception of Electronic Cigarettes and Their Role as Smoking Cessation Aids

New Mexico Department of Health Tobacco Use Prevention and Control

Focus Words accumulation contradict exhibit inevitable manipulate

NAME: HOUR: DATE: NO:

Is there any way you might be better off if you quit? What happens when you think about it? What do you imagine will happen if you don t change?

Transcription:

Barrera, Doctor, Maldonado, Nguyen 1 Teen Smoking New Mexico Supercomputing Challenge Final Report April 2, 2014 Team Number 20 Centennial High School Team Members: Cristian Barrera Max Doctor Jessica Maldonado Christopher Nguyen Teacher: Ms. Hagaman Project Mentor: Bob Robey

Barrera, Doctor, Maldonado, Nguyen 2 Table of Contents: Executive Summary: 3 Background Information: 4 Introduction: 4-5 Description: 5-6 Results: 6-9 Conclusions: 9 Recommendations: 10 Acknowledgements: 10 References: 11-13 Model Code: 14-30

Barrera, Doctor, Maldonado, Nguyen 3 Executive Summary: Our model is a visual representation of how each rick factor for smoking effects. Due to the complexity and arbitrary nature of the human mind, it is nearly impossible to list all the possible factors that could influence teenage smoking. After working with our topic, we found that a linear and accurate representation would be extremely difficult to create, considering that the ability to do so would be tantamount to emulating the very nature of the human mind. However, we ve decided upon using an abstract model to depict possible outcomes, and while it is still limited in comparison to a perfect model, this model itself is versatile in a sense that it is possible to change just how influential a set of fixed factors are.

Barrera, Doctor, Maldonado, Nguyen 4 BACKGROUND INFO: Tobacco is defined as a plant that is mainly popular for its use in cigarettes. Tobacco has close to 600 ingredients and when burned, creates close to 7,000 harmful toxins. Of these 7,000 ingredients, 69 are known to cause cancer. Acetone (used in nail polish), ammonia (common household cleaner), cadmium (active in battery acid), naphthalene (found in moth balls), and more are all found in cigarettes. Every day close to 3,200 people younger than 18 years old smoke their first cigarette, and from this number, close to 2,100 minors who occasionally smoked became daily cigarette smokers in their future. According to the Centers of Disease Control and Prevention, if our country continues at this rate 5.6 million of today s Americans younger than 18 years of age are projected to die prematurely from a smoking-related illness. Also according to the Centers of Disease Control and Prevention, 23.3% of high school are currently using tobacco products including cigarettes, cigars, hookahs, snus, and other tobacco related products. INTRODUCTION: Our project is about teen smoking and how the possible variables affect it, such as family, friends, or even commercials. Due to the alarming amount of people who will die due to smoking, we chose this model to spread awareness; it was estimated by the American Cancer Society that nearly 159,000 people will die and nearly 228,000 new cases of lung cancer will be diagnosed in the United States of America (USA) in 2013, which is one of the many consequences of smoking. Smoking is an issue that is very prevalent in teenagers today. An estimated 18% of teenagers in high school are already smokers, meaning a massive amount of

Barrera, Doctor, Maldonado, Nguyen 5 kids under the age of 18 are already on the road to cancer. Statistics show that those who leave high school as smokers, stay addicted past the age of 35 and that more than 80% of adult smokers began before their habits before they were 18. DESCRIPTION: Our model simulates possible real world influences that can cause a student to either pick up or reject smoking. Our code consists of various methods that allow the model complexity. The methods are similar to that of an infection model in which turtles interact with each other and cause changes in certain variables. To be specific, there are 4 breeds of turtles: the regular, the honor, the smokers, and the heroes. The regular and honor student have no effect on any of the other breeds and own a variable called energy, which represents resistance within the model, with the honor student starting out with generally higher resistance than the regular student. Smokers and heroes cause decreases and increases towards the energy of regular and honor respectively (By how much is settable). Heroes are special because they can cause a smoker to either turn into a regular student or a hero as well but at a very small fixed percentage. If the energy were to reach 0 on either turtle, their breed will change to the smoker breed. A hero is representative of an active anti-smoking campaigner. Not only do the smoker and hero breeds affect energy, but various colored patches that represent a real world influence can as well. There are 6 influences total within the model with 2 of them able to cause both increases and decreases. These influences are family, friends, television/movies, commercials, and schools with family and friends being the 2 that can cause

Barrera, Doctor, Maldonado, Nguyen 6 negative and positive influences. The system is based on the color of the patches, each color represents an influence and whenever a turtle with energy comes across the patch, depending on the color, it will cause a change in the turtle s energy. How much the patch changes the energy is also settable. We had originally made our model to represent the lives of 123 as the model is being played. This had allowed them to encounter other turtles that could either help or hinder the student. In our minds, this seemed to work as a well-enough model until we concluded that we it did not make sense. We then changed our model to represent the life of one student as the turtle went through the model. RESULTS: Each experiment represents a changing factor generally do have an impact on high school aged such as friends, family, anti-smoking commercials, television shows and movies. All of these experiments are tested with factors set to values in which, if left alone, will result in the continuing to stay the same for an extended amount of time. Friends Experiment: Week: Smokers Heroes: Regular 0 27 20 10 15 50 27 20 10 15 100 26 21 10 15 150 26 21 10 15 200 26 21 10 15 250 26 21 10 15 300 26 21 10 15 Week Smokers Heroes: Regular 0 27 15 10 15 50 27 15 10 15 100 27 15 10 15 150 28 15 10 14 200 28 15 10 14 250 28 15 10 14 300 28 15 10 14

Barrera, Doctor, Maldonado, Nguyen 7 Week: Smokers Heroes: Regular 0 27 5 10 15 50 27 5 10 15 100 27 5 10 15 150 27 5 10 15 200 27 5 10 15 250 27 5 10 15 300 27 5 10 15 Week: Smokers Heroes: Regular 0 27 10 10 15 50 27 10 10 15 100 27 10 10 15 150 27 10 10 15 200 27 10 10 15 250 27 10 10 15 300 27 10 10 15 In this experiment, friends do not count as an influential factor. The results show that since the values of friends in the positive and negative integer are virtually similar, the complete removal of this influence results in the preservation of equilibrium for the amount of energy the receive between negative and positive values. Family Experiment: Week: Smokers Heroes: Regular 0 27 20 10 15 50 27 20 10 15 100 26 21 10 15 150 26 21 10 15 200 26 21 10 15 250 26 21 10 15 300 26 21 10 15 Week: Smokers Heroes: Regular 0 27 15 10 15 50 27 15 10 15 100 27 15 10 15 150 28 15 10 14 200 28 15 10 14 250 28 15 10 14 300 28 15 10 14 Week: Smokers Heroes: Regular 0 27 10 10 15 50 27 10 10 15 100 27 10 10 15 150 27 10 10 15 200 27 10 10 15 250 27 10 10 15 300 27 10 10 15 Week: Smokers Heroes: Regular 0 27 5 10 15 50 27 5 10 15 100 27 5 10 15 150 27 5 10 15 200 27 5 10 15 250 27 5 10 15 300 27 5 10 15 In this experiment, instead of friends being removed as a factor, it is family. The results prove to be the same since family is also virtually similar in negative and positive integer.

Barrera, Doctor, Maldonado, Nguyen 8 No Anti-Smoking Commercials Experiment: Week: Smokers Heroes: Regular 0 27 20 10 15 50 27 20 10 15 100 28 20 9 15 150 30 20 8 14 200 38 20 5 9 250 40 20 5 7 300 41 20 5 6 Week: Smokers Heroes: Regular 0 27 15 10 15 50 26 16 10 15 100 26 16 10 15 150 28 16 8 15 200 29 16 8 14 250 31 16 7 13 300 33 16 6 12 Week: Smokers Heroes: Regular 0 27 10 10 15 50 27 10 10 15 100 28 10 9 15 150 29 10 9 14 200 31 10 9 12 250 31 10 9 12 300 31 10 9 12 Week: Smokers Heroes: Regular 0 27 5 10 15 50 27 5 10 15 100 27 5 10 15 150 27 5 10 15 200 27 5 10 15 250 28 5 9 15 300 29 5 9 14 In this experiment, since Anti-Smoking Commercials were counted as a positive influence, once removed, the equilibrium of the influences were disrupted with negative influences being more prominent which resulted in the increase of smokers. TV/Movies Experiment: Week: Smokers Heroes: Regular 0 26 10 10 15 50 26 10 10 15 100 28 10 10 14 150 29 10 9 14 200 29 10 9 14 250 30 10 9 13 300 29 10 10 13 Week: Smokers Heroes: Regular 0 27 15 10 15 50 27 15 10 15 100 26 15 10 15 150 26 15 10 15 200 26 15 10 15 250 26 15 10 15 300 26 15 10 15

Barrera, Doctor, Maldonado, Nguyen 9 Week: Smokers Heroes: Regular 0 27 20 10 15 50 27 20 10 15 100 27 20 10 15 150 27 20 10 15 200 26 20 11 15 250 26 20 11 15 300 27 20 11 14 Week: Smokers Heroes: Regular 0 26 5 10 15 50 26 5 10 15 100 26 5 10 15 150 26 6 10 15 200 26 6 10 15 250 26 6 10 15 300 27 6 9 15 Even though TV/Movies were counted as a negative integer and were removed as an influence, there was not much of a decrease in smokers because while positive influences were more prominent, the fact that there is no way to change smokers aside from the small percentage caused by the encounter of a hero means that the model will mostly stay the same with the exception of only a few small changes. CONCLUSIONS: What we found within our experiments is that when removed, anti-smoking commercials had a bigger impact on a student s decision making as compared to family, friends, and TV/Movies factors being removed. When we removed anti-smoking commercials as a factor, the number of smokers had increased to the most of 14. We made sure that anti-smoking commercials had a larger impact on the student because according to tobaccofreeflorida.com, hard hitting anti-smoking commercials resulted in a fewer amount of adult smokers as compared to previous years, and with that come a fewer amount of Florida s youth not being exposed to injurious toxins released by secondhand smoke.

Barrera, Doctor, Maldonado, Nguyen 10 RECOMMENDATIONS: In our next project, we would first choose a more broadened topic that has been well studied and is easier to research, such as tobacco in general or the introduction of electronic cigarettes in modern society. While researching our topic, we realized that though studies have been performed on teen smoking, the results were not as conclusive as we predicted. We also found that while teen smoking is something that can greatly hinder today s youth, there is no 100% way to stop or prevent it from happening. We would also like to perform more experiments on the likelihood of an individual student or honors student of becoming a smoker given a certain amount of risk factors. We would like to see how the results vary within the same risk factor levels. We believe this could be informative for, parents, and community organizations. ACKNOWLEDGEMENTS: We would like to thank our computer science teacher, Ms. Melody Hagaman, for her constant amount of support, wisdom, and optimism throughout vacuous times. We would also like to thank Mr. Micheal Montoya, Mrs. Rosa Apodoca, Mr. Jeff Brilliant, and Mrs. Joy Walkey for allowing the Centennial High School Computer Science Club not only to participate but also to exist at Centennial High School.

Barrera, Doctor, Maldonado, Nguyen 11 REFERENCES: Underage Smoking Statistics. Statistic Brain RSS. Statistic Brain, 18 June 2013. Web. 01 Apr. 2014. "Adults worry E-cigarettes will encourage teen smoking." The Science Teacher 81.2 (2014): 21+. General OneFile. Web. 21 Mar. 2014 Campaign for Tobacco-Free Kids: Survey Finds U.S. Youth Somking Rates Fell to Record Lows in 2013. Professional Services Close-Up. 30 Dec. 2013. Health Reference Center Academic. Web. 21 Mar. 2014. Carpenter, Jeff. Tobacco Use Among Teens Is Dangerously High. ABC News. ABC News Network, 01 Nov. 2013. Web. 01 Apr. 2014. "Children and Teens - American Lung Association." American Lung Association. N.p., n.d. Web. 29 Mar. 2014. Powerful Anti-Smoking Ad Campaigns Work. Tobaccofreeflorida.com. Tobacco Free Florida, 01 Mar. 2012. Web. 01 Apr. 2014. "Quitting Smoking." Centers for Disease Control and Prevention. Centers for Disease Control and Prevention, 07 Feb. 2014. Web. 30 Mar. 2014. Rettner, Rachael. "Youth Smoking Rates Still High, Government Report Finds." LiveScience. TechMedia Network, 08 Mar. 2012. Web. 01 Apr. 2014.

Barrera, Doctor, Maldonado, Nguyen 12 "Smoking and Cancer: What's in a Cigarette?" : Cancer Research UK. N.p., n.d. Web. 30 Mar. 2014. "Smoking & Tobacco." Doctors, Patient Care, Health Education, Medical Research. N.p., n.d. Web. 31 Mar. 2014. "Smoking & Tobacco." Palo Alto Medical Foundation. Palo Alto Medical Foundation, n.d. Web. 31 Mar. 2014. Smoking and Youth: MedlinePlus. U.S. National Library of Medicine. U.S. National Library of Medicine. N.d. Web. 31 Mar. 2014. Teens still at risk for tobacco use, health officials say. Modern Healthcare 20 Jan. 2014: 0002 General OneFile. Web. 21 Mar. 2014. Tobacco Campaign Tips. Centers for Disease Control and Prevention. Center For Disease Control and Prevention. 13 Mar. 2014. Web. 31 Mar. 2014. Tobacco primary cause of preventable deaths (march 11 is No Smoking Day). LANS 10 Mar. 2014. Health Reference Center Academic. Web. 21 Mar. 2014. "Trends in Adolescent Tobacco Use." Office of Adolescent Health. N.p., n.d. Web. 31 Mar. 2014. Underage Smoking Statistics. Statistic Brain RSS. Statistic Brain, 18 June 2013. Web. 01. Apr. 2014. United States. U.S. Department of Education. By David C. Miller. N.p.: n.p., n.d. Web. 1 Apr.

Barrera, Doctor, Maldonado, Nguyen 13 2014. Wakefield, Melanie, and Frank Chaloupka. Effectiveness of Comprehensive Tobacco Control Programmes in Reducing Teenage Smoking in the USA. TobaccoControl.BMJ.com N.p.. 25 Feb. 2000. Web. 01 Apr. 2014 "What's in a Cigarette? - American Lung Association." American Lung Association. N.p., n.d. Web. 28 Mar. 2014. "What Is Tobacco?" What Is Tobacco? N.p., n.d. Web. 31 Mar. 2014. Yang, Zhiyong, Charles M. Schaninger, and Michel Laroche. Demarketing teen tobacco and alcohol use: Negative peer influence and longitudinal roles of parenting and selfesteem. Journal of Business Research 66.4 (2013): 559+. General OneFile. Web. 21 Mar. 2014. "Youth and Tobacco Use." Centers for Disease Control and Prevention. Centers for Disease Control and Prevention, 14 Feb. 2014. Web. 29 Mar. 2014.

Barrera, Doctor, Maldonado, Nguyen 14 MODEL CODE: ;; Team 20 C. Barrera, M. Doctor, J. Maldonado, C. Nguyen ;; Teen Smoking breed reg regstudent ;;Creates a different breed. breed honor honorstudent ;;Creates a different breed. breed smokers smoker ;;Creates a different breed. breed heroes hero ;;Creates a different breed. turtles-own energy ;;Creates a new variable for the turtles. to psetup ;;Sets procedure name. clear-all ;;Clears everything on the monitor. Ask patches ;;Initiates command chain for the patches. let a random (100) ;;Sets a variable (a) to a random number from 0-100. if (a < 20) ;;Sets condition for if the variable (a) is less than 20 (20% chance). let b random (4) ;;In the condition, another variable (b) is assigned a random value from 0-4. ifelse (b < 2) ;;Sets another condition, but this time if variable (b) is less than 2, it sets the color orange, if not, it sets the color blue. (50% chance). set pcolor orange ;;Sets the color of the patch orange if condition is met.

Barrera, Doctor, Maldonado, Nguyen 15 set pcolor blue ;;Sets the color of the patch blue if the condition is not met. let c random (100) ;;Sets a variable (c) to a random number from 0-100. if (c < 20) ;;Sets condition for if the variable (c) is less than 20 (20% chance). let d random (4) ;;In the condition, another variable (d) is assigned a random value from 0-4. ifelse (d < 2) ;;Sets another condition, but this time if variable (d) is less than 2, it sets the color red, if not, it sets the color brown. (50% chance). set pcolor red ;;Sets the color of the patch red. set pcolor brown ;;Sets the color of the patch brown. let h random (100) ;;Sets the variable (h) to a random number from 0-100 if (h < 4) ;;Sets condition for if the variable (h) is less than 4. (4% chance).

Barrera, Doctor, Maldonado, Nguyen 16 set pcolor gray ;;Sets the color of the patch gray. let f random (100) ;;Sets the variable (f) to a random number from 0-100 if (f < 6) ;;Sets condition for if the variable (f) is less than 6. (6% chance) set pcolor magenta ;;Sets the color to magenta. let g random (100) ;;Sets the variable (g) to a random number from 0-100. if (g < 5) ;;Sets condition for if the variable (g) is less than 5. (5% chance) set pcolor pink ;;Sets the color of the patch pink. setup ;;Calls upon a procedure. end ;;Ends Procedure. to setup ;;Sets name of the procedure. reset-ticks ;;Resets ticks, a measurement of time.

Barrera, Doctor, Maldonado, Nguyen 17 create-reg Amnt-regstudent ;;Creates a varying amount of 'reg' (Regular ) based on the variable Amnt-Regstudent. create-honor Amnt-honorstudent ;;Creates a varing amount of 'honor' ( ) based on the variable Amnt-student. create-smokers Amnt-smoker ;;Creates a varying amount of 'smokers' based on the variable Amnt-Smoker create-heroes Amnt-hero ;;Creates a varying amount of heroes based on the variable Amnt- Hero. ask reg ;;Starts command chain for reg. set size 1.25 ;;Sets the size of the turtle to 1.25. set shape "regular student" ;;Sets the shape (Appearance) of the turtle. set energy 80 ;;Gives the variable 'Energy' a value of 80. set color white ;;Sets the color of the turtle to white. setxy random-xcor random-ycor ;;Distributes the turtles across the monitor randomly. ask honor ;;Begins command chain for honor. set size 1.25 ;;Sets the size of the turtle to 1.25. set shape "willful student" ;;Sets the shape (Appearance) of the turtle.

Barrera, Doctor, Maldonado, Nguyen 18 set energy 100 ;;Gives the variable 'Energy' a value of 100. set color white ;;Sets the color of the turtle white. setxy random-xcor random-ycor ;;Distributes the turtles across the monitor randomly. ask smokers ;;Begins command chain for smokers set size 1.25 ;;Sets the size of turtles to 1.25. set shape "smoker" ;;Sets the shape (Appearance) of the turtle. set color white ;;Sets the color of the turtle to white. setxy random-xcor random-ycor ;;Distributes the turtle across the monitor randomly. ask heroes set size 1.25 ;;Sets the size of the turtles to 1.25. set shape "hero" ;;Sets the shape (Appearance) of the turtle. set color white ;;Sets the color of the turtle to white. setxy random-xcor random-ycor ;;Distributes the turtle across the monitor randomly.

Barrera, Doctor, Maldonado, Nguyen 19 end ;;Ends the procedure. to go ;;Sets name of procedure. ask turtles ;;Begins command chain for all turtles. wiggle ;;Calls upon a procedure. ask honor ;;Begins command chain for honorstudent. if energy < 0 ;;Sets condition for if the variable of energy is less than 0. set breed smokers ;;If condition is met, it changes the breed to a smokers breed. ask smokers ;;Begins command chain for smokers. set size 1.25 ;;Sets size of the turtle to 1.25. set shape "smoker" ;;Sets the shape (Appearance) of the turtle. set color white ;;Sets the color of the turtle white. if count smokers-here > 0 ;;Sets condition for if a turtle encounters a smoker.

Barrera, Doctor, Maldonado, Nguyen 20 set energy (energy - V.Smoking-Negative) ;;Decreases energy an amount based on the variable V.Smoking-Negative. if count heroes-here > 0 ;;Sets condition for if a turtle encounters a hero. set energy (energy + V.Heroes-Positive) ;;Increases energy by an amount based on the variable V.Heroes-Positive. if pcolor = orange ;;Sets condition for if the patch color encountered is orange. set energy energy + V.Family-Positive ;;Increases energy by an amount based on the variable V.Family-Positive. if pcolor = blue ;;Sets condition for if the patch color encountered is blue. set energy energy - V.Family-Negative ;;Decreases energy by an amount based on the variable V.Family-Negative. if pcolor = red ;;Sets condition for if the patch color encountered is red. set energy energy - V.Friends-Negative ;;Decreases energy by an amount based on the

Barrera, Doctor, Maldonado, Nguyen 21 variable V.Friends-Negative. if pcolor = brown ;;Sets condition for if the patch color encountered is brown. set energy energy + V.Friends-Positive ;;Increases energy by an amount based on the variable V.Friends-Positive. if pcolor = gray ;;Sets condition for if the patch color encountered is gray. set energy energy - V.TV/Movies-Negative ;;Decreases energy by an amount based on the variable V.TV/Movies-Negative. if pcolor = magenta ;;Sets condition for if the patch color encountered is magenta. set energy energy + V.Anti-Smoke-Commercials-Positive ;;Increases energy by an amount based on the variable V.Anti-Smoker-COmmercials-Positive. if pcolor = pink ;;Sets condition for if the patch color encountered is pink. set energy energy + V.Schools-Positive ;;Increases energy by an amount based on the variable V.Schools-Positive.

Barrera, Doctor, Maldonado, Nguyen 22 ask reg ;;Begins command chain for reg. if energy < 0 ;;Sets condition for if the energy is less than 0. set breed smokers ;;Sets the breed to smokers. ask smokers ;;Begins command chain for smokers. set size 1.25 ;;Sets size of turtle to 1.25. set shape "smoker" ;;Sets the shape (Appearance) of a turtle. set color white ;;Sets the color of a turtle white. if count smokers-here > 0 ;;Sets condition for if a turtle encounters a smoker. set energy (energy - V.Smoking-Negative) ;;Decreases energy an amount based on the variable V.Smoking-Negative. if count heroes-here > 0 ;;Sets condition for if a turtle encounters a hero.

Barrera, Doctor, Maldonado, Nguyen 23 set energy (energy + V.Heroes-Positive) ;;Increases energy by an amount based on the variable V.Heroes-Positive. if pcolor = orange ;;Sets condition for if the patch color encountered is orange. set energy energy + V.Family-Positive ;;Increases energy by an amount based on the variable V.Family-Positive. if pcolor = blue ;;Sets condition for if the patch color encountered is blue. set energy energy - V.Family-Negative ;;Decreases energy by an amount based on the variable V.Family-Negative. if pcolor = red ;;Sets condition for if the patch color encountered is red. set energy energy - V.Friends-Negative ;;Decreases energy by an amount based on the variable V.Friends-Negative. if pcolor = brown ;;Sets condition for if the patch color encountered is brown. set energy energy + V.Friends-Positive ;;Increases energy by an amount based on the

Barrera, Doctor, Maldonado, Nguyen 24 variable V.Friends-Positive. if pcolor = gray ;;Sets condition for if the patch color encountered is gray. set energy energy - V.TV/Movies-Negative ;;Decreases energy by an amount based on the variable V.TV/Movies-Negative. if pcolor = magenta ;;Sets condition for if the patch color encountered is magenta. set energy energy + V.Anti-Smoke-Commercials-Positive ;;Increases energy by an amount based on the variable V.Anti-Smoker-COmmercials-Positive. if pcolor = pink ;;Sets condition for if the patch color encountered is pink. set energy energy + V.Schools-Positive ;;Increases energy by an amount based on the variable V.Schools-Positive. ask smokers ;;Begins command chain for smokers. if count heroes-here > 0 ;;Sets condition for if a breed encountered is a hero.

Barrera, Doctor, Maldonado, Nguyen 25 let m random 100 ;;Assigns a variable (m) a number from 0-100. if m < 5 ;;Sets a condition for if the variable (m) is less than 5. (3% chance) set breed reg ;;Sets the breed to a regstudent. if m < 2 ;;Sets for if the variable (m) is less than 3. (2% chance) set breed heroes ;;Sets the breed to heroes. ask heroes ;;Begins command chain for heroes. set size 1.25 ;;Sets the size fo the hero to 1.25. set shape "hero" ;;Sets the shape (Appearance) to hero. set color white ;;Changes the color of the turtle to white. ask patches ;;Begins command chain for patches.

Barrera, Doctor, Maldonado, Nguyen 26 if mouse-down? ;;Sets a condition for if the mouse button is pressed. ask patch (round mouse-xcor) (round mouse-ycor) ;;Begins command chain for the specific patch that is clicked on. if pcolor = pink ;;Sets a condition for if the patch color is pink. set plabel "Schools (+)" ;;Sets the label. if pcolor = magenta ;;Sets a condition for if the patch color is magenta. set plabel "Anti-Smoke Commercials (+)" ;;Sets the label. if pcolor = red ;;Sets a condition for if the patch color is red. set plabel "Friends (-)" ;;Sets the label. if pcolor = brown ;;Sets a condition for if the patch color is brown.

Barrera, Doctor, Maldonado, Nguyen 27 set plabel "Friends (+)" ;;Sets the label. if pcolor = gray ;;Sets a condition for if the patch color is gray. set plabel "Tv Shows/Movies (-)" ;;Sets the label. if pcolor = orange ;;Sets a condition for if the patch color is orange. set plabel "Family (+)" ;;Sets the label. if pcolor = blue ;;Sets a condition for if the patch color is blue. set plabel "Family (-)" ;;Sets the label. if mouse-down? ;;Sets condition for if mouse button is pressed. ask patch (round mouse-xcor) (round mouse-ycor) ;;Begins command chain for if the patch

Barrera, Doctor, Maldonado, Nguyen 28 that's clicked on. if pcolor = pink ;;Sets a condition for if the patch color is pink. set plabel "" ;;Erases Label. if pcolor = magenta ;;Sets a condition for if the patch color is magenta. set plabel "" ;;Erases label. if pcolor = red ;;Sets a condition for if the patch color is red. set plabel "" ;;Erases label. if pcolor = brown ;;Sets a condition for if the patch color is brown. set plabel "" ;;Erases label.

Barrera, Doctor, Maldonado, Nguyen 29 if pcolor = gray ;;Sets a condition for if the patch color is gray. set plabel "" ;;Erases label. if pcolor = orange ;;Sets a condition for if the patch color is orange. set plabel "" ;;Erases label. if pcolor = blue ;;Sets a condition for if the patch color is blue. set plabel "" ;;Erases label. tick ;;Sets the time measurement. end ;;Ends the procedure.

Barrera, Doctor, Maldonado, Nguyen 30 to wiggle ;;Sets procedure name to wiggle. right random 90 ;;Turns right randomly from 0-90. left random 90 ;;Turns left randomly from 0-90. forward 1 ;;Moves forwards 1. end ;;Ends procedure.