{"functions":[{"rawId":"id_92fac955_5ee5_4d5a_86c0_965cb72983fc","tpe":"Real","name":"bmi","statements":[{"@type":"Begin","id":"id_98959eed_7adc_45c0_8c59_f15b79b7e88b"},{"@type":"Return","id":"id_767f6fb3_8455_4388_b878_087a40036cab","maybeValue":"weight / (height*height)"}],"parameters":[{"tpe":"Real","name":"height","id":"7dfcbb2d-a408-47bd-bd4f-afa837b0e702"},{"tpe":"Real","name":"weight","id":"644569fd-b36b-4818-8e75-ab25784a3a77"}]},{"rawId":"id_d4da7911_bdd4_4d61_a95c_8787bd8e2e9c","tpe":"Void","name":"printType","statements":[{"@type":"Begin","id":"id_1d58d7ac_0fd7_4992_960d_347904ec843f"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d4f05a29_dcca_42e8_867c_1540013c43df","value":"\"overweight\""}],"id":"id_cf0582eb_ef64_4cb7_98e5_72f4709ccbc5"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7acf1e2c_bf66_4484_8cb8_817fc7af12e1","value":"\"normal\""}],"id":"id_afea93d2_9eb5_4fa8_a8d8_7aaf6f1ae43d"},"condition":"bmi<24.9","@type":"If","id":"id_e7145259_06e6_4913_8b4d_6e94dc543dae"}],"id":"id_ccac4547_6f97_4d73_b92a_6902090fdf13"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_bfd6d514_7c5d_4331_8795_1ef3e395d8c3","value":"\"underweight\""}],"id":"id_f601a9f0_f810_428c_a75a_555216bca1ae"},"condition":"bmi<18.5","@type":"If","id":"id_ac4e503c_0b8c_40bb_a2fc_667bcac69b11"},{"@type":"Return","id":"id_95656e91_9c5b_4363_9312_fbba74fdf63e","maybeValue":null}],"parameters":[{"tpe":"Real","name":"bmi","id":"46dd8e46-3202-4814-8f5f-64aaa3e19b88"}]}],"name":"BMI calculator","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_41b3ad45_658d_4d9a_aca5_81b0d5244ebd"},{"@type":"Declare","tpe":"Real","name":"w","id":"id_fe750971_f73f_44e0_a97c_8ce7d369a808","initValue":null},{"@type":"Declare","tpe":"Real","name":"h","id":"id_bb0689c5_6aac_4ced_b118_36a4aba07adc","initValue":null},{"@type":"Input","name":"w","id":"id_1c46aa52_01ef_48f4_b8d7_0345ea75031c","prompt":"Please enter your weight in kg: "},{"@type":"Input","name":"h","id":"id_72999a30_2972_4490_a6aa_22a134fbf48d","prompt":"Please enter your height in m: "},{"@type":"Declare","tpe":"Real","name":"bmi","id":"id_7586ac24_0421_45c0_9578_05e216a072ec","initValue":"bmi(h,w)"},{"newline":true,"@type":"Output","id":"id_e405a479_4e43_4980_bc5f_63294792eec9","value":"\"Your BMI is \" + bmi"},{"@type":"Call","id":"id_5f9cfb07_6f24_4b4e_89e6_45c2fa8b6bb0","value":"printType(bmi)"},{"@type":"Return","id":"id_b493fab8_3bb3_4c63_85f7_331095562863","maybeValue":null}],"parameters":[]},"id":"id_bdae8193_a6cc_410c_8081_9e8e48de4baf","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":false},"version":"0.1","revision":7}
Settings