{"functions":[],"name":"Monitoramento da cesta básica","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5ff1f916_9a17_43de_b8e5_5a7c0be7a856"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"nome1","lengthValue2":"5","id":"cesta_1","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"nome2","lengthValue2":"5","id":"cesta_2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"nome3","lengthValue2":"5","id":"cesta_3","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"situacao1","lengthValue2":"5","id":"cesta_4","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"situacao2","lengthValue2":"5","id":"cesta_5","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"situacao3","lengthValue2":"5","id":"cesta_6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAnterior1","lengthValue2":"5","id":"cesta_7","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAnterior2","lengthValue2":"5","id":"cesta_8","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAnterior3","lengthValue2":"5","id":"cesta_9","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAtual1","lengthValue2":"5","id":"cesta_10","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAtual2","lengthValue2":"5","id":"cesta_11","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precoAtual3","lengthValue2":"5","id":"cesta_12","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"variacao1","lengthValue2":"5","id":"cesta_13","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"variacao2","lengthValue2":"5","id":"cesta_14","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"variacao3","lengthValue2":"5","id":"cesta_15","initValue":null},{"newline":false,"@type":"Output","id":"cesta_16","value":"\"Digite o nome do primeiro produto: \""},{"@type":"Input","name":"nome1","id":"cesta_17","prompt":null},{"newline":false,"@type":"Output","id":"cesta_18","value":"\"Digite o preço do produto no mês anterior, em reais: \""},{"@type":"Input","name":"precoAnterior1","id":"cesta_19","prompt":null},{"newline":false,"@type":"Output","id":"cesta_20","value":"\"Digite o preço do produto no mês atual, em reais: \""},{"@type":"Input","name":"precoAtual1","id":"cesta_21","prompt":null},{"@type":"Assign","name":"variacao1","id":"cesta_22","value":"((precoAtual1 - precoAnterior1) / precoAnterior1) * 100"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"situacao1","id":"cesta_25","value":"\"ESTÁVEL\""}],"id":"cesta_28"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao1","id":"cesta_24","value":"\"QUEDA\""}],"id":"cesta_27"},"condition":"variacao1 < 0","@type":"If","id":"cesta_26"}],"id":"cesta_31"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao1","id":"cesta_23","value":"\"AUMENTO\""}],"id":"cesta_30"},"condition":"variacao1 > 0","@type":"If","id":"cesta_29"},{"newline":false,"@type":"Output","id":"cesta_32","value":"\"Digite o nome do segundo produto: \""},{"@type":"Input","name":"nome2","id":"cesta_33","prompt":null},{"newline":false,"@type":"Output","id":"cesta_34","value":"\"Digite o preço do produto no mês anterior, em reais: \""},{"@type":"Input","name":"precoAnterior2","id":"cesta_35","prompt":null},{"newline":false,"@type":"Output","id":"cesta_36","value":"\"Digite o preço do produto no mês atual, em reais: \""},{"@type":"Input","name":"precoAtual2","id":"cesta_37","prompt":null},{"@type":"Assign","name":"variacao2","id":"cesta_38","value":"((precoAtual2 - precoAnterior2) / precoAnterior2) * 100"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"situacao2","id":"cesta_41","value":"\"ESTÁVEL\""}],"id":"cesta_44"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao2","id":"cesta_40","value":"\"QUEDA\""}],"id":"cesta_43"},"condition":"variacao2 < 0","@type":"If","id":"cesta_42"}],"id":"cesta_47"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao2","id":"cesta_39","value":"\"AUMENTO\""}],"id":"cesta_46"},"condition":"variacao2 > 0","@type":"If","id":"cesta_45"},{"newline":false,"@type":"Output","id":"cesta_48","value":"\"Digite o nome do terceiro produto: \""},{"@type":"Input","name":"nome3","id":"cesta_49","prompt":null},{"newline":false,"@type":"Output","id":"cesta_50","value":"\"Digite o preço do produto no mês anterior, em reais: \""},{"@type":"Input","name":"precoAnterior3","id":"cesta_51","prompt":null},{"newline":false,"@type":"Output","id":"cesta_52","value":"\"Digite o preço do produto no mês atual, em reais: \""},{"@type":"Input","name":"precoAtual3","id":"cesta_53","prompt":null},{"@type":"Assign","name":"variacao3","id":"cesta_54","value":"((precoAtual3 - precoAnterior3) / precoAnterior3) * 100"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"situacao3","id":"cesta_57","value":"\"ESTÁVEL\""}],"id":"cesta_60"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao3","id":"cesta_56","value":"\"QUEDA\""}],"id":"cesta_59"},"condition":"variacao3 < 0","@type":"If","id":"cesta_58"}],"id":"cesta_63"},"trueBlock":{"statements":[{"@type":"Assign","name":"situacao3","id":"cesta_55","value":"\"AUMENTO\""}],"id":"cesta_62"},"condition":"variacao3 > 0","@type":"If","id":"cesta_61"},{"newline":true,"@type":"Output","id":"cesta_64","value":"\"=== MONITORAMENTO DA CESTA BÁSICA ===\""},{"newline":true,"@type":"Output","id":"cesta_65","value":"\"--- PRODUTO 1 ---\""},{"newline":true,"@type":"Output","id":"cesta_66","value":"\"Nome: \" + nome1"},{"newline":true,"@type":"Output","id":"cesta_67","value":"\"Preço anterior: R$ \" + precoAnterior1"},{"newline":true,"@type":"Output","id":"cesta_68","value":"\"Preço atual: R$ \" + precoAtual1"},{"newline":true,"@type":"Output","id":"cesta_69","value":"\"Variação: \" + variacao1 + \"%\""},{"newline":true,"@type":"Output","id":"cesta_70","value":"\"Situação: \" + situacao1"},{"newline":true,"@type":"Output","id":"cesta_71","value":"\"--- PRODUTO 2 ---\""},{"newline":true,"@type":"Output","id":"cesta_72","value":"\"Nome: \" + nome2"},{"newline":true,"@type":"Output","id":"cesta_73","value":"\"Preço anterior: R$ \" + precoAnterior2"},{"newline":true,"@type":"Output","id":"cesta_74","value":"\"Preço atual: R$ \" + precoAtual2"},{"newline":true,"@type":"Output","id":"cesta_75","value":"\"Variação: \" + variacao2 + \"%\""},{"newline":true,"@type":"Output","id":"cesta_76","value":"\"Situação: \" + situacao2"},{"newline":true,"@type":"Output","id":"cesta_77","value":"\"--- PRODUTO 3 ---\""},{"newline":true,"@type":"Output","id":"cesta_78","value":"\"Nome: \" + nome3"},{"newline":true,"@type":"Output","id":"cesta_79","value":"\"Preço anterior: R$ \" + precoAnterior3"},{"newline":true,"@type":"Output","id":"cesta_80","value":"\"Preço atual: R$ \" + precoAtual3"},{"newline":true,"@type":"Output","id":"cesta_81","value":"\"Variação: \" + variacao3 + \"%\""},{"newline":true,"@type":"Output","id":"cesta_82","value":"\"Situação: \" + situacao3"},{"newline":true,"@type":"Output","id":"cesta_83","value":"\"=== FIM DO RELATÓRIO ===\""},{"@type":"Return","id":"id_0ba37e5f_b115_4aed_adcf_f7a68b339c2f","maybeValue":null}],"parameters":[]},"id":"id_ab6d4f35_66eb_4bee_8aab_02fdb5fd6364","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":15}