by @Pavel Bazhutov Fork
{"functions":[],"name":"Pavel Bazhutov","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_2cba3717_3dce_4f0e_bb3d_7cf63d92d07d"},{"@type":"Comment","id":"id_e6954edb_ddfb_4e58_b4fc_76b5d428dbbf","text":"9/11/24 Author:Pavel Bazhutov"},{"@type":"Declare","tpe":"Real","name":"taxValue","id":"id_51887a28_678b_4e74_831b_15dad96ab2a1","initValue":"0.07"},{"@type":"Comment","id":"id_89145044_afc0_413b_bc16_0a379c66b92d","text":"7% = 7 / 100 that's why I put value 0.07"},{"@type":"Declare","tpe":"Real","name":"item1","id":"id_9d25456d_a01c_498e_9691_f3ef6ae47f79","initValue":null},{"@type":"Declare","tpe":"Real","name":"item2","id":"id_657198cc_73a9_4dfb_83a9_388a86f30fcf","initValue":null},{"@type":"Declare","tpe":"Real","name":"item3","id":"id_0c683ba9_2b70_4701_b10e_5c0fe18420fc","initValue":null},{"@type":"Declare","tpe":"Real","name":"item4","id":"id_49fe3164_9274_403e_a994_0e443265e4b5","initValue":null},{"@type":"Declare","tpe":"Real","name":"item5","id":"id_46b937ab_bf8c_491e_9773_e92499dd6b75","initValue":null},{"@type":"Comment","id":"id_7945dd4f_fa61_4a01_a72e_423e930a05da","text":"declaring all the vars"},{"@type":"Input","name":"item1","id":"id_992ba575_21df_4767_8d44_5728ec155614","prompt":"Enter a price of item1"},{"@type":"Input","name":"item2","id":"id_91dab3d8_6a1a_4f3d_bcf0_9cded1f6f01f","prompt":"Enter a price of item2"},{"@type":"Input","name":"item3","id":"id_597861bf_2bd3_4aea_893d_2618feda93a7","prompt":"Enter a price of item3"},{"@type":"Input","name":"item4","id":"id_b4df990f_aadd_400f_b975_f831c3bef4b0","prompt":"Enter a price of item4"},{"@type":"Input","name":"item5","id":"id_d8cdb153_dfe4_46dd_9ecd_0132b09381a6","prompt":"Enter a price of item5"},{"@type":"Comment","id":"id_ffe40126_ed1e_48f3_819c_03b08ca95d94","text":"asking to input 5 vars"},{"@type":"Declare","tpe":"Real","name":"subtotal","id":"id_8dbf22b4_1e42_49ce_96fe_813cf106cd01","initValue":"item1 + item2 + item3 + item4 + item5"},{"@type":"Comment","id":"id_697da45c_2fef_43f7_ba05_e07b04062c97","text":"subtotal is a sum of all the prices. No tax"},{"newline":false,"@type":"Output","id":"id_5265c20d_58e7_4087_ab11_55653b6b58dd","value":"\"subtotal is: \""},{"newline":true,"@type":"Output","id":"id_044b2b1d_3ebe_42b8_944c_9a8f58c43b00","value":"subtotal"},{"@type":"Declare","tpe":"Real","name":"salesTax","id":"id_18bd097d_cce7_4dab_8d58_3fb4499607c5","initValue":"subtotal * taxValue"},{"@type":"Comment","id":"id_0d57fc4d_f2cf_47dd_a4f5_5135de8fb13f","text":"salesTax is the amount of taxes the user should pay out of the whole check"},{"newline":false,"@type":"Output","id":"id_09219254_935c_4cbf_a2d7_eee36dedb054","value":"\"sales tax is: \""},{"newline":true,"@type":"Output","id":"id_9f3f497b_9b80_429a_b5ac_36ff57a56158","value":"salesTax"},{"@type":"Declare","tpe":"Real","name":"totalPurchase","id":"id_9967099d_c2f8_43b4_9795_95cc8bdb4100","initValue":"subtotal + taxValue"},{"@type":"Comment","id":"id_caa33ea1_2d1a_4115_b075_a52bef1ede66","text":"totalPurchase is the total amount to pay"},{"newline":false,"@type":"Output","id":"id_24af8f60_1394_4187_a3b1_76b56cce8538","value":"\"total is: \""},{"newline":true,"@type":"Output","id":"id_389b04a6_d210_4b83_8d29_c6f2fa514757","value":"totalPurchase"},{"@type":"Return","id":"id_eb23761c_3e7f_415e_bac5_a9123d20a96d","maybeValue":null}],"parameters":[]},"id":"id_49791ae3_8051_4490_b476_b067c89add3a","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":932}