The Price of Shopping0 id_b8b772b2_0a46_42f0_a5ba_19184cc67437 Begin id_b2303274_c3b8_43d8_96aa_c4204f012209 Here are all the items being declared and input being received id_b8b772b2_0a46_42f0_a5ba_19184cc67437:s->id_b2303274_c3b8_43d8_96aa_c4204f012209:n id_9496d5df_3b88_4637_8be0_3d08b77d8f86 item1 id_b2303274_c3b8_43d8_96aa_c4204f012209:s->id_9496d5df_3b88_4637_8be0_3d08b77d8f86:n id_3e93791f_06f1_4b36_b71f_3fa103cf5dc4 item1 id_9496d5df_3b88_4637_8be0_3d08b77d8f86:s->id_3e93791f_06f1_4b36_b71f_3fa103cf5dc4:n id_65ab1e9e_3dab_4e90_8551_1916b6444418 item2 id_3e93791f_06f1_4b36_b71f_3fa103cf5dc4:s->id_65ab1e9e_3dab_4e90_8551_1916b6444418:n id_d260b442_c86d_442b_97bb_f743ec987fd0 item2 id_65ab1e9e_3dab_4e90_8551_1916b6444418:s->id_d260b442_c86d_442b_97bb_f743ec987fd0:n id_304e0681_3279_44d1_aef3_6d48d472ad37 item3 id_d260b442_c86d_442b_97bb_f743ec987fd0:s->id_304e0681_3279_44d1_aef3_6d48d472ad37:n id_8bc950c6_9af7_4365_8bfe_20b0a2a2f06d item3 id_304e0681_3279_44d1_aef3_6d48d472ad37:s->id_8bc950c6_9af7_4365_8bfe_20b0a2a2f06d:n id_4f0ef478_2622_43b6_9443_1001c00827b5 item4 id_8bc950c6_9af7_4365_8bfe_20b0a2a2f06d:s->id_4f0ef478_2622_43b6_9443_1001c00827b5:n id_bd1dbdb0_618f_4c5c_85f6_7d11cb483011 item4 id_4f0ef478_2622_43b6_9443_1001c00827b5:s->id_bd1dbdb0_618f_4c5c_85f6_7d11cb483011:n id_ebe0db01_c70e_4e6c_bed8_1f2e02d5d26e item5 id_bd1dbdb0_618f_4c5c_85f6_7d11cb483011:s->id_ebe0db01_c70e_4e6c_bed8_1f2e02d5d26e:n id_2bae881e_5777_4a72_9a12_ef5a8da336c9 item5 id_ebe0db01_c70e_4e6c_bed8_1f2e02d5d26e:s->id_2bae881e_5777_4a72_9a12_ef5a8da336c9:n id_06482e67_ae99_4437_9b04_9f93d55a1a50 Here the subtotal is being calculated by adding each item id_2bae881e_5777_4a72_9a12_ef5a8da336c9:s->id_06482e67_ae99_4437_9b04_9f93d55a1a50:n id_d8641da3_3e5f_46ae_acf6_22aeb8456bec subtotal = item1 + item2 + item3 + item4 + item5 id_06482e67_ae99_4437_9b04_9f93d55a1a50:s->id_d8641da3_3e5f_46ae_acf6_22aeb8456bec:n id_b649a79f_c452_408d_b01d_aaca26e64202 Here the sales tax is being calculated by multiply the subtotal by 7% id_d8641da3_3e5f_46ae_acf6_22aeb8456bec:s->id_b649a79f_c452_408d_b01d_aaca26e64202:n id_c8bf0552_5285_4bb5_af73_3070659b0138 salestax = 0.07 * subtotal id_b649a79f_c452_408d_b01d_aaca26e64202:s->id_c8bf0552_5285_4bb5_af73_3070659b0138:n id_6e4c13ab_cde4_4c7c_b51a_3039ec970ffd Here the total is being calculated by adding the sales tax and subtotal together id_c8bf0552_5285_4bb5_af73_3070659b0138:s->id_6e4c13ab_cde4_4c7c_b51a_3039ec970ffd:n id_306fba21_ce6c_4453_8769_ed4682d3d12f total = salestax + subtotal id_6e4c13ab_cde4_4c7c_b51a_3039ec970ffd:s->id_306fba21_ce6c_4453_8769_ed4682d3d12f:n id_fc7cc30e_8397_49ba_baab_d2a9b14b19a8 Here we are outputting the subtotal, sales tax, and total. id_306fba21_ce6c_4453_8769_ed4682d3d12f:s->id_fc7cc30e_8397_49ba_baab_d2a9b14b19a8:n id_377a44a3_3b2f_43ca_985c_fe7db2bd99a1 "The subtotal is $" id_fc7cc30e_8397_49ba_baab_d2a9b14b19a8:s->id_377a44a3_3b2f_43ca_985c_fe7db2bd99a1:n id_14bf67b7_ff88_458b_80ed_e0555377b60f subtotal id_377a44a3_3b2f_43ca_985c_fe7db2bd99a1:s->id_14bf67b7_ff88_458b_80ed_e0555377b60f:n id_52772233_a361_4c75_9171_9aebb4328ace "The sales tax is $" id_14bf67b7_ff88_458b_80ed_e0555377b60f:s->id_52772233_a361_4c75_9171_9aebb4328ace:n id_7421fe45_9d64_4f11_b147_af578d5645c3 salestax id_52772233_a361_4c75_9171_9aebb4328ace:s->id_7421fe45_9d64_4f11_b147_af578d5645c3:n id_906a7779_b413_4bdb_9b9a_0c58f8f7046e "Your total is $" id_7421fe45_9d64_4f11_b147_af578d5645c3:s->id_906a7779_b413_4bdb_9b9a_0c58f8f7046e:n id_02014dac_846b_4cfa_b582_a0ce23538fa1 total id_906a7779_b413_4bdb_9b9a_0c58f8f7046e:s->id_02014dac_846b_4cfa_b582_a0ce23538fa1:n id_8881c47d_c141_49e2_8835_2ea5948d99e8 End id_02014dac_846b_4cfa_b582_a0ce23538fa1:s->id_8881c47d_c141_49e2_8835_2ea5948d99e8:n
New Program0 id_12813f3d_c69f_4237_869f_81e95728c1df Begin id_70886a32_e538_4bf3_ab30_67778f723626 item1 id_12813f3d_c69f_4237_869f_81e95728c1df:s->id_70886a32_e538_4bf3_ab30_67778f723626:n id_a4260668_96a0_416d_a2a7_d6e1ad8c57fe item2 id_70886a32_e538_4bf3_ab30_67778f723626:s->id_a4260668_96a0_416d_a2a7_d6e1ad8c57fe:n id_2f59c5de_5f40_4698_a23a_0f9e1979f1d6 item3 id_a4260668_96a0_416d_a2a7_d6e1ad8c57fe:s->id_2f59c5de_5f40_4698_a23a_0f9e1979f1d6:n id_b8250e62_6f4a_48eb_996b_2517f0d5adad item4 id_2f59c5de_5f40_4698_a23a_0f9e1979f1d6:s->id_b8250e62_6f4a_48eb_996b_2517f0d5adad:n id_639a7876_cfd9_45f0_919e_d7b177aad808 item5 id_b8250e62_6f4a_48eb_996b_2517f0d5adad:s->id_639a7876_cfd9_45f0_919e_d7b177aad808:n id_1bfe2141_94d6_4138_9eca_77e2fefd7744 subtotal = item1 * item2 * item3 * item4 * item5 id_639a7876_cfd9_45f0_919e_d7b177aad808:s->id_1bfe2141_94d6_4138_9eca_77e2fefd7744:n id_4af521e0_b9b0_4d4d_afb4_242b7ba04aa1 salestax = 0.07 * subtotal id_1bfe2141_94d6_4138_9eca_77e2fefd7744:s->id_4af521e0_b9b0_4d4d_afb4_242b7ba04aa1:n id_c6ea34c9_3577_4c2c_b9bd_9fa61e00abb7 total = salestax + subtotal id_4af521e0_b9b0_4d4d_afb4_242b7ba04aa1:s->id_c6ea34c9_3577_4c2c_b9bd_9fa61e00abb7:n id_3a49e523_22f2_4a20_9a08_8a310ac51677 "The subtotal is: " id_c6ea34c9_3577_4c2c_b9bd_9fa61e00abb7:s->id_3a49e523_22f2_4a20_9a08_8a310ac51677:n id_c833b802_dcb1_436f_b66b_d255b1e73024 subtotal id_3a49e523_22f2_4a20_9a08_8a310ac51677:s->id_c833b802_dcb1_436f_b66b_d255b1e73024:n id_1f0d1d26_4a51_4777_996a_1384d4f75d48 "The sales tax is: " id_c833b802_dcb1_436f_b66b_d255b1e73024:s->id_1f0d1d26_4a51_4777_996a_1384d4f75d48:n id_49541db4_268d_4c84_bdff_745a5e086b8c sales tax id_1f0d1d26_4a51_4777_996a_1384d4f75d48:s->id_49541db4_268d_4c84_bdff_745a5e086b8c:n id_9dde959c_18a7_4cd3_b796_f40a0cb294c7 "The total is: " id_49541db4_268d_4c84_bdff_745a5e086b8c:s->id_9dde959c_18a7_4cd3_b796_f40a0cb294c7:n id_08084f7e_90a2_441a_bbb6_a56293dad12e total id_9dde959c_18a7_4cd3_b796_f40a0cb294c7:s->id_08084f7e_90a2_441a_bbb6_a56293dad12e:n id_21a86a26_585b_4ec8_b9b7_11f65876f692 End id_08084f7e_90a2_441a_bbb6_a56293dad12e:s->id_21a86a26_585b_4ec8_b9b7_11f65876f692:n
New Program0 id_4636e88a_a1d2_4197_99d3_b4bcaabfbfa3 Begin id_0296936d_1e05_4fb9_8d22_4ac7d39af1d8 hourlyPayRate id_4636e88a_a1d2_4197_99d3_b4bcaabfbfa3:s->id_0296936d_1e05_4fb9_8d22_4ac7d39af1d8:n id_aa6eb723_0516_4aa3_b369_99532b857a9c hoursWorked id_0296936d_1e05_4fb9_8d22_4ac7d39af1d8:s->id_aa6eb723_0516_4aa3_b369_99532b857a9c:n id_fd78e861_038a_496b_af81_e65b5663c2b8 "Enter hourly pay rate." id_aa6eb723_0516_4aa3_b369_99532b857a9c:s->id_fd78e861_038a_496b_af81_e65b5663c2b8:n id_456dc8c4_d8e8_444c_8367_90002fbde7ca hourlyPayRate id_fd78e861_038a_496b_af81_e65b5663c2b8:s->id_456dc8c4_d8e8_444c_8367_90002fbde7ca:n id_8c9ddc7f_910c_486b_99b2_3c0376ab7313 "Enter hours worked." id_456dc8c4_d8e8_444c_8367_90002fbde7ca:s->id_8c9ddc7f_910c_486b_99b2_3c0376ab7313:n id_7c190704_f745_413c_8fd3_322ffa5a2246 hoursWorked id_8c9ddc7f_910c_486b_99b2_3c0376ab7313:s->id_7c190704_f745_413c_8fd3_322ffa5a2246:n id_4f80c3b0_1098_4847_a3e3_1b8d5c09ef06 grossPay = hoursWorked * hourlyPayRate id_7c190704_f745_413c_8fd3_322ffa5a2246:s->id_4f80c3b0_1098_4847_a3e3_1b8d5c09ef06:n id_3316a282_cd04_4b9d_9c28_c30d25d58e37 "You made " id_4f80c3b0_1098_4847_a3e3_1b8d5c09ef06:s->id_3316a282_cd04_4b9d_9c28_c30d25d58e37:n id_2e298732_915e_48f3_a622_6b77af647bd1 grossPay id_3316a282_cd04_4b9d_9c28_c30d25d58e37:s->id_2e298732_915e_48f3_a622_6b77af647bd1:n id_893f5691_130e_4ce1_8bf3_8c8aae18939b " dollars this week!" id_2e298732_915e_48f3_a622_6b77af647bd1:s->id_893f5691_130e_4ce1_8bf3_8c8aae18939b:n id_b97055fb_29d5_440c_b44f_f00c27afda3c End id_893f5691_130e_4ce1_8bf3_8c8aae18939b:s->id_b97055fb_29d5_440c_b44f_f00c27afda3c:n