by @Scott Hubacek Fork
{"functions":[],"name":"chapter3-area","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_9e70897d_f68a_428f_b356_469c899cafca"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"length1","lengthValue2":"5","id":"id_d87699a5_643b_4f3f_993a_30c4cdad5fe6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"length2","lengthValue2":"5","id":"id_c92d082f_4cfd_4aec_a8e3_df79b9a74f5c","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"width1","lengthValue2":"5","id":"id_f6dcf8ce_28a3_4b41_9632_39ec689e48ea","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"width2","lengthValue2":"5","id":"id_1b077328_cb9c_4d21_9aa4_9ff044a8fb6b","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"area1","lengthValue2":"5","id":"id_80c01429_8b83_4364_ba87_42c27b7aecbe","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"area2","lengthValue2":"5","id":"id_2da3d0ae_908e_476c_902e_61f82f818d7e","initValue":null},{"newline":true,"@type":"Output","id":"id_8bc6e2f3_f365_4862_b528_420431dac83e","value":"\"Please enter the length of rec1 \""},{"@type":"Input","name":"length1","id":"id_4892797e_d918_4124_b2a7_4222c66c4a6c","prompt":null},{"newline":true,"@type":"Output","id":"id_881f1bb5_e9a9_45aa_a6b2_b0011eed5db9","value":"\"Please enter the length of rec2 \""},{"@type":"Input","name":"length2","id":"id_f6f8b858_590f_473f_b25d_c95da3bdbb89","prompt":null},{"newline":true,"@type":"Output","id":"id_3b260838_7c5c_4bc0_a449_457bb9ccd858","value":"\"Please enter the width of rec1 \""},{"@type":"Input","name":"width1","id":"id_61c53117_eb2a_46da_830d_739c8b6a310e","prompt":null},{"newline":true,"@type":"Output","id":"id_e9cd5b10_21dc_46e5_9253_e80cf49c7c6a","value":"\"Please enter the width of rec2 \""},{"@type":"Input","name":"width2","id":"id_bb411120_18cd_493a_8777_976ff0fdf3c3","prompt":null},{"@type":"Assign","name":"area1","id":"id_7c80d37a_eab8_4747_8d57_331866a6fb24","value":"length1 * width1"},{"@type":"Assign","name":"area2","id":"id_907296de_4656_45a4_ae4a_dd005f36ba7c","value":"length2 * width2"},{"newline":true,"@type":"Output","id":"id_c0025947_0e84_4c34_9cbf_de9a348e99f7","value":"\"the area is rectangle 1 is \" + area1"},{"newline":true,"@type":"Output","id":"id_1c3270db_2442_4980_bab0_be436a9f3750","value":"\"the area is rectangle 2 is \" + area2"},{"falseBlock":{"statements":[],"id":"id_735f1da6_6766_40be_8f4c_69fef109d280"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_dc916089_de84_4206_8046_9f0df6c24c4d","value":"\"the two rectangles are the same size\""}],"id":"id_8a740688_8dfc_47d0_90ad_48624db05631"},"condition":"area1 == area2","@type":"If","id":"id_c7478a4d_d7b6_457f_8011_cd1434b64369"},{"falseBlock":{"statements":[],"id":"id_9a07bda2_1780_4f80_8e15_b1e021a936f3"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4e8f4cb1_4fad_49a3_af0b_3d3515d09c60","value":"\"the area of rectangle 1 is less than 2\""}],"id":"id_ed53d401_18f7_47b3_aba3_6077025f9405"},"condition":"area1 < area2","@type":"If","id":"id_7df05872_0a90_48e4_9920_15963bc268f1"},{"falseBlock":{"statements":[],"id":"id_d259fb34_6576_4997_88e5_d9ad5f4bf452"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6c24a43e_eff1_4dae_8484_85b96b262b8d","value":"\"the area of rectangle 1 is greater than 2\""}],"id":"id_4e7bc5d6_e958_43e5_8512_dff625d16bbd"},"condition":"area1 > area2","@type":"If","id":"id_5874250d_43b4_496c_8234_2ba63408fc1f"},{"@type":"Return","id":"id_ccf5c386_5f22_48b8_8872_732961000cc3","maybeValue":null}],"parameters":[]},"id":"id_b8344cb2_cfb1_40ee_9f68_51f9a69cc80b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":455}