{"functions":[],"name":"Student Scores - 2","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_2bc83860_56ea_445f_88ce_91bb82b468de","body":{"statements":[{"newline":true,"@type":"Output","id":"id_80700e83_ea22_41c2_ac36_2dd5f1ac3506","value":"\"Score must be from 0 to 100. Try again.\""},{"@type":"Input","name":"studentScore","id":"id_ce0ce53f_e4fe_4667_a9a8_ccd053cb2ffd","prompt":"Enter score:"}],"id":"id_9d79ce2c_3582_4fc6_9e47_160d0e0635df"}},{"condition":"studentScore > 100","@type":"While","id":"id_fc18b40f_d413_40c0_a4e4_8046794f9ea2","body":{"statements":[{"newline":true,"@type":"Output","id":"id_db1904b6_de01_4133_aa50_521d13cc270f","value":"\"Score must be from 0 to 100. Try again.\""},{"@type":"Input","name":"studentScore","id":"id_48c3662c_6df8_4b1b_b4a1_ba818b1d2b8c","prompt":"Enter score:"}],"id":"id_55d566ec_d915_4fde_8ccd_08e7125afe0f"}},{"condition":"studentScore != -1","@type":"While","id":"id_0a948a5e_d434_445e_bbfb_59fbb2dcc117","body":{"statements":[{"@type":"Assign","name":"scoreCount","id":"id_264e8513_8b08_4ce8_8283_022eb01bd335","value":"scoreCount + 1"},{"@type":"Assign","name":"scoreTotal","id":"id_a6c2b7b4_469f_4725_8623_9dfe65a01580","value":"scoreTotal + studentScore"},{"@type":"Input","name":"studentScore","id":"id_09a7fb9b_c4f8_4e69_8c00_9f486fc0e4f1","prompt":"Enter score:"}],"id":"id_6a37f142_3307_4481_9998_b8196cb35ff8"}},{"@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_d93bf3ec_6134_476e_87db_992417103f22","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":700}