pxt-calliope/docs/lessons/charting/quiz-answers.md

34 lines
892 B
Markdown
Raw Normal View History

2016-04-28 19:22:58 +02:00
# charting quiz answers
2016-11-02 01:44:37 +01:00
Measure the acceleration on the @boardname@ in the "x" direction.
2016-04-28 19:22:58 +02:00
## Name
## Directions
2016-06-19 14:28:46 +02:00
Use this activity document to guide your work in the [charting activity](/lessons/charting)
2016-04-28 19:22:58 +02:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. Why are you creating a 'forever' loop?
<br/>
We are creating a forever loop to constantly display the appropriate brightness on the LED display.
## 2. Write the line of code to measure the acceleration with respect to the "x" axis and display this value in a bar graph.
<br/>
```blocks
led.plotBarGraph(input.acceleration(Dimension.X), 0)
```
2016-11-02 01:44:37 +01:00
## 3. After vigarously moving the @boardname@ from side to side along the "x" axis for a sufficient amount of time,insert the Excel graph for displaying a line chart used to display trends over time.
2016-04-28 19:22:58 +02:00
<br/>
![](/static/mb/line_chart.png)