by @Wendy Fork
{"functions":[],"name":"Speed Limit","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_11a952ff_6181_4e0a_b855_e2b2b1bd9675"},{"@type":"Declare","tpe":"Integer","name":"speedLimit","id":"id_b9082872_8783_4866_a170_41340c7e9116","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"driverSpeed","id":"id_2acfab93_c341_48fa_af40_d8ca0aaa683c","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"milesOverLimit","id":"id_3aae38f7_9d92_4787_8760_450b51463799","initValue":"0"},{"@type":"Input","name":"speedLimit","id":"id_95a21bc5_7eef_49de_8bb7_faedf3f660a2","prompt":"Please enter the speed limit in MPH"},{"condition":"speedLimit < 20","@type":"While","id":"id_6cc6ab63_2f4d_45f0_9fe4_a081649cae48","body":{"statements":[{"newline":true,"@type":"Output","id":"id_7dd7109e_eb53_4486_81b0_2b269e936083","value":"\"The minimum speed limit allowed is 20 MPH\""},{"@type":"Input","name":"speedLimit","id":"id_ea719f1a_abd2_4acd_9716_c32d6ecec906","prompt":"Please try again"}],"id":"id_006f1e78_8243_435b_b5a0_1d17477528a0"}},{"condition":"speedLimit > 70","@type":"While","id":"id_337347b2_6ab1_4c63_82b6_02b918d132f7","body":{"statements":[{"newline":true,"@type":"Output","id":"id_38530cad_5aa0_461e_92c5_58b5f1416445","value":"\"The maximum speed limit allowed is 70 MPH\""},{"@type":"Input","name":"speedLimit","id":"id_8c594db1_cdc6_4c28_afcd_f31e28bfb683","prompt":"Please try again"}],"id":"id_b9a23fa2_b6c6_4ffd_a60b_5984bde46fc6"}},{"@type":"Input","name":"driverSpeed","id":"id_69e9add9_0422_4cd2_96d7_6aa1fb6ec30a","prompt":"Please enter the driver's speed in MPH"},{"condition":"driverSpeed < speedLimit","@type":"While","id":"id_61801461_6c3c_40fd_a129_06d94419ccef","body":{"statements":[{"newline":true,"@type":"Output","id":"id_d70a60db_f06e_459e_b6fb_5183dd08a3c0","value":"\"The driver was not speeding.\""},{"@type":"Input","name":"driverSpeed","id":"id_fdc116e1_99cf_4b37_9f3d_9c91913d2748","prompt":"Please enter the driver's speed in MPH"}],"id":"id_c7847c9f_2dee_421a_a412_7c006fa3a7d0"}},{"@type":"Assign","name":"milesOverLimit","id":"id_c212dcae_49ba_4aaf_91cb_4fabf0832142","value":"driverSpeed - speedLimit"},{"newline":true,"@type":"Output","id":"id_fd5b37e4_7fc4_449a_a943_4b28b0d822b2","value":"\"The driver was going \" + milesOverLimit + \" miles over the speed limit.\""},{"@type":"Return","id":"id_eea527e2_328b_4c18_9b4e_6fc29a58a336","maybeValue":null}],"parameters":[]},"id":"id_62cef734_0044_476b_8d62_aaff04c6be30","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1364}