by @Virginia Carneiro de Paula Fork
{"functions":[],"name":"Avg Score Calculator","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_d37fc348_777f_4b65_9af6_b8c361138141"},{"@type":"Comment","id":"id_b6407eee_c80b_4fe1_bb9b_6c0d371958c0","text":"Assigning variables"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"TestScore","lengthValue2":"5","id":"id_4dff70b2_237e_4aa6_9181_ed5295e373ef","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"ScoreSum","lengthValue2":"5","id":"id_e1e1e1bc_5cf3_4749_bcbc_dc9060cd06e1","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"TestScoresAvg","lengthValue2":"5","id":"id_e0f5a3c7_4b45_4d16_a280_2cd05676055c","initValue":"0.0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"TestCount","lengthValue2":"5","id":"id_e716f80e_b0df_41fb_b269_98b58f82d27b","initValue":"0"},{"@type":"Comment","id":"id_c2e8a116_701a_420e_9479_4fdda2df8f7b","text":"Taking input"},{"newline":true,"@type":"Output","id":"id_c8c851cd_8e55_47e0_9914_7e5033067d27","value":"\"Enter test scores between 0 to 100.\""},{"newline":true,"@type":"Output","id":"id_c3f24df1_f489_4455_8f67_de9625392903","value":"\"Enter '-1', to stop program.\""},{"newline":false,"@type":"Output","id":"id_dd54b3d8_e3be_4c8b_9c53_af0c92917423","value":"\"Enter score: \""},{"@type":"Input","name":"TestScore","id":"id_70929db6_425b_44be_9786_c61c6cbb9d80","prompt":null},{"newline":true,"@type":"Output","id":"id_fb3cb7ac_4d8e_44d3_be22_ce143b901339","value":"\"✓\""},{"@type":"Comment","id":"id_3063a94e_af33_439d_929a_1fd606d773b2","text":"Do while, used to be able to repeat process"},{"condition":"TestScore != -1","@type":"DoWhile","id":"id_636e912b_1141_404f_a7a2_5e713824ec0e","body":{"statements":[{"@type":"Comment","id":"id_f4879dbd_e23a_4270_85db_f1dcc2629c18","text":"Used to repeat process"},{"condition":"TestScore >= 0 && TestScore <= 100","@type":"While","id":"id_bd616aa1_0b5e_4a79_82b0_e5cad5b69f89","body":{"statements":[{"@type":"Assign","name":"ScoreSum","id":"id_2cad99d6_6107_43b8_a2b7_07adb3bb3699","value":"ScoreSum + TestScore"},{"@type":"Assign","name":"TestCount","id":"id_2e902d15_4f43_47ac_95b1_ad686577388d","value":"TestCount + 1"},{"@type":"Comment","id":"id_fe187f5b_8cae_4923_8bb6_72c053ac2ed1","text":"Multiplies factors by 1.0 to have a float average"},{"@type":"Assign","name":"TestScoresAvg","id":"id_9ba56ff3_9360_49da_9100_b05101527b15","value":"(ScoreSum*1.0)/(TestCount*1.0)"},{"newline":false,"@type":"Output","id":"id_28129055_cc40_449f_99dc_4f8274306c4c","value":"\"Enter score: \""},{"@type":"Input","name":"TestScore","id":"id_848d250d_09fe_435b_9e64_d1e86e93b167","prompt":null},{"newline":true,"@type":"Output","id":"id_26ae65b8_fb7f_4e62_9800_8e6715c3bac9","value":"\"✓\""},{"@type":"Comment","id":"id_edb3ab8d_58b9_449d_904b_8a9aa2263bc8","text":"Visual indicator that input was received"}],"id":"id_9ff62f3c_9e9f_4c1e_a382_e7f257970773"}},{"@type":"Comment","id":"id_035fb28a_6a04_4043_916e_34ac1b72bb3b","text":"Prevent option to retype if answer is -1"},{"falseBlock":{"statements":[],"id":"id_883ca467_2cad_40dd_9440_91af0b2ac6c0"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a774ff6c_6005_49d7_b53b_be6b2455c916","value":"\"Score provided must be between 0 - 100, Try again\""},{"newline":false,"@type":"Output","id":"id_4a47a33d_6792_47f4_8883_a3b8d654609c","value":"\"Enter score: \""},{"@type":"Input","name":"TestScore","id":"id_9edd0125_c369_431d_8a38_96f883aed254","prompt":null},{"newline":true,"@type":"Output","id":"id_58a57c31_5ae9_4002_8328_4308e5543ccc","value":"\"✓\""}],"id":"id_0c980e3a_d12b_4d42_8fb9_a1bf8c9505f3"},"condition":"TestScore != -1","@type":"If","id":"id_7fca6726_bd19_4c7d_8fdb_7513d3911357"}],"id":"id_99e7b1eb_1da2_4cd9_aefd_505a3dadae82"}},{"newline":true,"@type":"Output","id":"id_6085f626_4d33_4035_b511_9d5dedd0de24","value":"\"Test score(s) counted: \" + TestCount"},{"newline":true,"@type":"Output","id":"id_6c97d7c9_c7f3_449b_a3f6_ab55e7bf5443","value":"\"Total score: \" + ScoreSum"},{"newline":true,"@type":"Output","id":"id_ea29a487_a794_4eb8_a148_55a4f10ebe2c","value":"\"Calculated Average score: \" + TestScoresAvg"},{"@type":"Return","id":"id_6e5d9310_622a_4ae3_bbba_0836fd176cba","maybeValue":null}],"parameters":[]},"id":"id_039aadf2_9981_4558_8241_f7dfa6914187","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":false},"version":"0.3","revision":5087}