<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://peda.net/:static/548/atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Seiskan asiaa</title>
<id>https://peda.net/id/86d0f18a2ef</id>
<updated>2020-12-02T18:27:55+02:00</updated>
<link href="https://peda.net/id/86d0f18a2ef:atom" rel="self" />
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol#top" rel="alternate" />
<logo>https://peda.net/:static/548/peda.net.logo.bg.svg</logo>
<rights type="html">&lt;div class=&quot;license&quot;&gt;Tämän sivun lisenssi &lt;a rel=&quot;license noopener&quot; href=&quot;https://peda.net/info&quot; target=&quot;_blank&quot;&gt;Peda.net-yleislisenssi&lt;/a&gt;&lt;/div&gt;&#10;</rights>

<entry>
<title>Esimerkki 1</title>
<id>https://peda.net/id/4c89e9fa2f2</id>
<updated>2020-11-25T16:19:58+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/esimerkki-1#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/3ffc70263d&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-11-25T16:19:58+02:00</published>
</entry>

<entry>
<title>Tehtävä 1</title>
<id>https://peda.net/id/c63317222f2</id>
<updated>2020-12-02T15:53:42+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-1#top" />
<content type="html">&lt;b&gt;Huom! a)-kohdan tekevät kaikki, b)-kohdan ne, jotka haluavat oppia ohjelmointia enemmän. Samoin toimitaan tulevissa tehtävissä.&lt;/b&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;a) Tee ohjelma, joka tulostaa oman nimesi&lt;br/&gt;&#10;&lt;br/&gt;&#10;b) Jatka ohjelmaa niin, että se tulostaa toiselle riville sanat &amp;quot;on aika taituri&amp;quot;&lt;br/&gt;&#10;&lt;br/&gt;&#10;​&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-11-25T16:23:23+02:00</published>
</entry>

<entry>
<title>Esimerkki 2</title>
<id>https://peda.net/id/310535ca2f2</id>
<updated>2020-11-25T16:33:31+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/esimerkki-2#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/ad5663b9d5&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-11-25T16:33:31+02:00</published>
</entry>

<entry>
<title>Tehtävä 2</title>
<id>https://peda.net/id/673f1d262f2</id>
<updated>2020-11-25T16:42:12+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-2#top" />
<content type="html">a) Tee ohjelma, johon asetat muuttujalle a arvon 8 ja muuttujalle b arvon 4. Tulosta niiden summa ja erotus.&lt;br/&gt;&#10;&lt;br/&gt;&#10;b) Jatka ohjelmaa niin, että se laskee lukujen a ja b tulon ja tulostaa lauseen &amp;quot;Luvun a ja b tulo on &lt;em&gt;tähän_kertolaskun_vastaus&amp;quot;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​&lt;br/&gt;&#10;&lt;/em&gt;</content>
<published>2020-11-25T16:42:12+02:00</published>
</entry>

<entry>
<title>Esimerkki 3</title>
<id>https://peda.net/id/4d9a9fdc34a</id>
<updated>2020-12-02T15:28:45+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/esimerkki-3#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/b8e9b2912f&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T15:28:45+02:00</published>
</entry>

<entry>
<title>Tehtävä 3</title>
<id>https://peda.net/id/1031ecc034a</id>
<updated>2020-12-02T17:03:37+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-3#top" />
<content type="html">a) Tee ohjelma, joka tulostaa sanat makkara ja keitossa yhdysanana sekä erikseen.&lt;br/&gt;&#10;&lt;br/&gt;&#10;b) &lt;span&gt;Jatka ohjelmaa niin, että se tulostaa myös laskutoimitusten&lt;/span&gt;&lt;span&gt; 5-123456 sekä &lt;/span&gt;&lt;span class=&quot;MathJax&quot;&gt;&lt;span class=&quot;math&quot;&gt;&lt;span&gt;&lt;span class=&quot;mrow&quot;&gt;&lt;span class=&quot;mfrac&quot;&gt;&lt;span class=&quot;mn&quot;&gt;15:(8-2) vastaukset&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​&lt;br/&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content>
<published>2020-12-02T16:52:56+02:00</published>
</entry>

<entry>
<title>Esimerkki 4</title>
<id>https://peda.net/id/8e91f64834a</id>
<updated>2020-12-02T15:30:34+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/nimet%C3%B6n-8e91#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/9d48aa34ba&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T15:30:34+02:00</published>
</entry>

