Parsons Practice
UUSI OTSIKKO
testataan uusia koodiblokki-ominaisuuksia TULEEKO TEKSTI NÄKYVIIN
parsons 0 oma kokeilu kärkeen.
Parsons 1 (Line Based Grader) TESTI TEKSTIÄ TÄHÄN
Re-arrange the blocks below so they print out “Hello World!”
Parsons 2 (Variable Check Grader)
Construct a program that swaps the values of variables x and y using the helper variable tmp. You can change the names of the variables () by clicking them.
Parsons 3 (Unit Test Grader)
Your task is to construct a function which returns the index of the largest element in the array.
Parsons 4 (Language Translation Grader)
Print out “I am a Java program” three times using a for loop.
Parsons 5 (Turtle Grader)
Construct a program by dragging&dropping and reordering lines. The constructed program should draw a triangle like shown below.
Parsons oma kokeilu
Laskin kysyy luvun (operandi1) ja operaation (operaattori) kunnes saa operaattoriksi lopetusmerkin “L”. Laskin käyttää edellisen laskutoimituksen tulosta seuraavan laskemiseen. Välitulos talletetaan operandi1-muuttujaan. Lopuksi tulostetaan lopullinen tulos konsoliin.
laskimen osa 1
Saa parametrina laskutoimituksen ja tarkistaa sopiiko se nelilaskimen sallittuihin operaatioihin. Palauttaa totuusarvon.
laskimen osa 2
Muuttaa merkkijonon numeroksi. Jos se ei onnistu palauttaa merkkijonon NaN.
Laskimen osa 3
Kysyy prompt-ikkunassa luvun. TArkistaa onko kyseessä luku ja kysyy uutta lukua kunnes käyttäjä antaa oikeasti luvun.
LASKIMEN OSA 4
Kysy operaattori-funktio kysyy nelilaskimen laskutoimitusta kunnes käyttäjä antaa “laillisen” laskutoimituksen.
PARSONS PUZZLE BLOKKIKOKEILU
Ei ruksia html-kohdassa pre5. LISÄKSI UUSI KOODI. kaikki js-osoitteet vaihdettu
Implementation Notes
When you host multiple Parson’s problems on a single markdown page, you need to add a unique prefix. You can easily do this in the Codio generator by typing a unique prefix into the “Prefix” textbox and pressing Enter/Return. Then you can simply copy-paste like normal.
If want each problem to be it’s own page, you can use relative path links at the bottom of each of your markdown pages as seen below. If you want students to be able to return to previous problems in this format, consider adding previous links or link to a table of contents like page.