1 / 21

Concussion App

Concussion App. Objectives: Explain how sequence, selection, and iteration are building blocks of algorithms Create equations with two or more variables to represent relationships among quantities. Warm-Up. C = 3 V + 3 B + 2 D + 2 M Solve for C given the following variable values:

savea
Télécharger la présentation

Concussion App

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Concussion App Objectives: Explain how sequence, selection, and iteration are building blocks of algorithms Create equations with two or more variables to represent relationships among quantities.

  2. Warm-Up C = 3V + 3B + 2D + 2M • Solve for Cgiven the following variable values: • V= 7 B = 4 D = 8 M = 6 • V = 9 B= 8D = 7M = 4 2. Describe the relationship between variables V, B, D, & M. • Do they all affect C equally? • How does V affect C? • How does V’s effect on C compare to B’s? • How does V’s effect on C compare to M’s?

  3. Concussion Factors What factors go into diagnosing a concussion? http://www.youtube.com/watch?v=k1qvcw-zqtQ

  4. Concussion Symptoms • Vomiting/Nausea • Balance problems/clumsy • Drowsy/dazed • Memory loss before and after event

  5. Who should be able to play? Person 1 Person 2 Person 3 Vomit: Spit Balance: Slightly off-balance Drowsy: active, wants to play, eyes slightly closed Memory: remembers everything, but slow response Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond

  6. Who should be able to play? Person 1 Person 2 Person 3 Vomit: Spit Balance: Slightly off-balance Drowsy: active, wants to play, eyes slightly closed Memory: remembers everything, but slow response Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond How do we compute a rating (0 to 100) for each person?

  7. Who should be able to play? Person 1 Person 2 Person 3 Vomit: Spit Balance: Slightly off-balance Drowsy: active, wants to play, eyes slightly closed Memory: remembers everything, but slow response Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond We need numbers!

  8. Computing a Problem • Identify Factors: Variables • Quantify: Numbers & Units • Express the Relationship: Equation • Algorithm: How my mind does it • Coded Algorithm: How computer does it

  9. We need to Quantify! Person 1 Person 2 Person 3 Vomit: 2 Balance: 6 Drowsy: 5 Memory: 6 Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond Rate the factors on a scale from 0-10. 0 = best 10 = worst

  10. We need to Quantify! Person 1 Person 2 Person 3 Vomit: 2 Balance: 6 Drowsy: 5 Memory: 6 Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond But how do you rate vomit?

  11. Selection Ifvomit >=300 Then vomit =10 ElseIfvomit >=250Then vomit =9 Etc…

  12. Who should be able to play? Person 1 Person 2 Person 3 Vomit: Spit Balance: Slightly off-balance Drowsy: active, wants to play, eyes slightly closed Memory: remembers everything, but slow response Vomit: None Balance: ok Drowsy: tired, wants to rest Memory: remembers before and hazy about after Vomit: Chunks Balance: needs to lean on chair Drowsy: Wants to close eyes Memory: Slow to respond Do all the factors have the same importance?

  13. Priority • Put the four factors in order from most to least significant. Vomit, Balance, Drowsy, Memory 1. _________________ (most important) 2. _________________ 3. _________________ 4. _________________ (least important)

  14. Weighting the Priorities • You have a total of 10 weights to use. Allocate the weights based on priority. 1. Memory x 3 2. Balance x 3 3. Vomit x 2 4. Drowsy x 2 Adds up to 10 ____ 10

  15. Equation to Rate Concussion 0 to 10WeightTotal + + + Memory: ____ Balance: ____ Vomit: ____ Drowsy: ____ x ____ = ____ x ____ = ____ x ____ = ____ x ____ = ____ Rating: _________

  16. Sample Calculation 0 to 10WeightTotal + + + Memory: 9 Balance: 6 Vomit: 7 Drowsy: 5 x 2 = 18 x 2 = 12 x 4 = 28 x 2 = 10 Rating: 68

  17. Sequence TextWindow.WriteLine(“How much vomit?") vomit =TextWindow.Read() VS. vomit =TextWindow.Read() TextWindow.WriteLine(“How much vomit?")

  18. Selection Ifrepeat="y"Then GotoStart EndIf Checks if the user types in “y”

  19. Iteration Ifrepeat="y"Then GotoStart EndIf Checks if the user types in “y” Goes back to beginning and repeats program ‘top of program code Start: GraphicsWindow.Draw...

  20. Exit Card • Write down the equation you used to rate a concussion. • Write example sets of inputs for two athletes and calculate the rating. • Describe the relationship between the input variables. • How does each affect the rating? • Compare one variable’s effect to another.

More Related