Question
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.
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).
Example Output 1
--------------------------
Welcome to Party Shop!
How many gift bags would you like to purchase: 14
SHOPPING CART
-----------------------------
1-set(s) $17.99
2-individual $3.50
Subtotal: $21.49
Tax: $1.91
Total: $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(s) $0.00
2-individual $19.25
Subtotal: $19.25
Tax: $1.71
Total: $20.96 -
----------------------------------------------------------------------
Thank you shopping Party Shop!
It would be tow output at the same page
thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started