Answered step by step
Verified Expert Solution
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
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 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