<entry>
<title>Tehtävä 4</title>
<id>https://peda.net/id/e1c7563034a</id>
<updated>2020-12-02T17:04:37+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-4#top" />
<content type="html">&lt;span&gt;a) &lt;/span&gt;&lt;span&gt;Tee ohjelma, joka kysyy mitä jääkiekkojoukkuetta käyttäjä kannattaa ja tulostaa sitten tekstin:&lt;/span&gt;&lt;br/&gt;&#10;&lt;span&gt;Hyvä, koska ... on paras!!&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span&gt;b) Jatka ohjelmaa niin, että se kysyy suorakulmion kannan ja korkeuden metreinä. Ohjelma laskee suorakulmion piirin ja tulostaa sitten tekstin:&lt;br/&gt;&#10;Suorakulmion piiri on ... metriä.&lt;br/&gt;&#10;&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​&lt;br/&gt;&#10;&lt;/span&gt;</content>
<published>2020-12-02T16:58:48+02:00</published>
</entry>

<entry>
<title>Esimerkki 5</title>
<id>https://peda.net/id/86d9a0bc34a</id>
<updated>2020-12-02T15:37:31+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/esimerkki-5#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/ac53b1c532&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T15:37:31+02:00</published>
</entry>

<entry>
<title>Tehtävä 5</title>
<id>https://peda.net/id/e8610b0834a</id>
<updated>2020-12-02T17:14:31+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-5#top" />
<content type="html">&lt;span&gt;a) Kopioi esimerkin 5 koodi ja muuta sitä niin, että ohjelma tulostaa &amp;quot;Vau&amp;quot;, jos luku on suurempi kuin 10, ja muuten tulostaa &amp;quot;Oujee&amp;quot;.&lt;br/&gt;&#10;&lt;br/&gt;&#10;b) Tee ohjelma, joka kysyy käyttäjältä luvun väliltä 1-10.&lt;/span&gt;&lt;br/&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Jos luku on tällä välillä, tuloste on: Hyvä, luku ... on välillä 1-10.&lt;/li&gt;&#10;&lt;li&gt;Jos luku ei ole tällä välillä, &lt;span&gt;tuloste on: Antaa olla, et ymmärtänyt kysymystä.&lt;/span&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;br/&gt;&#10;&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T16:58:59+02:00</published>
</entry>

<entry>
<title>Esimerkki 6</title>
<id>https://peda.net/id/9e3c777a34a</id>
<updated>2020-12-02T15:38:10+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/esimerkki-6#top" />
<content type="html">​&lt;iframe src=&quot;https://trinket.io/embed/python/c6b94fd94e&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T15:38:10+02:00</published>
</entry>

<entry>
<title>Tehtävä 6</title>
<id>https://peda.net/id/ee245d2434a</id>
<updated>2020-12-02T17:11:33+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-6#top" />
<content type="html">&lt;span&gt;a) Kopioi esimerkin 6 koodi ja muuta sitä niin, että ohjelma tutkii, onko annettu luku pienempi, suurempi vai yhtäsuuri kuin 10.&lt;br/&gt;&#10;&lt;br/&gt;&#10;b) Tee ohjelma, joka kysyy käyttäjän iän ja sen perusteella sijoittaa käyttäjän johonkin seuraavista ryhmistä:&lt;/span&gt;&lt;br/&gt;&#10;&lt;span&gt;Alle kouluikäinen 0-6v.&lt;/span&gt;&lt;br/&gt;&#10;&lt;span&gt;Koululainen 7-16v.&lt;/span&gt;&lt;br/&gt;&#10;&lt;span&gt;Peruskoulun suorittanut 16v.-&amp;gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span&gt;Tuloste käyttäjälle on seuraava: Ikäsi perusteella olet ...&lt;br/&gt;&#10;&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​&lt;br/&gt;&#10;&lt;/span&gt;</content>
<published>2020-12-02T16:59:08+02:00</published>
</entry>

<entry>
<title>Tehtävä 7</title>
<id>https://peda.net/id/bb0fb44e34b</id>
<updated>2020-12-02T17:21:02+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/matematiikka/tommi-kuusisto/8lk/ohjelmointia/ol/teht%C3%A4v%C3%A4-7#top" />
<content type="html">Suunnittele itse jokin ohjelma ja toteuta se alle.&lt;br/&gt;&#10;&lt;br/&gt;&#10;​&lt;iframe src=&quot;https://trinket.io/embed/python/967b528076&quot; width=&quot;100%&quot; height=&quot;600&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;​</content>
<published>2020-12-02T17:19:11+02:00</published>
</entry>


</feed>