by @JULIANNA GÜEVOS Fork
{"functions":[],"name":"Cashier Machine","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3f399bb8_5e68_43b0_a919_8f3c967c2307"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"ProductPrice","lengthValue2":"5","id":"id_0bbefc85_85a6_46ea_bd7c_7dbc4fafd7fd","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Quantity","lengthValue2":"5","id":"id_eb2c12b6_d2ed_41fe_ba3e_70975369fb50","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"DiscountPercentaje","lengthValue2":"5","id":"id_99998d73_3dac_414e_a2e3_0b485108796b","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"Tax","lengthValue2":"5","id":"id_a9fd4afd_81ef_4d28_baa5_d7cb49d43060","initValue":"0.08"},{"@type":"Input","name":"ProductPrice","id":"id_139c44d2_48fb_4798_a3bf_9d72bb1bce22","prompt":"What’s the price?"},{"@type":"Input","name":"Quantity","id":"id_0a26797d_31e1_450c_a4a5_10cf72411cee","prompt":"How many?"},{"@type":"Input","name":"DiscountPercentaje","id":"id_15bd3564_5170_4509_a792_3711d11fcfa0","prompt":"How much discount?"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Subtotal","lengthValue2":"5","id":"id_593ea4da_7fe0_4908_905a_556671694f2a","initValue":"Quantity*ProductPrice"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"RealDiscount","lengthValue2":"5","id":"id_1dfd6e6b_8a6a_469f_b45a_d09f86bc4a55","initValue":"DiscountPercentaje/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"SubtotalAfterDiscount","lengthValue2":"5","id":"id_3ef04411_6491_41c4_8625_bed7a7d59c1e","initValue":"Subtotal-RealDiscount"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"Total","lengthValue2":"5","id":"id_9e23c371_0509_410a_8a55_f4d571a9c531","initValue":"SubtotalAfterDiscount+Tax"},{"newline":true,"@type":"Output","id":"id_dfcef678_1641_4186_8c03_be8c648216cc","value":"\"You total are \" + Total + \" dollars.\""},{"@type":"Return","id":"id_42830ecb_0224_4da0_a1e2_d0b0efad0ac3","maybeValue":null}],"parameters":[]},"id":"id_067e0e4c_3b84_417f_9e1a_c91cc6699258","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"c#","showGenCode":true},"version":"0.3","revision":497}