David Stotts Computer Science Department UNC Chapel Hill.

Slides:



Advertisements
Similar presentations
Bell Work Reread/skim your poems. What is the overall theme in you piece? Now look at each poem individually. What is the emotion portrayed in the poem.
Advertisements

tpiitt Poetry Analysis Technique
The Road Not Taken by Robert Frost (pg 28).
PHILOSOPHY 201 (STOLZE) Notes on Thomas Wartenberg, Existentialism.
The road not taken By Robert Frost "Road at Chantilly" by Paul Cézanne.
The Road Not Taken By Robert Frost. Two roads diverged in a yellow wood, And sorry I could not travel both.
“THE ROAD NOT TAKEN” ROBERT FROST POET ( )
“The Road Not Taken” By: Robert Frost.
2 Some Tools of Economic Analysis  What is opportunity cost?  What questions must every economy answer?  What are the different economic systems that.
Read “The Road Not Taken” and answer the questions at the bottom.
Quizlet Virtual Flashcards Tamar Novik The Hebrew Reali School, Haifa.
PHILOSOPHY 201 (STOLZE) Notes on Thomas Wartenberg, Existentialism.
The Road Not Taken Robert Frost.
The Road Not Taken By 谢爱仪 NO.19 W h a t i s t h e s i g n i f i c a n c e o f t h e t i t l e o f t h e p o e m ?
Poetry Definition – Writing in language chosen and arranged to create a particular emotional response through meaning, sound and rhythm. “Poetry can communicate.
Unseen Poetry Section B of the exam. Lesson aims: To know the process in the exam. To understand what things to look for in an unseen poem. To create.
Two roads diverged in a yellow wood,
Laura Bopp Highlight an example of figurative language in the passage. In sleep, my mother looks younger, still worn but not so beaten-down. Prim’s.
CREATED BY: THIAKIA STITTS CALANDRA COLEMAN ERICA MOORE TABITHA SHIVERS.
Can you associate the picture to the idea? a.wisdom, knowledge b.Peace c.Courage, strength d.Love, passion e.Patriotism, freedom f.Evil,
The Road Not Taken by Robert Frost © Michal Preisler.
The Road Not Taken By Robert Frost.
Types of Conflict Conflict – The resistance that the protagonist faces within the story. This can be caused by an outward force (external) or be due to.
1/6/15 Do Now: -Take out your annotated Steve Jobs’ Commencement Speech. Homework: - Complete Jobs Speech Outline - Quarter Two Extension Activity due.
Symbols.
Power Point for Beginners Overview  What is Power Point?  Slides  Design  Transitions  Animations  Sound effects  Tips for a great presentation.
Bell Ringer  In your journal, please list (or draw) all the emoticons you can.
The Road Taken Diane Cassidy This presentation is set to run automaticall. If you wish to advance a slide more quickly, press the spacebar.
The Road not Taken/ Robert Frost
WELCOME. POEM – THE ROAD NOT TAKEN (Robert Frost) BY :- ADITYA KUMAR PATHAK.
Master/Workers Model Example Research Computing UNC - Chapel Hill Instructor: Mark Reed
Government College,Ropar Dept. of English Presentation on : The Road Not Taken Poet : Robert Frost Presented by :Prof. Dinesh Kumari.
What title would you give a poem based on this picture?
By Elizakelly Shortsen Presentation of Elizakelly Shortsen’s poem “The Test Not Taken” and.
The Road Not Taken By Robert Frost. Background Information  Born March 26, 1874  Died January 29, 1963  Modernist Poet  Most well known for realistic.
Bellwork: February 12 th 1.What is the picture saying? 2.What conflict made this happen? 3. What do you think is going to happen now?
Essential Question: “What are some ways to predict the outcome of a certain action?”
SYMBOLISM. How many can you name? 1.Why do we need symbols? 2.What would happen if we didn’t have symbols? 3.What symbols have you seen today? Name five.
Agenda:  Title Analysis  Poetry Analysis Goals:  Analyze poetry for meaning Homework:  Analysis – “The Road Not Taken”  Upload all five analyses to.
All Saints’ Day Sunday 1 st November All Souls’ Day Monday 2 nd November.
Can you associate the picture to the idea? a.wisdom, knowledge b.Peace c.Courage, strength d.Love, passion e.Patriotism, freedom f.Evil,
Poetry The Road Not Taken Mrs. Elliott. Essential Questions? What affects the choices we make? Does every choice we make have a cost? What can we learn.
Types of Poems. Ballad ● Songlike poem that tells a story ● Often a sad story of betrayal, death, or loss ● Usually have a regular steady rhythm, a simple.
Why do poets split their poems into multiple stanzas if the whole poem is focused on one overall topic?
ORT Greenberg K. Tivon 1 The Road Not Taken by Robert Frost Irena Tseitlin Based on /
The Road Not Taken By: Robert Frost Designed by Risa Thal – Mekif Rabin Be’er Sheva.
By Robert Frost Two roads diverged in a yellow wood And sorry I could not travel both.
ROAD LESS TRAVELED COMMUNICATION ARTS 2010 – M. MOSELEY.
Visualization “A scene becomes a real place.”. Visualization… …See it in your head. Key Phrases:  I see…  I hear…  It is…
“The Road Not Taken” By Robert Frost Casaccio’s Question What would you say is the most important decision you have made thus far in your life? How did.
The Road Not Taken by Robert Frost
“The Road Not Taken” By: Robert Frost.
The Road Not Taken By Robert frost Presentation by Shannon and Nisrine
How would YOU answer this question?
The Road Not Taken By. Robert Frost
VOLUNTEERING AND CONTINUING PROFESSIONAL DEVELOPMENT: COME TOGETHER!
The Road Not Taken by Robert Frost.
Robert Frost, “The Road Not Taken”
Have H/W Out. Once you get done your map please work on the Robert Frost Poem on your worksheet
How would YOU answer this question?
Poetry Definition – Writing in language chosen and arranged to create a particular emotional response through meaning, sound and rhythm. “Poetry can communicate.
The Road Not Taken by Robert Frost (pg 28).
Life By: Destiny Morris 2/6/2012.
THEMES Life Lessons.
Poetry Definition – Writing in language chosen and arranged to create a particular emotional response through meaning, sound and rhythm. “Poetry can communicate.
The Road Not Taken By: Robert Frost.
The Road Not Taken (Robert Frost)
“The Road Not Taken” By: Robert Frost.
February 13, 1891 – 1942 American born painter from Iowa.
Symbols Symbols function literally and figuratively at the same time.
Presentation transcript:

