by @davi portugal Fork
{"functions":[],"name":"Module 07 - Assignment","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_e4f7f592_19a7_48db_8617_e281411ec1c9"},{"@type":"Declare","tpe":"Integer","name":"speedLimit","id":"id_6c301548_1ebf_47ec_80bd_eb1536866766","initValue":null},{"@type":"Input","name":"speedLimit","id":"id_3bdaef10_d5b1_44e3_a610_af16ca66ca32","prompt":"Enter the speed limit."},{"condition":"speedLimit < 20","@type":"While","id":"id_894dd97d_abe9_478f_af30_fca198683b1b","body":{"statements":[{"newline":true,"@type":"Output","id":"id_25c00f13_cffe_4181_a5fa_ac7b64c7cc61","value":"\"The speed Limit is invalid\""},{"@type":"Input","name":"speedLimit","id":"id_a6fc8438_c7e7_4389_acc8_9e0c8eb97364","prompt":"Enter the speed limit again."}],"id":"id_9dbe90a8_8832_49fd_b9a9_7261bf12ced5"}},{"condition":"speedLimit > 70","@type":"While","id":"id_a7240975_018f_4cb2_8e8e_550ccd8fa158","body":{"statements":[{"newline":true,"@type":"Output","id":"id_bb9af65d_4a5c_4edd_a251_63399253e073","value":"\"The speed Limit is invalid\""},{"@type":"Input","name":"speedLimit","id":"id_043b8fd3_49ad_46d6_9ed1_c9230574de7f","prompt":"Enter the speed limit again?"}],"id":"id_85a24ca4_4555_47a3_94e5_e3b7a8e71031"}},{"@type":"Declare","tpe":"Integer","name":"driverSpeed","id":"id_19885446_39f2_480f_b82b_7bd9f32528ed","initValue":null},{"@type":"Input","name":"driverSpeed","id":"id_6e8bb575_7ca2_4211_b056_064814a8b3fc","prompt":"Enter the driver speed."},{"condition":"driverSpeed <= speedLimit","@type":"While","id":"id_301fe48c_d0ba_4e4c_a2af_89352cce3e13","body":{"statements":[{"newline":true,"@type":"Output","id":"id_af3d2a30_eda9_4f66_acee_5f421b82e369","value":"\"The driver was not speeding.\""},{"@type":"Input","name":"driverSpeed","id":"id_7d861644_b605_49d3_bb2a_4a5dcd606709","prompt":"Enter the driver speed again."}],"id":"id_1ded9327_d41a_4ff9_a987_717101381032"}},{"@type":"Declare","tpe":"Integer","name":"milesOver","id":"id_f00d2a8f_04f6_496e_9439_9f24c582dab5","initValue":"driverSpeed - speedLimit"},{"newline":false,"@type":"Output","id":"id_dd7d4256_ca3f_409b_bfcd_b0d55911561d","value":"\"The driver was \" + milesOver + \" mile(s) over the speed limit.\""},{"@type":"Return","id":"id_b7f42fad_8cad_4405_adf4_1afcb7bfb3c1","maybeValue":null}],"parameters":[]},"id":"id_cea9eb40_020a_4b5a_9a89_7561fe20ccd1","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":634}