1 / 6

Iseseisev töö 11A2 Algoritmimine

Iseseisev töö 11A2 Algoritmimine. Nimi: _____________ Kuupäev: 25. september 2014. Ülesanne 1. Formaliseeri ja pane kirja algoritm. Programm küsib kasutajalt 2 arvu, võrdleb neid ja väljastab suurima. Programm küsib kasutajalt 3 arvu, võrdleb neid ja väljastab vähima.

cora-vinson
Download Presentation

Iseseisev töö 11A2 Algoritmimine

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. Iseseisev töö 11A2Algoritmimine Nimi: _____________ Kuupäev: 25. september 2014

  2. Ülesanne 1 • Formaliseeri ja pane kirja algoritm. • Programm küsib kasutajalt 2 arvu, võrdleb neid ja väljastab suurima. • Programm küsib kasutajalt 3 arvu, võrdleb neid ja väljastab vähima.

  3. Lahendus 1.1 – 2 arvu võrdlemine

  4. Lahendus 1.2 – 3 arvu võrdlemine

  5. Ülesanne 2 • Mõnusa toatemperatuuri algoritm • Mõtle välja, millal on toatemperatuur mõnus • Leia probleemolukordi, millal see nii ei ole • Mõtle igale olukorrale välja lahendus • leia lahendustest omakorda probleemolukorrad, mil see lahendus on pigem probleem • paku nendelegi välja omad lahendused • Eesmärk on püüelda mõnusa toatemperatuuri poole • Vormista see kõik formaliseerimise ja algoritmimise moel • sisendid, algväärtused, kontrollväärtused, tingimused “Kui nii, siis …, aga kui mitte, siis …”

  6. Lahendus 2 – mõnus toatemperatuur

More Related