by @Shashwath Boopathy Fork
{"functions":[],"name":"ride2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f5ff037d_0c75_459b_bee2_a0cb7a204915"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"height","lengthValue2":"5","id":"id_31bae98d_f003_4d25_a6fe_20a688e468f0","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"age","lengthValue2":"5","id":"id_3a13ce81_f551_4357_aa29_192835adacdd","initValue":null},{"newline":true,"@type":"Output","id":"id_7317c40c_9e34_4ca4_9689_e7bc31fbd767","value":"\"Input your height to see if you can go on the ride\""},{"newline":true,"@type":"Output","id":"id_8d200e5f_0f6e_4d03_af59_477046c5956b","value":"\"Input how many metres tall you are!\""},{"@type":"Input","name":"height","id":"id_7a39c754_ff13_49eb_b6e6_a8740f500208","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_83066136_7a8a_4665_9d9d_ef6a933a3c2f","value":"\"You are an anomaly\""}],"id":"id_53a339c6_3935_4bf3_8e3f_5d291185825a"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2adeee9f_4e88_4576_ae7f_39761be64e99","value":"\"You input \" + height + \"m tall, which means you cannot go on this ride as you are too short!\""}],"id":"id_1e4e2bd2_8839_416c_bcbd_f866f2b987d9"},"condition":"height<1","@type":"If","id":"id_2c7f4c68_a2e0_42ef_a312_f4136832d4d9"}],"id":"id_80c2cd2f_1e99_493d_8a63_95fa48f56709"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_41ac84b6_cb3c_4a71_999f_fb4670047fa9","value":"\"You input \" + height + \"m tall, which means you cannot go on this ride as you are too tall!\""}],"id":"id_40305bb2_b2a4_4720_a9ba_c5194f32c3b3"},"condition":"height>2","@type":"If","id":"id_2ff4fc61_982e_42ea_9b69_6f71cef6bccd"}],"id":"id_3de35163_4bdb_4bd9_b7c2_343e21a9ad89"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_761b7c43_4d47_4988_a478_eefb8c5024dc","value":"\"You input \" + height + \"m tall, which means you can go on the ride!\""},{"newline":true,"@type":"Output","id":"id_2143d44f_07af_4d73_b981_0d8a07f1eb27","value":"\"Now enter how old you are to find out the price of your ticket!\""},{"@type":"Input","name":"age","id":"id_14188578_27ba_4081_b0fb_6ef2bc575a6e","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_2aa89de0_913c_4c6a_9031_13ba1e0e99d5"},"trueBlock":{"statements":[],"id":"id_e44a78ca_42ad_4202_8e95_0eed083ccdbc"},"condition":"age","@type":"If","id":"id_6f2b11fb_e9d5_41c7_8302_572efbf60224"}],"id":"id_ff6a8811_ec95_4388_be98_0250005a2407"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_80ed48d4_0fde_4803_b164_a9069ac51fd7","value":"\"You are \" + age + \" years old which means your ticket will be £5!\""}],"id":"id_42804713_3b4d_4fbe_9a7a_a6e29f1cfc67"},"condition":"age>=16 && age<=65","@type":"If","id":"id_7b4f8ebc_4ec9_4ff5_8078_78d7cadc2cd9"}],"id":"id_b800f31b_67c0_48e3_87b3_7d6900a88b04"},"condition":"height>=1 && height<=2","@type":"If","id":"id_8ad39971_b155_4c69_9052_15522d5bfce5"},{"@type":"Return","id":"id_a82cb24d_7087_4903_9876_8373a9e82045","maybeValue":null}],"parameters":[]},"id":"id_f669137d_7862_4af6_a27d_7c5e17c5dffd","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1174}