David Stotts Computer Science Department UNC Chapel Hill

Two roads diverged in a yellow wood, And sorry I could not travel both And be one traveler, long I stood And looked down one as far as I could To where it bent in the undergrowth And both that morning equally lay In leaves no step had trodden black. Oh, I kept the first for another day! Yet knowing how way leads on to way, I doubted if I should ever come back. The Road Less Traveled Robert Frost Then took the other, as just as fair, And having perhaps the better claim, Because it was grassy and wanted wear; Though as for that the passing there Had worn them really about the same, I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I— I took the one less traveled by, And that has made all the difference.

0. data (types, simple information) 1. data storage (variables, assignment) 2. data retrieval (expressions, evaluation) 3. repetition (loops) 4. decision making (conditionals) 5. procedure abstraction (functions) 6. data abstraction (arrays) 7. objects: all-the-above, wrapped up

Decision Making (conditional statements)  Often we wish to choose to follow one execution path or another, but not both  The decision of which way to go is based on some condition being true, or false  Famous conditionals: “If the glove doesn’t fit, you must acquit“ “One if by land, two if by sea”

If you come to a fork in the road, take it Yogi Berra (supposedly) Self referential Conditional about conditionals (we love this sort of thing)

What...is the airspeed velocity of an unladen swallow? If answer is correct then you cross otherwise you get tossed the fork in the road two roads diverge… long you stand, look down one, … take the other

 Collections of statements in JavaScript can be grouped in “curly braces” { …. } called a block Loop body is a statement block, in { …. }  Conditional has a statement block for each “tine on the fork”…  “if-then-else” statement : two tined fork, a block for “then” and another block for “else”  one block will be executed and the other block skipped… like in the following flow chart

Control flow of conditionals can be thought of with flow charts correct ? You cross You’re tossed yes no “then” block “else” block Both paths move on from here to the statement after the entire conditional

What...is the airspeed velocity of an unladen swallow? if (reply == 15.3) { //“then” block crossing statements } else { //“otherwise” block getting tossed statements } if-then-else statement

var num; num = Number(prompt(“number?”)); if (num%2==0) { alert(num+“ is even”); } else { alert(num+“ is odd”); } decides whether a number is even or odd

var num; var nEven=0; var nOdd=0; num = Number(prompt("number?")); while (num!=0) { if (num%2==0) { alert(num + " is even"); nEven++; } else { alert(num + " is odd"); nOdd++; } num = Number(prompt("number?")); } alert("We saw "+nEven+" evens, and "+nOdd+" odds");

if-then age = Number(prompt(“age?”); dep = false; if (age < 18) { dep = true; minors++; } people++; age = … dep = false age<18 ? people++ dep = true minors++ then block is either executed, or skipped No else block yes no

This is the same as age = Number(prompt(“age?”); dep = false; if (age < 18) { dep = true; minors++; } else { } people++; age = … dep = false age<18 ? people++ dep = true minors++ empty “else “ block yes no

var speed, violation, points; if (speed >= 100) { violation = “brainless driving”; points = 10; } else if (speed >= 80) { violation = “reckless driving”; points = 5; } else if (speed >= 65) { violation = “hasty driving”; points = 2; } else { violation = “none”; points = 0; } Here, a 4-pronged fork 4 statement blocks Only one will execute

speed >=100 ? under 65 block Only one block of statements will execute Others are skipped yesno speed >=80? speed >=65? no yes no yes 100 block 80 block 65 block Here we know speed < 100 AND speed >=80

We have accumulated enough stuff to make some fairly complex programs now 0. data (types, simple information) 1. data storage (variables, assignment) 2. data retrieval (expressions, evaluation) 3. repetition (loops) 4. decision making (conditionals)

Statements ◦ Assignment ◦ For loop ◦ While loop ◦ Variable declaration ◦ User input ◦ Screen output Blocks ◦ Collections, groups of statements Control flow ◦ Sequences, one statement after another ◦ Looping, repetition of a statement block ◦ Branching, forking, decision making: skipping blocks

Variable Usage Patterns ◦ Counter ◦ Accumulator Simulated Execution ◦ Draw a memory map ◦ Play computer running your program ◦ Create variables in the map when you see a declaration ◦ Change variable values when see assignment ◦ Trace the control flow through blocks, loops, branches