Exercicio soma e média
id_dea44fff_881f_4b36_ba73_4a39a2035354 Begin id_2d1af17e_347b_437c_9732_5df50b7035e4 media id_dea44fff_881f_4b36_ba73_4a39a2035354:s->id_2d1af17e_347b_437c_9732_5df50b7035e4:n id_844f75f0_5c2e_4236_8c43_51d446492c9e soma id_2d1af17e_347b_437c_9732_5df50b7035e4:s->id_844f75f0_5c2e_4236_8c43_51d446492c9e:n id_06b84172_ae4a_4947_bb7d_82dcb4b3d7b9 nota1 id_844f75f0_5c2e_4236_8c43_51d446492c9e:s->id_06b84172_ae4a_4947_bb7d_82dcb4b3d7b9:n id_f928370b_06fe_4afc_bfed_fe723fe78fe6 nota2 id_06b84172_ae4a_4947_bb7d_82dcb4b3d7b9:s->id_f928370b_06fe_4afc_bfed_fe723fe78fe6:n id_b4c91f72_62f1_4ad1_9f88_b0cb58e80fba nota1 id_f928370b_06fe_4afc_bfed_fe723fe78fe6:s->id_b4c91f72_62f1_4ad1_9f88_b0cb58e80fba:n id_047d483e_e677_46e3_82c1_d8ba96dd4770 nota2 id_b4c91f72_62f1_4ad1_9f88_b0cb58e80fba:s->id_047d483e_e677_46e3_82c1_d8ba96dd4770:n id_30539ad7_648c_4f49_9483_d5c6d06617c3 soma = nota1+nota2 id_047d483e_e677_46e3_82c1_d8ba96dd4770:s->id_30539ad7_648c_4f49_9483_d5c6d06617c3:n id_300e7644_edfe_408b_9339_ac3d7425247c media = soma/2 id_30539ad7_648c_4f49_9483_d5c6d06617c3:s->id_300e7644_edfe_408b_9339_ac3d7425247c:n id_ca364c72_6390_4bc2_bb84_4d56f7333917 media id_300e7644_edfe_408b_9339_ac3d7425247c:s->id_ca364c72_6390_4bc2_bb84_4d56f7333917:n id_aec39bef_52aa_47ca_b08f_f509dabbf688 soma id_ca364c72_6390_4bc2_bb84_4d56f7333917:s->id_aec39bef_52aa_47ca_b08f_f509dabbf688:n id_8eb495e5_81a9_4e6c_b5f0_ebf268777553 End id_aec39bef_52aa_47ca_b08f_f509dabbf688:s->id_8eb495e5_81a9_4e6c_b5f0_ebf268777553:n
Exercicio tomada de decisoes 2
id_cab5a459_32d3_4ca2_a2e8_cb89d6da56c1 Begin id_0a03ee91_05ee_44a3_9680_6240b2d5ef8d janeiro id_cab5a459_32d3_4ca2_a2e8_cb89d6da56c1:s->id_0a03ee91_05ee_44a3_9680_6240b2d5ef8d:n id_6c4bc5b4_c5a1_4b57_87ed_f537d11d5365 fevereiro id_0a03ee91_05ee_44a3_9680_6240b2d5ef8d:s->id_6c4bc5b4_c5a1_4b57_87ed_f537d11d5365:n id_a587ac6c_afff_4bea_8714_197a127c5a36 marco id_6c4bc5b4_c5a1_4b57_87ed_f537d11d5365:s->id_a587ac6c_afff_4bea_8714_197a127c5a36:n id_208a3717_7f74_4a01_8cea_dc414234c87b abril id_a587ac6c_afff_4bea_8714_197a127c5a36:s->id_208a3717_7f74_4a01_8cea_dc414234c87b:n id_523c45c3_a6b9_45b9_bcc1_9f951a3b1a74 media id_208a3717_7f74_4a01_8cea_dc414234c87b:s->id_523c45c3_a6b9_45b9_bcc1_9f951a3b1a74:n id_24de8edc_10f3_4f29_bf47_0e97b8efdbd8 janeiro id_523c45c3_a6b9_45b9_bcc1_9f951a3b1a74:s->id_24de8edc_10f3_4f29_bf47_0e97b8efdbd8:n id_9b5a4fc8_24d2_482c_a0db_ca19475bea92 fevereiro id_24de8edc_10f3_4f29_bf47_0e97b8efdbd8:s->id_9b5a4fc8_24d2_482c_a0db_ca19475bea92:n id_276ca53a_1d2d_43a6_bf48_fdfd9cc00641 marco id_9b5a4fc8_24d2_482c_a0db_ca19475bea92:s->id_276ca53a_1d2d_43a6_bf48_fdfd9cc00641:n id_8e184881_684c_45d7_8117_4856831a95c4 abril id_276ca53a_1d2d_43a6_bf48_fdfd9cc00641:s->id_8e184881_684c_45d7_8117_4856831a95c4:n id_e9a9ab20_6e01_4754_94f1_90526596949b media = (janeiro+fevereiro+marco+abril)/4 id_8e184881_684c_45d7_8117_4856831a95c4:s->id_e9a9ab20_6e01_4754_94f1_90526596949b:n id_72ee11db_43eb_4d93_b3a3_50b02975cd52 media id_e9a9ab20_6e01_4754_94f1_90526596949b:s->id_72ee11db_43eb_4d93_b3a3_50b02975cd52:n id_25c28616_fc3e_4751_ad1b_134cb8993b27 media>=5000 id_72ee11db_43eb_4d93_b3a3_50b02975cd52:s->id_25c28616_fc3e_4751_ad1b_134cb8993b27:n true_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27 id_25c28616_fc3e_4751_ad1b_134cb8993b27:e->true_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27 true false_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27 id_25c28616_fc3e_4751_ad1b_134cb8993b27:w->false_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27 false id_58dffe3b_f86f_43bd_b336_1ccc49cb4eb4 "Você vai receber um abono de 10%" true_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27->id_58dffe3b_f86f_43bd_b336_1ccc49cb4eb4:n id_1bfdeca8_98cd_4773_9743_eb54491e05d3 "Você vai receber um abono de 3%" false_dummy_up_id_25c28616_fc3e_4751_ad1b_134cb8993b27->id_1bfdeca8_98cd_4773_9743_eb54491e05d3:n true_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27 id_58dffe3b_f86f_43bd_b336_1ccc49cb4eb4:s->true_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27:n false_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27 id_1bfdeca8_98cd_4773_9743_eb54491e05d3:s->false_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27:n end_id_25c28616_fc3e_4751_ad1b_134cb8993b27 true_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27->end_id_25c28616_fc3e_4751_ad1b_134cb8993b27 false_dummy_down_id_25c28616_fc3e_4751_ad1b_134cb8993b27->end_id_25c28616_fc3e_4751_ad1b_134cb8993b27 id_b3a62388_f51c_4a01_8297_96a82636932b End end_id_25c28616_fc3e_4751_ad1b_134cb8993b27:s->id_b3a62388_f51c_4a01_8297_96a82636932b:n
New Program
id_5f03a1a9_6d28_47eb_92d7_6c9480523284 Begin id_23597772_04ba_4005_b53b_b206f757d84c profit id_5f03a1a9_6d28_47eb_92d7_6c9480523284:s->id_23597772_04ba_4005_b53b_b206f757d84c:n id_f1244ca8_5396_497b_8f94_a9e42e8fdb08 retailPrice id_23597772_04ba_4005_b53b_b206f757d84c:s->id_f1244ca8_5396_497b_8f94_a9e42e8fdb08:n id_aed29fda_6dc4_460a_818c_b4887dd6364b wholesalePrice id_f1244ca8_5396_497b_8f94_a9e42e8fdb08:s->id_aed29fda_6dc4_460a_818c_b4887dd6364b:n id_3aadb83c_80ca_48dd_8eab_98d8758501a0 salePrice id_aed29fda_6dc4_460a_818c_b4887dd6364b:s->id_3aadb83c_80ca_48dd_8eab_98d8758501a0:n id_16f8accf_ec05_4096_87a5_5302c1e920fd saleProfit id_3aadb83c_80ca_48dd_8eab_98d8758501a0:s->id_16f8accf_ec05_4096_87a5_5302c1e920fd:n id_fbadcce4_ee03_430d_9ac8_670c6a836ae5 "Retail Price: $" id_16f8accf_ec05_4096_87a5_5302c1e920fd:s->id_fbadcce4_ee03_430d_9ac8_670c6a836ae5:n id_c6852ce5_a9de_4f82_94b5_7a9cd3211a12 retailPrice id_fbadcce4_ee03_430d_9ac8_670c6a836ae5:s->id_c6852ce5_a9de_4f82_94b5_7a9cd3211a12:n id_dbd53792_08a6_4e01_9020_8b9ef5d531d8 "Wholesale Price: $" id_c6852ce5_a9de_4f82_94b5_7a9cd3211a12:s->id_dbd53792_08a6_4e01_9020_8b9ef5d531d8:n id_ba1665eb_0ba3_4015_a713_94bde2016f26 wholesalePrice id_dbd53792_08a6_4e01_9020_8b9ef5d531d8:s->id_ba1665eb_0ba3_4015_a713_94bde2016f26:n id_871eb706_0928_42dd_a855_d56de958d745 profit = retailPrice - wholesalePrice id_ba1665eb_0ba3_4015_a713_94bde2016f26:s->id_871eb706_0928_42dd_a855_d56de958d745:n id_920c80bf_4e35_4ed2_bb12_ea63bfc98d5f salePrice = (1/4 * retailPrice) - retailPrice id_871eb706_0928_42dd_a855_d56de958d745:s->id_920c80bf_4e35_4ed2_bb12_ea63bfc98d5f:n id_fa32bfad_a3ad_4fcb_963d_568147462814 saleProfit = salePrice - wholesalePrice id_920c80bf_4e35_4ed2_bb12_ea63bfc98d5f:s->id_fa32bfad_a3ad_4fcb_963d_568147462814:n id_d9ea0930_fae2_4680_b78d_090a115db0f6 "Profit: $" && profit id_fa32bfad_a3ad_4fcb_963d_568147462814:s->id_d9ea0930_fae2_4680_b78d_090a115db0f6:n id_9c752e7e_3d2d_41ae_a0df_cb6450888b7e "Sale Price: $" &&salePrice id_d9ea0930_fae2_4680_b78d_090a115db0f6:s->id_9c752e7e_3d2d_41ae_a0df_cb6450888b7e:n id_61c59303_c2d4_4df5_a72d_d17b9a4c73ce "Sale Profit: $" &&saleProfit id_9c752e7e_3d2d_41ae_a0df_cb6450888b7e:s->id_61c59303_c2d4_4df5_a72d_d17b9a4c73ce:n id_f9f7f7d4_e098_4bdd_a127_8d076aa393b0 End id_61c59303_c2d4_4df5_a72d_d17b9a4c73ce:s->id_f9f7f7d4_e098_4bdd_a127_8d076aa393b0:n
Exercicio tomada de decisao
id_8fe752cd_6cbb_4dd1_b9a4_9df1377a36d6 Begin id_730c0109_c364_4d21_beab_64e71a0847a3 nota1 id_8fe752cd_6cbb_4dd1_b9a4_9df1377a36d6:s->id_730c0109_c364_4d21_beab_64e71a0847a3:n id_78cb1a79_e34a_496b_bc06_2cc0a207d883 nota2 id_730c0109_c364_4d21_beab_64e71a0847a3:s->id_78cb1a79_e34a_496b_bc06_2cc0a207d883:n id_6dae8730_9b50_4e5f_a04a_3de66a073136 nota3 id_78cb1a79_e34a_496b_bc06_2cc0a207d883:s->id_6dae8730_9b50_4e5f_a04a_3de66a073136:n id_894424ad_3ed6_4241_9a1b_e3b4dcef49d6 nota4 id_6dae8730_9b50_4e5f_a04a_3de66a073136:s->id_894424ad_3ed6_4241_9a1b_e3b4dcef49d6:n id_9d29d734_8a65_4b3e_984d_ef52392c2da9 media id_894424ad_3ed6_4241_9a1b_e3b4dcef49d6:s->id_9d29d734_8a65_4b3e_984d_ef52392c2da9:n id_ba6487f6_b344_4cbf_9dfd_5c7e932a3a93 nota1 id_9d29d734_8a65_4b3e_984d_ef52392c2da9:s->id_ba6487f6_b344_4cbf_9dfd_5c7e932a3a93:n id_dea6616f_acc9_4601_883b_fe8e4e2363cb nota2 id_ba6487f6_b344_4cbf_9dfd_5c7e932a3a93:s->id_dea6616f_acc9_4601_883b_fe8e4e2363cb:n id_6391ee0f_4caf_45e5_9d4a_79b570716bd1 nota3 id_dea6616f_acc9_4601_883b_fe8e4e2363cb:s->id_6391ee0f_4caf_45e5_9d4a_79b570716bd1:n id_cabdfd1c_6289_4804_86a2_0c852275499f nota4 id_6391ee0f_4caf_45e5_9d4a_79b570716bd1:s->id_cabdfd1c_6289_4804_86a2_0c852275499f:n id_0f1871d6_5227_4f06_8c12_edb48b732d1e media = (nota1+nota2+nota3+nota4)/4 id_cabdfd1c_6289_4804_86a2_0c852275499f:s->id_0f1871d6_5227_4f06_8c12_edb48b732d1e:n id_0d8460db_7d7c_4034_bf44_4222d1c5d6db media id_0f1871d6_5227_4f06_8c12_edb48b732d1e:s->id_0d8460db_7d7c_4034_bf44_4222d1c5d6db:n id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a media>=7 id_0d8460db_7d7c_4034_bf44_4222d1c5d6db:s->id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:n true_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:e->true_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a true false_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:w->false_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a false id_1baf2bbf_e78f_487d_aaf7_6c30f2c7f7be "Você foi aprovado." true_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a->id_1baf2bbf_e78f_487d_aaf7_6c30f2c7f7be:n id_c738d787_496d_40fe_9ed1_b4ecd356e225 "Você foi reprovado." false_dummy_up_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a->id_c738d787_496d_40fe_9ed1_b4ecd356e225:n true_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a id_1baf2bbf_e78f_487d_aaf7_6c30f2c7f7be:s->true_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:n false_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a id_c738d787_496d_40fe_9ed1_b4ecd356e225:s->false_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:n end_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a true_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a->end_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a false_dummy_down_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a->end_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a id_65504045_c689_4312_90f3_804e37e7a974 End end_id_ecf62b31_1628_4191_9cfc_ccd7fdd7876a:s->id_65504045_c689_4312_90f3_804e37e7a974:n
Venda cartão
id_5d42d640_6925_4f30_bad7_2a773595594b Begin id_39807497_d2ea_4d00_8c74_c2ae1c55864d cliente id_5d42d640_6925_4f30_bad7_2a773595594b:s->id_39807497_d2ea_4d00_8c74_c2ae1c55864d:n id_e2fa967f_3933_4f11_bc94_73c5e250a31a cartao id_39807497_d2ea_4d00_8c74_c2ae1c55864d:s->id_e2fa967f_3933_4f11_bc94_73c5e250a31a:n id_4505c77e_6b82_43d4_aeb1_ea7c7640291d numero id_e2fa967f_3933_4f11_bc94_73c5e250a31a:s->id_4505c77e_6b82_43d4_aeb1_ea7c7640291d:n id_2919b086_5ee3_4b8e_8d3e_7299edfcc81a cliente id_4505c77e_6b82_43d4_aeb1_ea7c7640291d:s->id_2919b086_5ee3_4b8e_8d3e_7299edfcc81a:n id_2ad3ba0a_8f4a_4333_b659_db9747e581ce cartao id_2919b086_5ee3_4b8e_8d3e_7299edfcc81a:s->id_2ad3ba0a_8f4a_4333_b659_db9747e581ce:n id_ad023caf_6114_4908_80d0_7a74081ae931 cartao id_2ad3ba0a_8f4a_4333_b659_db9747e581ce:s->id_ad023caf_6114_4908_80d0_7a74081ae931:n true_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931 id_ad023caf_6114_4908_80d0_7a74081ae931:e->true_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931 true false_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931 id_ad023caf_6114_4908_80d0_7a74081ae931:w->false_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931 false id_25639f21_3586_4272_b64a_717239218c9f numero true_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931->id_25639f21_3586_4272_b64a_717239218c9f:n id_a7258ea6_e7c0_42a9_bc42_c86f820c4941 "Infelizmente a loja só aceita cartão" false_dummy_up_id_ad023caf_6114_4908_80d0_7a74081ae931->id_a7258ea6_e7c0_42a9_bc42_c86f820c4941:n true_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931 id_25639f21_3586_4272_b64a_717239218c9f:s->true_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931:n false_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931 id_a7258ea6_e7c0_42a9_bc42_c86f820c4941:s->false_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931:n end_id_ad023caf_6114_4908_80d0_7a74081ae931 true_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931->end_id_ad023caf_6114_4908_80d0_7a74081ae931 false_dummy_down_id_ad023caf_6114_4908_80d0_7a74081ae931->end_id_ad023caf_6114_4908_80d0_7a74081ae931 id_4a6d2add_8bee_47a7_8a51_c289da38e1e8 End end_id_ad023caf_6114_4908_80d0_7a74081ae931:s->id_4a6d2add_8bee_47a7_8a51_c289da38e1e8:n
New Progr
id_45804415_49d0_46b1_9ba7_97cdaa077c34 Begin id_e70b8f91_2fb1_405e_8450_5b809cc65b71 x id_45804415_49d0_46b1_9ba7_97cdaa077c34:s->id_e70b8f91_2fb1_405e_8450_5b809cc65b71:n id_c503c26e_bc11_4457_8402_2dba8d54fe17 x id_e70b8f91_2fb1_405e_8450_5b809cc65b71:s->id_c503c26e_bc11_4457_8402_2dba8d54fe17:n id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f x>10 id_c503c26e_bc11_4457_8402_2dba8d54fe17:s->id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:n true_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:e->true_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f true false_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:w->false_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f false id_c495b3f5_bfe8_4056_83b0_fc23dcb9e557 x true_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f->id_c495b3f5_bfe8_4056_83b0_fc23dcb9e557:n false_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f false_dummy_up_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f->false_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:n true_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f id_c495b3f5_bfe8_4056_83b0_fc23dcb9e557:s->true_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:n end_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f true_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f->end_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f false_dummy_down_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f->end_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f id_3a221b56_dea7_4346_bb79_3d7a02e4f01f End end_id_9ca6039f_9e78_4214_ae1f_3dfac0008b3f:s->id_3a221b56_dea7_4346_bb79_3d7a02e4f01f:n
CodeExploreLearnLog In