Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please help thank you so much the results Prog ram Overview: This program will calculate and output ordering products from a vendor. This will

C++ please help thank you so much
image text in transcribed
image text in transcribed
the results Prog ram Overview: This program will calculate and output ordering products from a vendor. This will include calculating the price for each item ordered, adding sales tax, and outputting the results in a nicely formatted table. Relevant Details and Formulas: Fireworks for sale: $12.99 Red Dragons Blue Chrysanthemums $14.99 Vermilion Lotuses $19.49 el14414, Yo Sparkler Boxes $4.25S s S 21 25 $11144 Sales Tax: 8.1% applied to all purchases Subtotal = $12.99 x Red Dragons ordered + $14.99 x Blue Chrysanthemums Ordered + $19.49 x Vermilion Lotuses Ordered + $4.25 x Sparkler Boxes Ordered Total = Subtotal + Subt tal x Sales Tax Program Specification: .Declare constant values for the sales tax and price of each firework. Ask the user for how many fireworks of each type to order .Calculate the subtotal and store it in a variable. Calculate the amount added by the sales tax and store it in a variable Calculate the total amount due. . The output for this program will be very specific: o The values must be presented in a table with borders around the table, between each column, and separating the two halves. o Each column of the top half must be clearly labeled. o The table will be divided into two halves: . The first half shows each firework, how much one unit of that firework costs, how many were ordered, and the cost for that firework. . The name column must be left justified. .Th e other three columns must be right justified. The table will be exactly 80 characters wide Not including the borders, the four columns must be roughly 30, 15, 15, and 20 characters wide. Remember to subtract the space of the border characters from each setw(). - The second half will show the subtotal, sales tax added, and the total cost of the order. . Each value in this half will be right justified. The subtotal, tax, and total labels will be 60 wide. . The sales tax label must show the sales tax as a clearly labeled. point precision. percentage. o The top half is divided into 4 columns and each must be o All dollar amounts must have exactly 2 digits of floating All percentages displayed must have exactly one digit of precision. Things to note and helpful hints Remember to #include in addition to . It includes a few necessary stream manipulation functions you will need. Example Output: Bill and Mary's Questionable Fireworks Emporium Order System How many Red Dragons would you like to order? 1000 How many Blue Chrysanthemums would you like to order? 985 How many Vermilion Lotuses would you like to order? 4 0 How many Sparkler Boxes would you like to order? 15000 H wide l a nide tem Name Unit Cost Ordered Amount +Red Dragon + Blue Chrysanthemum + Vermilion Lotus + Sparkler Box 12.99+ 14.99+ 19.49+ 4.25 + 1000 + 985 + 40 + 15000 + 12990.00+ 14765.15 + 779.60 + 63750.00 + 92284.75 + 7475.06 + 99759.81 + Subtotal+ Tax (8.1%) Total

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

Students also viewed these Databases questions