{"functions":[],"name":"utilitybill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c1166a4f_82eb_4c31_ba00_75889508d781"},{"@type":"Declare","tpe":"Integer","name":"Meterstart","id":"id_d4dd1bfc_0283_45ca_ac79_aaa94a4e8fb1","initValue":null},{"@type":"Declare","tpe":"Real","name":"Charge","id":"id_490f6ad1_8171_4a88_9544_f0034609e9e5","initValue":null},{"@type":"Declare","tpe":"String","name":"Name","id":"id_4d456e8e_22ec_45cc_ae10_3d21a8f68d92","initValue":null},{"@type":"Declare","tpe":"Real","name":"KWH","id":"id_3dc07b55_fc05_4ef3_a119_658663ba6a83","initValue":null},{"@type":"Declare","tpe":"Real","name":"Meterend","id":"id_29d04620_1785_4617_8b77_46d6d1d24316","initValue":null},{"@type":"Declare","tpe":"String","name":"Copyright","id":"id_27305110_a3bb_4b6c_8811_e6bcdc4682b3","initValue":null},{"@type":"Input","name":"Copyright","id":"id_47d3c756_7217_4131_b2d0_1e98e41b3e8a","prompt":null},{"@type":"Input","name":"Meterstart","id":"id_713130ce_c3fb_4d54_a310_2c813365a667","prompt":null},{"@type":"Input","name":"Meterend","id":"id_43e1c1ee_e3e9_4c07_b290_cd1dc4afef23","prompt":null},{"@type":"Input","name":"Name","id":"id_4154b302_70ba_4754_a1f3_94050698f93f","prompt":null},{"@type":"Assign","name":"KWH","id":"id_abaad5f6_de33_4ed1_aaa2_14a310b69792","value":"Meterend-Meterstart"},{"newline":true,"@type":"Output","id":"id_0d694a8b_f096_4f49_b41d_30fcd17a7b82","value":"\"KWH = \""},{"newline":true,"@type":"Output","id":"id_3ee20527_7d08_4ebf_8a93_c0a57c510710","value":"KWH"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_4dca52e6_5ba9_4616_ad4c_2a691d058556"},"trueBlock":{"statements":[{"@type":"Assign","name":"KWH","id":"id_35f3ae68_0faa_4ae7_a233_5acad0a56cf5","value":"53.00 +(0.165*KWH)"}],"id":"id_4409c524_d1a5_4b14_868f_73077ed18fc0"},"condition":"KWH >= 0","@type":"If","id":"id_add60f03_b23f_4393_91af_61afffe7482e"}],"id":"id_be26ddd8_9f86_4661_9ad8_12af6933cf9f"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_a5fbae78_0e31_484a_afc5_b162d443dbb7","text":"Calculate Charge = 75.50 + 0.125 * KWH"},{"@type":"Assign","name":"KWH","id":"id_66ab487b_c46f_4200_ae77_2d6e38508323","value":"75.50+(0.125*KWH)"}],"id":"id_020e9a7b_565b_45ab_8410_259adc13f472"},"condition":"KWH > 500","@type":"If","id":"id_1fe8c260_345e_4f1c_9a02_02435d4d21c0"}],"id":"id_27a3de43_b79e_48ec_9772_8035e37cfabd"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_58983c67_837a_40e5_a90c_5e641f31d4a2","text":"Calculate Charge = $125.75 + 0.117 * KWH"},{"@type":"Assign","name":"Charge","id":"id_9a7e228c_bfba_461b_a385_4e1f2f63dd10","value":"125.75+(0.117*KWH)"}],"id":"id_bcd27b2b_f33a_4edf_96bc_793afe99579a"},"condition":"KWH > 1000","@type":"If","id":"id_961c0048_8953_4fd9_afb9_50f935e07be7"}],"id":"id_044fcfbe_542d_42e6_87cf_ece7df84456b"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_726f8727_7e41_44d0_8940_3c6a6cd0a8ff","text":"Calculate Using formula charge = 400.07+0.017*KWH"},{"@type":"Assign","name":"Charge","id":"id_efbadba8_9231_47b4_9039_6645445d4335","value":"400.07+(0.017* KWH)"}],"id":"id_b9b75d93_991f_4df9_b46c_c820a7a92cb5"},"condition":"KWH > 3000","@type":"If","id":"id_154bf05d_b6aa_4b18_aeda_51156bea6829"}],"id":"id_95c54e02_aef0_4148_a55e_1909b6fb07a4"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_f19c07ed_aa55_4ebf_af0f_67ef4069c231","value":"\"BAD METER READINGS:\""},{"newline":false,"@type":"Output","id":"id_1090fa21_cee9_4dc2_be62_e029aa628e68","value":"Meterstart"},{"newline":true,"@type":"Output","id":"id_705643cb_82cc_48de_9937_dc0c9b6077dc","value":"\"(START)\""},{"newline":true,"@type":"Output","id":"id_2aa9f2c2_b26e_4d5a_9e45_300d62ef490d","value":"Meterend"},{"newline":true,"@type":"Output","id":"id_e044f1b5_f8f1_4669_9a55_1db9de161b66","value":"\"(END)\""},{"newline":true,"@type":"Output","id":"id_04579cab_e33d_4ac7_ab3c_89a0823e9854","value":"Copyright"}],"id":"id_6fd8cfb8_0468_4992_aefb_76746f5a1c3f"},"condition":"Meterend<Meterstart","@type":"If","id":"id_82a53940_dcaf_4ee1_a30a_d228238f2b2f"},{"@type":"Comment","id":"id_9c3b0c34_46f9_463f_8b09_7c7d16836c86","text":"Output The Customer Bill"},{"newline":true,"@type":"Output","id":"id_b4b0a11c_86e5_4756_8ccb_d4a325c4c966","value":"\"CUSTOMER NAME:\""},{"newline":true,"@type":"Output","id":"id_62138c7b_7e14_4412_b33d_fc1bf54b6f4b","value":"Name"},{"newline":true,"@type":"Output","id":"id_2e45c27d_8dbe_4c70_8460_2fc91ab33eac","value":"\"CHARGES DUE: $ DEFERRED\""},{"newline":true,"@type":"Output","id":"id_6b23207e_bb5d_4d56_a718_d4ea9f12d91d","value":"\"POWER USAGE: ??????\""},{"newline":true,"@type":"Output","id":"id_e7232db3_f9db_4b7b_8d84_ed1c81f8cc42","value":"\" KWH\""},{"newline":true,"@type":"Output","id":"id_83a714ed_9f39_4e0f_abe2_bb11055ccc7e","value":"\"METER READINGS:\""},{"newline":true,"@type":"Output","id":"id_98072db6_5217_4024_879f_46dac9dc6390","value":"Meterstart"},{"newline":true,"@type":"Output","id":"id_297a5177_5f52_4137_a246_662ff31bcc7a","value":"\"INITIAL\""},{"newline":true,"@type":"Output","id":"id_ad2cae6a_8e89_4f59_9268_84dc1343645f","value":"Meterend"},{"newline":true,"@type":"Output","id":"id_b3d0f1eb_d5d6_4b80_8617_8990102f8dfe","value":"\"FINAL\""},{"newline":true,"@type":"Output","id":"id_abd824c1_5e4c_47ae_9f81_169227d71bf2","value":"Copyright"},{"@type":"Return","id":"id_3ba03f78_8642_4809_b651_0900c4f58491","maybeValue":null}],"parameters":[]},"id":"id_9c3be3a1_f473_4e47_bbb4_1cdf49d544c2","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":1836}