by @kadir gedi Fork
{"functions":[],"name":"Kadir gedi's Unit02 - Lab","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_bb2f698f_6bae_4a88_a530_e37efc71bc62"},{"@type":"Comment","id":"id_8c3a72bb_814d_4031_bad4_e969d43ca751","text":"Kadir Gedi, 09/19/2026, Calculates the length of a year on a planet in Earth years."},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"planetName","lengthValue2":"5","id":"id_68bafc97_f73f_43f7_9afd_32b943bbadbd","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"distance","lengthValue2":"5","id":"id_a73211b9_f2b4_44e4_b8a3_91e9e09c0ddc","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"pyears","lengthValue2":"5","id":"id_7895b673_f1cf_483d_b9bd_4ecb98c54de3","initValue":null},{"newline":true,"@type":"Output","id":"id_6b007552_63d8_4496_92f1_25e8f2d032b9","value":"\"Enter the name of the planet: \""},{"@type":"Input","name":"planetName","id":"id_61a8806d_cc8a_4838_a521_e6b0db1ca6d9","prompt":null},{"newline":true,"@type":"Output","id":"id_c3b58a2a_94e5_409a_988d_7483e667fa43","value":"\"Enter the distance from the Sun in AU: \""},{"@type":"Input","name":"distance","id":"id_e5fa1243_7176_4be3_b27f_26b255bc95ea","prompt":null},{"@type":"Assign","name":"pyears","id":"id_025ddb08_5a9b_478f_af27_43a4f0092773","value":"sqrt(distance * distance * distance)"},{"newline":true,"@type":"Output","id":"id_74674165_bba0_4bea_a6b3_9947e80e3f96","value":"planetName + \" takes \" + pyears + \"Earth years to orbit the Sun.\""},{"@type":"Return","id":"id_ebc0bd31_920b_48cb_ada6_e1bdf35a9cbd","maybeValue":null}],"parameters":[]},"id":"id_a4b11ec8_1aa1_4e96_b5c6_b16c5f2279d2","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":86}