{"functions":[],"name":"Pavel Bazhutov - Speeding","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_40edea85_fbe0_41bb_be10_b59e5dfa08de"},{"@type":"Comment","id":"id_4f9ce3fd_05af_4131_b298_6b0b2a3b12b9","text":"10/28/24 Pavel Bazhutov"},{"@type":"Declare","tpe":"Integer","name":"speedLimit","id":"id_cb5d9766_ede5_4d4f_8f7d_6cbe44d9d65b","initValue":null},{"@type":"Declare","tpe":"Integer","name":"speed","id":"id_1a1eb55a_e7dd_490b_9cf5_c9302b99dd73","initValue":null},{"@type":"Input","name":"speedLimit","id":"id_64ac387e_f028_4f78_bc9a_ede3963a65b9","prompt":"What is the speed limit"},{"@type":"Comment","id":"id_a2738718_a80c_457a_a0af_1146bae7dbc4","text":"we check if the speed limit is in the correct range"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b263f2a4_d161_4f6b_951a_010c986055fb","value":"\"Speed limit should be at least 20mph.\""}],"id":"id_e085062d_3662_4f70_8114_fa7fd3fb80a8"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0fca4330_9bc3_400e_bd9a_4ad0e6f86bd5","value":"\"Speed limit should be not greater than 70mph.\""}],"id":"id_71e3958a_11f0_4f55_a09d_b3cff294cc1b"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_c7adc30c_ca33_4ff2_b76f_d559af2427aa","text":"we ask for speed and make sure that driver is going over the speed limit"},{"@type":"Input","name":"speed","id":"id_e5f9dd9e_a9a7_41cc_ae9e_317dd0129cba","prompt":"What is the driver's speed: "},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_18daa02c_2e5e_410c_8620_c2044f22e38e","value":"\"The driver was not speeding\""}],"id":"id_675a0475_58b9_4a6b_8a7a_16dfacfa6c09"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_0cb57d3f_0be9_4809_a23c_591009f74d38","text":"we calculate the difference between the speed and a speed limit"},{"@type":"Declare","tpe":"Integer","name":"diff","id":"id_decd6996_ba4e_4c10_a330_aa4cc233a938","initValue":"speed - speedLimit"},{"newline":false,"@type":"Output","id":"id_1df4b9fd_c118_408a_9edd_9a76af6880f0","value":"\"The driver was going \""},{"newline":false,"@type":"Output","id":"id_3a0e3c56_3c44_485a_a4bb_86bc85e39f42","value":"diff"},{"newline":false,"@type":"Output","id":"id_9741885b_ba92_4b2f_8bc2_d6fbfbadef36","value":"\"mph over the speed limit.\""}],"id":"id_cf27581e_e8d7_4c9d_82f1_9d111f12454d"},"condition":"speed > speedLimit","@type":"If","id":"id_390ec43c_20a3_4600_9577_d2c7b456a985"}],"id":"id_7f06e54a_b722_4119_8cfa_7a4bf6a5408d"},"condition":"speedLimit <= 70","@type":"If","id":"id_9c827f00_da7b_47b4_8384_9389381d92e4"}],"id":"id_6a58d296_7398_407d_a2bb_97c10294e155"},"condition":"speedLimit >= 20","@type":"If","id":"id_f994c257_74c0_4dbd_be75_82d0efc60fff"},{"@type":"Return","id":"id_ea660b5c_8242_4413_a659_73520d02361a","maybeValue":null}],"parameters":[]},"id":"id_e12f32c1_9cba_44d9_8435_4ff3039874a7","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":830}