Question: Using two different c++ programming methods and coding explanations 2. Party shop sells birthday gift bags in two ways. Customers can purchase a set of
Using two different c++ programming methods and coding explanations

2. Party shop sells birthday gift bags in two ways. Customers can purchase a set of 12 bags for $17.99 or an individual bag for $1.75. Write a complete program that asks the user input for the number of gift bags need to be purchased (an integer) and outputs the total price of the purchase. a) For example, if the customer buys 14 gift bags, the customer would be charged for 1 set of (12 bags) plus another 2 individual bags. The subtotal would be 1(17.99) + 2(1.75) = $21.49. b) Use a constant variable to set a fixed tax rate of 8.875. c) Display correct dollar values (2 decimal places, use cout precision). User input can be any content and it's bold and italicized for clarity. Example Output 1 Welcome to Party Shop! How many gift bags would you like to purchase: 14 SHOPPING CART 1-set (s) 2-individual $17.99 $3.50 Subtotal: Tax: Total: $21.49 $1.91 $23.40 Thank you shopping Party Shop! Example Output 2 Welcome to Party Shop! How many gift bags would you like to purchase: 11 SHOPPING CART 0-set (5) 2-individual $0.00 $19.25 Subtotal: Tax: Total: $19.25 $1.71 $20.96 Thank you shopping Party Shop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
