{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b9525682_f686_4a68_b2e7_c82d4dea3f99"},{"condition":"false","@type":"DoWhile","id":"id_b77b66bb_0a86_4846_9d15_ff2f7ccd7cf8","body":{"statements":[{"@type":"Input","name":"Guest name","id":"id_170d4051_e304_44c7_b18a_3c123d5d9f91","prompt":null},{"@type":"Input","name":"Room type","id":"id_3a90734a_6b7a_4f32_84c3_1c69fbf66b28","prompt":null},{"@type":"Input","name":"Availability status","id":"id_8a938d61_df3a_42aa_9ccf_38dbb5bd93da","prompt":null}],"id":"id_9f64b0e1_2b31_41bb_99cf_fc2fb238cdd7"}},{"@type":"Input","name":"2. Enter the guest name, room type, availability status, number of nights, and service cost.","id":"id_f5b7fe31_f6cc_467c_b401_f4f781090ebd","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_457bb2f5_4b0e_4bc7_ad8a_71436656b6d9","value":"\"Booking rejected"}],"id":"id_4778e58d_a2ea_426b_8f4f_03c9e9233785"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"Rate","id":"id_c8b5f8f5_da0a_410b_ba73_1278a1ca7bfd","value":"350"}],"id":"id_c940a00e_50ec_45b2_83d3_6163380661a7"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rate","id":"id_e5046953_9de5_422c_961d_aee3b1597812","value":"200"}],"id":"id_bed63cca_027c_4de9_ae00_49a46e0a5938"},"condition":"Room type =standard","@type":"If","id":"id_d55ea80f_6fef_4bf2_a006_b996c13d2cd1"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a1180ab2_6be1_4c11_9297_f1e756814c1a","value":"Invalid number of nights"}],"id":"id_5d932fb3_96f4_4398_b4c6_2c503692bf50"},"trueBlock":{"statements":[{"@type":"Assign","name":"room_cost","id":"id_50f48b24_6446_4d41_aa1a_0de1f5c77f59","value":"Rate * number_of_nights"}],"id":"id_f4e7f3a4_4706_4530_8e5d_10a4c045ca36"},"condition":"Number of night >0","@type":"If","id":"id_a6ddd961_5d61_4408_aebe_e99b4f8fdcd1"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c12dc2da_9325_49a1_b1ce_1fb58bbfe162","value":"Invalid service cost"}],"id":"id_40958e8b_9feb_4cad_8004_ba87ee7779d2"},"trueBlock":{"statements":[{"@type":"Assign","name":"total_bill","id":"id_c32aa676_c91e_4222_987c_5e8c38fbd8f2","value":"room_cost + service_cost"}],"id":"id_ed6b0f15_4063_4db8_afe5_429534798b7b"},"condition":"service_cost >= 0","@type":"If","id":"id_c904c0e1_00ad_44aa_ac1a_403539f517c2"},{"@type":"Input","name":"Booking confirmed","id":"id_0d287ac0_876b_4563_b91a_bf14af271a54","prompt":null},{"newline":true,"@type":"Output","id":"id_0b13deb1_b501_456e_8409_ae2fed3553a3","value":"\"Room rate: rate"},{"newline":true,"@type":"Output","id":"id_a3ed3c60_1dea_43de_bbc7_d036ac3b69b6","value":"\"Stay cost: room_cost"},{"newline":true,"@type":"Output","id":"id_4f9b34ae_dc3a_4805_8b94_26868ef9407f","value":"\"Service cost: service_cost"},{"newline":true,"@type":"Output","id":"id_76fb837c_97ac_4451_bbc5_c18a18002664","value":"\" Total bill: total_bill"}],"id":"id_566bdef0_0be7_4d39_81ca_c479c38953d9"},"condition":"Is the room available","@type":"If","id":"id_f468e386_8e7e_4106_ab2b_4de3b34ba788"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0ce78235_e83a_493c_8e22_4f866041f612","value":"Invalid service cost"}],"id":"id_8e4bfe1e_83fc_4a0e_be35_908bf4383209"},"trueBlock":{"statements":[{"@type":"Assign","name":"room_cost","id":"id_6c577cd1_bf37_4a25_ab5c_5ef8b3f36329","value":"Rate * number_of_nights"}],"id":"id_395b4770_0932_4bf7_ae27_9c2ab3240a1c"},"condition":"service_cost >= 0","@type":"If","id":"id_6fa4e71e_647c_46f3_a43c_6739ac2e5510"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4fac3b0d_d2c7_4a7c_8aa9_0483137df733","value":"\"Invalid service cost"}],"id":"id_f77421e6_f4c5_4815_a221_6211e333dfaf"},"trueBlock":{"statements":[{"@type":"Assign","name":"total_bill","id":"id_c1860a9f_c527_4aa7_a767_952a426fee29","value":"room_cost + service_cost"},{"newline":true,"@type":"Output","id":"id_42fba3e7_a0f7_4690_b063_30342732aa07","value":"\"Booking confirmed"},{"newline":true,"@type":"Output","id":"id_551a5f46_a099_48fc_9959_de35e96474a8","value":"\"Room rate:"},{"newline":true,"@type":"Output","id":"id_db9066b7_5703_489f_bd61_54833ed08ed3","value":"\"Room rate:"},{"newline":true,"@type":"Output","id":"id_32489e05_8a2a_4192_84a0_e3b79c21fd42","value":"\"Stay cost: room_cost"},{"newline":true,"@type":"Output","id":"id_ad3eaa7a_225d_4658_b105_e370a2e3e57a","value":"\"Service cost: service_cost"},{"newline":true,"@type":"Output","id":"id_ff5de51a_4ac0_45bf_a65f_decc49d5312c","value":"\"Total bill: total_bill"},{"falseBlock":{"statements":[],"id":"id_bf100ab2_dd93_42af_a6d8_d0cb32cdd00f"},"trueBlock":{"statements":[],"id":"id_9e9b522a_a59e_4106_9690_c4dabcf913ed"},"condition":"Process another guest?","@type":"If","id":"id_9c4b3e3f_fbaa_4c68_8192_84041b395c37"}],"id":"id_28efaa2d_3a0e_4355_a3cb_759165f9bf76"},"condition":"service_cost >= 0","@type":"If","id":"id_58a416fe_ce68_493c_893e_78b7917f6655"},{"@type":"Return","id":"id_f5aec8dd_7f86_460d_a000_d73581308e10","maybeValue":null}],"parameters":[]},"id":"id_a9e2b603_76fe_458b_9be1_926be0567691","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":340}