by @Isha Vaje Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_46a40868_67f7_43d5_b091_f4f82809ce12"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"whr","lengthValue2":"5","id":"id_cf308c71_c838_48e8_a010_57fbfd815186","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"bmi","lengthValue2":"5","id":"id_7a2b3895_b198_4c0f_a8d0_6b2d6d280358","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"gender","lengthValue2":"5","id":"id_05fa47ee_d1bb_42a9_8d0c_909d848fa621","initValue":null},{"newline":true,"@type":"Output","id":"id_31f231ab_92a2_480c_a7fc_d1b853648cd8","value":"\"instructions\""},{"newline":true,"@type":"Output","id":"id_c861982c_f9e9_4434_977b_342219722b81","value":"\"For WHR\""},{"newline":true,"@type":"Output","id":"id_55085d79_e229_4399_a57e_608f22f84c11","value":"\"Waist: Measure midway between the lowest rib and the top of the hips, usually just above the belly button. Keep the tape snug but not tight.\""},{"newline":true,"@type":"Output","id":"id_1d3ba513_5d78_4f71_aafc_0f159937af00","value":"\"Hips: Measure at the widest part of the buttocks, keeping the tape level all around\""},{"newline":true,"@type":"Output","id":"id_90c2136b_dc2e_4f1d_9caa_1b828bc08545","value":"\"Enter your gender\""},{"@type":"Input","name":"gender","id":"id_362bc4df_8397_446d_a215_b38a5738496b","prompt":"Please enter x:"},{"falseBlock":{"statements":[],"id":"id_36495f0c_6b91_44cc_80bb_f4fe1bdf923f"},"trueBlock":{"statements":[],"id":"id_3063fd33_8436_493d_8eb9_e54404736ceb"},"condition":"gender==\"male\" || gender==\"MALE\" || gender==\"Male\"","@type":"If","id":"id_e2d08690_8a39_49d7_ab56_bb3e041c0685"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"index","lengthValue2":"5","id":"id_24fa4bf7_6b87_4671_bdcf_32057d8fcdd6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"waist","lengthValue2":"5","id":"id_8c7d205f_987f_4ab7_9297_68418716ba9b","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"hips","lengthValue2":"5","id":"id_55265b71_36aa_47cd_ab33_fed1d261aa4f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"height","lengthValue2":"5","id":"id_7f796bac_67c7_4c31_9cf4_aa0bafb201c9","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"weight","lengthValue2":"5","id":"id_9e23e2c2_afa5_4ffb_b188_b7ca993b9c84","initValue":null},{"newline":true,"@type":"Output","id":"id_c260a369_a805_4b2b_a4b9_985c41096fcb","value":"\"For female\""},{"newline":true,"@type":"Output","id":"id_a8e82db9_2b62_41d7_b609_df807972a6e7","value":"\"What are you looking for WHR or BMI\""},{"@type":"Input","name":"index","id":"id_d2b5ecea_c625_4df3_8f74_6ab1ab5f8e99","prompt":"Please enter x:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_cf19f0f6_6a31_422b_8742_a6e919a9e498","value":"\"For body mass index(IBM)\""},{"newline":true,"@type":"Output","id":"id_1fde86e5_92d5_4e39_aa88_5f2cd220b1b5","value":"\"Enter your height in meter\""},{"@type":"Input","name":"height","id":"id_e2e0cf78_5ed2_470b_b19f_862a09ccd918","prompt":"Please enter x:"},{"newline":true,"@type":"Output","id":"id_8c7f33ac_7597_4336_b0f2_89ea56dda0f2","value":"\"Enter your weight in kg\""},{"@type":"Input","name":"Weight","id":"id_0a57d112_d9ec_430d_b35f_f331a66d67b1","prompt":"Please enter x:"},{"@type":"Assign","name":"x","id":"id_7696aca1_7a8b_4bc8_8774_1d6b4f221ffa","value":"weight/(height*height)"},{"newline":true,"@type":"Output","id":"id_e8674de0_529a_425b_bddb_a451d5e9c3d8","value":"\"Your body mass index is \"+bmi"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e6c3fec1_17a9_4eba_8f3e_568cde414584","value":"\"You are over weight\""}],"id":"id_804e4ba3_9a16_4513_9647_c4e7cfa7174b"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8b8788e0_3f35_40df_9609_3f61b903b90e","value":"\"You have health weight\""}],"id":"id_84f5d7a1_045f_46b6_8545_55b16ea8c51c"},"condition":"ibm>=18.5 && ibm<=24.9","@type":"If","id":"id_c9240b3c_aca4_46b3_bf00_cd0d9c4def3e"}],"id":"id_8765bd89_73df_4beb_be33_15e0deefd636"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_837a9c93_6874_4473_b1b0_b034e889c924","value":"\"You are under weight\""}],"id":"id_8dc4a608_410c_4873_a30e_03cc4076d0d9"},"condition":"bmi<18.5","@type":"If","id":"id_eedc1d29_7d5b_47b2_a54c_791d2810cf78"}],"id":"id_82e5d182_37b0_4939_9ae2_10c7e2a78bae"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a9f48f95_f0be_4b48_897b_ea0e75fb2b46","value":"\"Enter your waist size in centimeter\""},{"@type":"Input","name":"waist","id":"id_8adb4c04_9848_4716_b192_ce9e04eaeb4e","prompt":"Please enter x:"},{"newline":true,"@type":"Output","id":"id_8cbfd5f3_0bfc_476b_a47a_9d6557469ebd","value":"\"Enter your hips size in centimeter\""},{"@type":"Input","name":"hips","id":"id_588217a4_cab3_4dd6_8a42_ffd462fef44a","prompt":"Please enter x:"},{"@type":"Assign","name":"whr","id":"id_6512579b_b20f_4b1a_b0e3_1f0526368911","value":"waist/hips"},{"newline":true,"@type":"Output","id":"id_a9465c13_633f_40dc_92e3_90f9331977b3","value":"\"Your waist to hip ratio is\"+whr"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6b0e5dc2_9480_4a22_9583_4c54b7782d87","value":"\"High risk\""}],"id":"id_dd804801_58b3_4912_ba17_6e875cf93cc2"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_83cbde1d_e7d3_4dfd_bf24_42f051126a9b","value":"\"Modrate risk\""}],"id":"id_bd3d73e0_7bfb_4af9_b2b2_b00e034e1ed7"},"condition":"whr>0.80 && whr<=0.85","@type":"If","id":"id_07897dfd_e029_42a5_95a6_8890fbdcb28a"}],"id":"id_39bc91bc_adb3_45b8_9937_291faad5a9be"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b1d52e08_e362_47bc_96c3_41b1294902b6","value":"\"Low risk\""}],"id":"id_3a9b3155_7f46_46d5_8975_0983efaf99f8"},"condition":"whr<=0.80","@type":"If","id":"id_8b00f11c_938d_4a8c_9ff5_350a60617b7d"}],"id":"id_3c38c2c0_cb5d_406a_bd5f_e2d0e2a3140d"},"condition":"index==\"WHR\"||index==\"whr\"||index ==\"Whr\"","@type":"If","id":"id_9d090002_e582_4b22_927e_ca46a7f1155c"},{"newline":true,"@type":"Output","id":"id_5f4a9c44_5033_4a5d_9256_3f2cad152953","value":"\"For male\""},{"newline":true,"@type":"Output","id":"id_b694a950_1d19_44f5_a5e7_9eaf3b423e33","value":"\"What are you looking for WHR or BMI\""},{"@type":"Input","name":"index","id":"id_ffef2991_5303_45b6_97de_4d734c160407","prompt":"Please enter x:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_597c127d_ba47_4e59_9ce8_c059097e9ca4","value":"\"For body mass(IBM)\""},{"newline":true,"@type":"Output","id":"id_19a0a9d6_4a5f_4a68_98e7_e79654445430","value":"\"Enter your height in meter\""},{"@type":"Input","name":"Height","id":"id_136c7d3b_2899_4dd7_8f64_651b6c67b08c","prompt":"Please enter x:"},{"newline":true,"@type":"Output","id":"id_899eaeb4_1c48_457d_af41_84b4903a8460","value":"\"Ebter your weight in kg\""},{"@type":"Input","name":"Weight","id":"id_48f5da9c_3b50_4066_93e0_354feb295106","prompt":"Please enter x:"},{"@type":"Assign","name":"x","id":"id_21b959de_6183_4074_8a96_b715031951d3","value":"weight/(height*height)"},{"newline":true,"@type":"Output","id":"id_e78b21f7_82f0_495d_ae5e_10704cd20b0b","value":"\"Your body mass index is \"+bmi"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d27b34c0_31a0_465c_88b1_4f24e82445a9","value":"\"You are over weight\""}],"id":"id_7c852306_4056_45ec_9359_55b00f8e63d1"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f90edccc_04bd_4001_895c_641cfda3dc2d","value":"\"You have healthy weight\""}],"id":"id_3b1ffba6_6d49_4ac9_a82a_cd690a6b3875"},"condition":"ibm>=18.5 && ibm<=24.9","@type":"If","id":"id_c9a5c4ec_dd31_4bca_9f91_8cbc137c3f5a"}],"id":"id_76557fd4_9cf3_46b2_a597_3e368a340535"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_bc71ec7c_44e2_45c5_921c_eb0fca59728a","value":"\"You are under weight\""}],"id":"id_3d04e005_d647_4191_b42b_d471a57f688f"},"condition":"bmi<18.5","@type":"If","id":"id_88685e03_be04_44d9_8bf2_70d9674dc1f1"}],"id":"id_6cfe46b7_e068_4af2_94be_a9e3e99b564d"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_394654cf_03b9_4c85_862b_045e9e54393e","value":"\"For waist to hip ratio(whr)\""},{"newline":true,"@type":"Output","id":"id_1d0848b6_cfbf_4dc8_bcc5_ad08059a7363","value":"\"Enter your waist size in centimeter\""},{"@type":"Input","name":"waist","id":"id_a79455c4_3b4a_41b3_a846_bba7eca44783","prompt":"Please enter x:"},{"newline":true,"@type":"Output","id":"id_601207f1_7f6c_4cb4_9202_3af2da38b1f9","value":"\"Enter your hips size in centimeter\""},{"@type":"Input","name":"hips","id":"id_ace5accb_9bf3_4ebe_9972_55062fec2f1e","prompt":"Please enter x:"},{"@type":"Assign","name":"whr","id":"id_4c22ae59_aea3_4774_985d_3eb7f5729cd1","value":"waist/hips"},{"newline":true,"@type":"Output","id":"id_f03d58aa_7093_48c2_85ad_2d0e948ecaad","value":"\"Your waist to hip ratio is \"+whr"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_714d28c8_eaf0_4bdd_b818_03b81fae8836","value":"\"High risk\""}],"id":"id_80929c37_c045_4b8d_8704_7a12cd0eabd2"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_30109a75_1313_4af7_98c6_2d6760ef2088","value":"\"Moderate risk\""}],"id":"id_365d05d8_a241_4c7b_a03b_78c5c68b9ab2"},"condition":"whr>0.90 && whr<=0.95","@type":"If","id":"id_b7be42d6_a143_4f47_bfa8_3ed07ed993ff"}],"id":"id_688e3708_195f_48e6_ab9f_8537cac9183b"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_cea18494_b868_4881_8a82_f6571b3408d3","value":"\"Low risk\""}],"id":"id_0c2c15f7_c023_4ded_9d25_58b139bca72e"},"condition":"whr<=0.90","@type":"If","id":"id_bb5dde00_ca23_4bb1_881e_34399910665a"}],"id":"id_eb1223f5_1049_4859_ab50_13595beff7c1"},"condition":"index==\"WHR\"||index==\"whr\"||index ==\"Whr\"","@type":"If","id":"id_3f2ff563_9850_4c19_ba9e_a08264a54801"},{"@type":"Return","id":"id_26d2f2c6_43cf_4612_8302_a1a1966362f9","maybeValue":null}],"parameters":[]},"id":"id_a7d3bb38_6c92_4ffd_9596_713f1094a754","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"c","showGenCode":true},"version":"0.3","revision":2308}