{"functions":[],"name":"Адміністратор — бронювання місць","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"begin"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"","tpe":"Integer","name":"seats","lengthValue2":"","id":"declare_seats","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"","tpe":"Integer","name":"people","lengthValue2":"","id":"declare_people","initValue":"0"},{"newline":true,"@type":"Output","id":"ask_seats","value":"\"Скільки комп’ютерних місць вільні?\""},{"@type":"Input","name":"seats","id":"input_seats","prompt":null},{"newline":true,"@type":"Output","id":"ask_people","value":"\"Скільки людей хочуть забронювати місця?\""},{"@type":"Input","name":"people","id":"input_people","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"offer_other_time","value":"\"Місць недостатньо. Запропонуйте групі інший час.\""}],"id":"booking_failed"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"confirm","value":"\"Бронювання підтверджено!\""},{"newline":true,"@type":"Output","id":"remaining_label","value":"\"Залишилося вільних місць:\""},{"newline":true,"@type":"Output","id":"remaining_value","value":"seats - people"}],"id":"booking_success"},"condition":"seats >= people","@type":"If","id":"check_capacity"}],"id":"valid_data"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"error_message","value":"\"Помилка: кількість місць не може бути від’ємною, а кількість людей має бути більшою за нуль.\""}],"id":"invalid_data"},"condition":"seats < 0 || people <= 0","@type":"If","id":"validate"},{"@type":"Return","id":"end","maybeValue":null}],"parameters":[]},"id":"id_e55d0922_05b9_4b8e_8442_8124faa62c8c","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":true,"lang":"javascript","showGenCode":true},"version":"0.3","revision":7}