Customers can purchase a 2. Party shop sells birthday gift bags in two ways. set of 12 bags for $17.99 or an individual bag for $1.75. complete program that asks the user input for the number of gift bags need Write a 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!

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Note it C++ coding

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!
Transcribed Image 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!
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education