by @Soymagic Fork
{"functions":[],"name":"The Price of Shopping","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b8b772b2_0a46_42f0_a5ba_19184cc67437"},{"@type":"Comment","id":"id_b2303274_c3b8_43d8_96aa_c4204f012209","text":"Here are all the items being declared and input being received"},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"item1","id":"id_9496d5df_3b88_4637_8be0_3d08b77d8f86","initValue":null},{"@type":"Input","name":"item1","id":"id_3e93791f_06f1_4b36_b71f_3fa103cf5dc4","prompt":null},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"item2","id":"id_65ab1e9e_3dab_4e90_8551_1916b6444418","initValue":null},{"@type":"Input","name":"item2","id":"id_d260b442_c86d_442b_97bb_f743ec987fd0","prompt":null},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"item3","id":"id_304e0681_3279_44d1_aef3_6d48d472ad37","initValue":null},{"@type":"Input","name":"item3","id":"id_8bc950c6_9af7_4365_8bfe_20b0a2a2f06d","prompt":null},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"item4","id":"id_4f0ef478_2622_43b6_9443_1001c00827b5","initValue":null},{"@type":"Input","name":"item4","id":"id_bd1dbdb0_618f_4c5c_85f6_7d11cb483011","prompt":null},{"lengthValue":1,"@type":"Declare","tpe":"Integer","name":"item5","id":"id_ebe0db01_c70e_4e6c_bed8_1f2e02d5d26e","initValue":null},{"@type":"Input","name":"item5","id":"id_2bae881e_5777_4a72_9a12_ef5a8da336c9","prompt":null},{"@type":"Comment","id":"id_06482e67_ae99_4437_9b04_9f93d55a1a50","text":"Here the subtotal is being calculated by adding each item"},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"subtotal","id":"id_d8641da3_3e5f_46ae_acf6_22aeb8456bec","initValue":"item1 + item2 + item3 + item4 + item5"},{"@type":"Comment","id":"id_b649a79f_c452_408d_b01d_aaca26e64202","text":"Here the sales tax is being calculated by multiply the subtotal by 7%"},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"salestax","id":"id_c8bf0552_5285_4bb5_af73_3070659b0138","initValue":"0.07 * subtotal"},{"@type":"Comment","id":"id_6e4c13ab_cde4_4c7c_b51a_3039ec970ffd","text":"Here the total is being calculated by adding the sales tax and subtotal together"},{"lengthValue":1,"@type":"Declare","tpe":"Real","name":"total","id":"id_306fba21_ce6c_4453_8769_ed4682d3d12f","initValue":"salestax + subtotal"},{"@type":"Comment","id":"id_fc7cc30e_8397_49ba_baab_d2a9b14b19a8","text":"Here we are outputting the subtotal, sales tax, and total."},{"newline":false,"@type":"Output","id":"id_377a44a3_3b2f_43ca_985c_fe7db2bd99a1","value":"\"The subtotal is $\""},{"newline":true,"@type":"Output","id":"id_14bf67b7_ff88_458b_80ed_e0555377b60f","value":"subtotal"},{"newline":false,"@type":"Output","id":"id_52772233_a361_4c75_9171_9aebb4328ace","value":"\"The sales tax is $\""},{"newline":true,"@type":"Output","id":"id_7421fe45_9d64_4f11_b147_af578d5645c3","value":"salestax"},{"newline":false,"@type":"Output","id":"id_906a7779_b413_4bdb_9b9a_0c58f8f7046e","value":"\"Your total is $\""},{"newline":true,"@type":"Output","id":"id_02014dac_846b_4cfa_b582_a0ce23538fa1","value":"total"},{"@type":"Return","id":"id_8881c47d_c141_49e2_8835_2ea5948d99e8","maybeValue":null}],"parameters":[]},"id":"id_3ca41ec5_c558_439b_b01e_4484fe0ed93c","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.2","revision":978}