2. Party shop sells birthday gift bags in two ways. set of 12 bags for $17.99 or an individual bag for $1.75. Customers can purchase a Write a complete program that asks the user input for the number...


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

Extracted text: 2. Party shop sells birthday gift bags in two ways. set of 12 bags for $17.99 or an individual bag for $1.75. Customers can purchase a 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) $17.99 2-individual $3.50 Subtotal: $21.49 Таx: $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 Таx: $1.71 Total: $20.96 Thank you shopping Party Shop!

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here