{"functions":[],"name":"Calculate speed above limit.","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3c91434f_d469_4002_8a4a_b749666d10c2"},{"newline":true,"@type":"Output","id":"id_e01786e8_a8c8_4433_845f_8c5734a6e67c","value":"\"What is the speed limit? It can not be below 20 or above 70.\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"","tpe":"Integer","name":"speedlimit","lengthValue2":"","id":"id_1e6bf234_2bef_449a_a6cb_44c526130ba9","initValue":"0"},{"@type":"Input","name":"speedlimit","id":"id_c9593f8f_384e_4430_a3ff_e29f1d806e02","prompt":null},{"condition":"(speedlimit < 20) || (speedlimit > 70)","@type":"While","id":"id_cc13851a_f3b6_46ae_9020_09ff4dc7971b","body":{"statements":[{"@type":"Comment","id":"id_4c81778f_d2c1_4950_9ddb_f3fa4b56a73b","text":"Loops if the input does not follow the rules."},{"newline":true,"@type":"Output","id":"id_e39ea50c_db1b_449d_9234_cec32992d0aa","value":"\"That's not right\""},{"@type":"Input","name":"speedlimit","id":"id_44e0c0b9_4194_4e33_975a_f194fa90657f","prompt":"please enter proper speed limit"}],"id":"id_d9badad2_3ff5_48a3_b2af_4e04995f9722"}},{"newline":true,"@type":"Output","id":"id_70a11753_a9a0_40b6_9581_bf5c46cacf64","value":"speedlimit"},{"@type":"Comment","id":"id_e440fec9_7987_47bb_815d_5bc782a3393c","text":"Established the speed limit."},{"newline":true,"@type":"Output","id":"id_626727fc_601f_45a6_9650_a58aac780a07","value":"\"What is the speed you are driving? It can not be below the speed limit.\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"","tpe":"Integer","name":"driverspeed","lengthValue2":"","id":"id_270c89e1_2119_48a8_ac5f_e5fffffbf1b7","initValue":"0"},{"@type":"Input","name":"driverspeed","id":"id_2946e7e5_22e8_401d_ba09_766b40a52823","prompt":null},{"condition":"speedlimit > driverspeed","@type":"While","id":"id_b7559f5e_9510_45d5_a147_95e1e7848d1e","body":{"statements":[{"@type":"Comment","id":"id_62936b2d_df5c_43b3_99af_ea6849e72956","text":"Loops if the input does not follow the rules."},{"newline":true,"@type":"Output","id":"id_de6aff52_54e9_4c8c_abd2_6766c403f51a","value":"\"That's not right\""},{"@type":"Input","name":"driverspeed","id":"id_1fe2d22f_2887_4b78_a0c5_1a814acbb081","prompt":"driver was not speeding. enter proper driver speed"}],"id":"id_80578bd9_4860_45e1_a21b_ca4ad0053102"}},{"newline":true,"@type":"Output","id":"id_bde93327_4da8_4d0a_94d0_e8151f7ff90e","value":"driverspeed"},{"@type":"Comment","id":"id_8b118e7a_943e_4a98_bb33_5a20e45beb20","text":"Established the driver speed."},{"lengthValue":-1,"@type":"Declare","lengthValue1":"","tpe":"Integer","name":"abovelimit","lengthValue2":"","id":"id_dce919d9_dfec_483e_98e0_80e9944191ed","initValue":"0"},{"@type":"Assign","name":"abovelimit","id":"id_810eb48a_3446_4eb9_933d_e86ac19e2a77","value":"driverspeed - speedlimit"},{"@type":"Comment","id":"id_709fbb19_10fc_4cdb_a498_873a2d5faf31","text":"Calculating results into its own variable."},{"newline":false,"@type":"Output","id":"id_df925153_e02e_41c9_ace2_ad8b73222ffc","value":"\"You were driving \""},{"newline":false,"@type":"Output","id":"id_5ed3108f_0f0d_4da1_943f_6fc1060c6bdf","value":"abovelimit"},{"newline":false,"@type":"Output","id":"id_3635d097_94af_4b63_b05e_be63df37ddf9","value":"\" miles above the speed limit.\""},{"@type":"Comment","id":"id_93c1c893_d9e9_4df9_9291_d6df14b28c40","text":"Declaring the outcome."},{"@type":"Return","id":"id_30ba91d9_d8dd_4dc6_97bc_77b6048e2dc5","maybeValue":null}],"parameters":[]},"id":"id_367d0e6c_164a_4343_9059_b566e9ead561","config":{"showDebugVars":false,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":false},"version":"0.2","revision":1349}