by @davi portugal Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_6a660e01_6656_43d0_bf51_c4a61829e878"},{"@type":"Declare","tpe":"Integer","name":"countScores","id":"id_389f86b5_0ac2_4e0f_8fe8_7c03f395e812","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"sumScores","id":"id_e2a0a61d_1740_42a1_8764_5ca07f838f0c","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"testScores","id":"id_468f4a33_84d7_4927_8b6d_f6bfdc9f7c52","initValue":null},{"@type":"Input","name":"testScores","id":"id_37f0360b_6e9c_427a_af9a_6c95e6c384d7","prompt":"Enter test scores from 0 to 100 (enter -1 to quit)."},{"condition":"testScores = 100","@type":"While","id":"id_196c4823_42a4_4906_9302_84be5b1a4a10","body":{"statements":[{"@type":"Input","name":"testScores","id":"id_9e692d87_6daf_44da_9aa4_6ed35689d8e0","prompt":"Score must be from 0 to 100. Try again."},{"@type":"Assign","name":"testScores","id":"id_ebb7e3de_3ca5_4437_8cd4_cb6a399ad20f","value":"0"},{"@type":"Assign","name":"countScores","id":"id_77f7e577_22af_43ff_83a3_f4ed2e3d7e0c","value":"0"}],"id":"id_bf7b1374_3f85_45f1_b2d3_f246fc82f023"}},{"condition":"testScores < -1","@type":"While","id":"id_37e4f696_eacd_41d9_87ec_6eb60d4f500c","body":{"statements":[{"@type":"Input","name":"testScores","id":"id_d76bc97f_1f80_4caa_980d_04a0f5eae029","prompt":"Score must be from 0 to 100. Try again."},{"@type":"Assign","name":"testScores","id":"id_6975f1a7_cc50_437f_8e57_8f16bbabf0fa","value":"0"},{"@type":"Assign","name":"countScores","id":"id_ec4e4c33_e465_41dc_bc43_f5880bd3ed1b","value":"0"}],"id":"id_a99ace4c_23e1_4540_b883_7ebcb523629a"}},{"condition":"testScores != -1","@type":"While","id":"id_71d0144b_c5f1_4449_8a93_4472dff08a67","body":{"statements":[{"@type":"Assign","name":"sumScores","id":"id_a0eb985e_8b09_434c_88ba_65d1d2c5a659","value":"sumScores + testScores"},{"@type":"Assign","name":"countScores","id":"id_93566934_7b3f_40d8_a75a_39606c6fcd3d","value":"countScores + 1"},{"@type":"Input","name":"testScores","id":"id_2b6a5202_2a63_409a_beab_edf386192b13","prompt":"Enter test scores from 0 to 100 (enter -1 to quit)."}],"id":"id_4f536fba_52d3_4bd1_9051_26dbd8b79eed"}},{"@type":"Declare","tpe":"Real","name":"averageScore","id":"id_9b0d15a1_4a9c_4df5_a6a8_073b0aceee25","initValue":"sumScores / countScores"},{"newline":true,"@type":"Output","id":"id_c67e7cb2_b13c_4754_a8c9_c288543eb4cd","value":"\"Score Count: \" + countScores"},{"newline":true,"@type":"Output","id":"id_18f57c45_e814_407f_ba7b_c820391df8fc","value":"\"Score total: \" + sumScores"},{"newline":true,"@type":"Output","id":"id_ee08246d_64d8_4e65_8e53_b0e309b99bbb","value":"\"Average score: \" + averageScore"},{"@type":"Return","id":"id_8ccfd4a4_b2c9_4237_ba96_50e353132068","maybeValue":null}],"parameters":[]},"id":"id_224600dc_4c20_47af_92de_800b645e962a","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":731}