{"functions":[],"name":"Sales","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_de840237_6a10_4a43_9d87_7d0784859c39"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"7","tpe":"IntegerArray","name":"sales","lengthValue2":"5","id":"id_857c1992_5c5a_46ff_8b6f_93b7299b31c1","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalsales","lengthValue2":"5","id":"id_de3084bb_6d85_49df_b6d4_a1d4e19d1825","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"i","lengthValue2":"5","id":"id_db1532da_b097_48ca_b927_0fc1cb8c2012","initValue":null},{"@type":"Comment","id":"id_f2197851_9edf_45c2_ba7c_c75abc79014d","text":"declare array, variables, and assign values"},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"6","id":"id_eca4176e_9aad_4d2c_b4c6_530a1be0c46a","body":{"statements":[{"@type":"Comment","id":"id_6dcde4d9_efae_41d8_bdd7_ba088ad64775","text":"collect values and ask in ascending order"},{"newline":true,"@type":"Output","id":"id_f901cf66_2417_48bb_968c_9d3d2d0f8895","value":"\"Enter sales for day \" + (i + 1) + \": \""},{"@type":"Input","name":"sales[i]","id":"id_3fe0046e_7806_4a10_b162_01d11fe18a03","prompt":"Please enter x:"}],"id":"id_4c84ccc3_1ecf_4da2_ae99_fdd9dd1bd453"}},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"6","id":"id_cca4eddc_e997_4770_9e6d_18c5f3b0b750","body":{"statements":[{"@type":"Comment","id":"id_519778a0_eeb8_41c7_b5c8_3c9046b815e4","text":"add collected value together"},{"@type":"Assign","name":"totalsales","id":"id_f27127fc_4a8b_4d69_8977_5a0c601c2960","value":"totalsales + sales[i]"}],"id":"id_8b2117fe_b35a_4b5a_be20_c2cbf38dac66"}},{"@type":"Comment","id":"id_51dba1e5_71dc_4218_a083_0b2f2360f842","text":"display total of collected amounts"},{"newline":true,"@type":"Output","id":"id_a52fb126_98f3_4934_a6d6_92c45c4de3f2","value":"\"Total sales for the week: $\" + totalsales"},{"@type":"Return","id":"id_7a18983c_45f8_4a77_818b_e4852e90b63e","maybeValue":null}],"parameters":[]},"id":"id_018645e8_0d71_46cd_9379_59fe5f2285da","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.3","revision":403}