by @Wendy Fork
{"functions":[],"name":"Student Scores","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c2d2f5f2_1b4b_4fe2_8b7d_a24bfdf6fcf0"},{"@type":"Declare","tpe":"Real","name":"studentScore","id":"id_17a18fe8_c7b6_4020_aca7_6c9f8acd5e39","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"scoreTotal","id":"id_44fddd46_2f4d_426a_b2ef_8501ed8c03a0","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"scoreCount","id":"id_2f7d25c4_6c63_4479_9e0d_7662f4102479","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"averageScore","id":"id_bf79862c_ca6f_46c3_9bc1_c25016361ec3","initValue":"0"},{"newline":true,"@type":"Output","id":"id_884d7d9d_20e2_433d_b996_70002920f185","value":"\"Enter test scores from 0 to 100.\""},{"newline":true,"@type":"Output","id":"id_323c2910_0b61_4935_b9fb_cae38ea67b01","value":"\"To end the program, enter -1.\""},{"@type":"Input","name":"studentScore","id":"id_3e51ca62_0504_41df_aeaf_e45195affb58","prompt":"Enter score:"},{"condition":"studentScore != -1","@type":"While","id":"id_f6ecd501_ef2d_4583_8807_a97d4d120153","body":{"statements":[{"falseBlock":{"statements":[],"id":"id_63fe754f_4196_4f9a_8da4_19b15fcf6e7c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_69678ce9_5ce3_498e_a645_74c84f198d8c","value":"\"Score must be from 0 to 100. Try again.\""},{"@type":"Input","name":"studentScore","id":"id_6c2503f5_bad6_4898_8624_a093795efbd9","prompt":"Enter score:"}],"id":"id_46fab666_1a01_47ad_aa9d_1347f822600f"},"condition":"if (studentScore < 0) OR (studentScore > 100)","@type":"If","id":"id_d0060831_69ca_4f4b_a4d7_3f9b4db36369"},{"@type":"Assign","name":"scoreCount","id":"id_04ca39c4_9b8e_4df5_bd99_5784c7819c51","value":"scoreCount + 1"},{"@type":"Assign","name":"scoreTotal","id":"id_0065f4d4_f72d_4e99_a521_74d53e1b2ece","value":"scoreTotal + studentScore"},{"@type":"Input","name":"studentScore","id":"id_db54ed0e_62c8_4f99_9338_30686663a20f","prompt":"Enter score:"}],"id":"id_f89618a3_9405_405e_a583_223d58bf42da"}},{"@type":"Assign","name":"averageScore","id":"id_225bb09e_caa5_4e07_b877_eebb2a580038","value":"scoreTotal / scoreCount"},{"newline":true,"@type":"Output","id":"id_d1bc73b8_d0a3_48d0_a59a_388e399d3e74","value":"\"Score count: \" + scoreCount"},{"newline":true,"@type":"Output","id":"id_724a0b51_61d7_4106_8905_2d67c8f8f6b9","value":"\"Score total: \" + scoreTotal"},{"newline":true,"@type":"Output","id":"id_5d356dea_bde5_4a6f_a300_f229dc42372b","value":"\"Average score: \" + averageScore"},{"@type":"Return","id":"id_c80cb6e8_27ea_46d3_862c_a45d38e9897e","maybeValue":null}],"parameters":[]},"id":"id_c8169bea_6872_4d52_aa4c_4eb4c7ad68e5","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1050}