Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer the following questions using C, thank you. (1) Chocolate Bar Orders Assume that you have a corner store and need to order some
Please answer the following questions using C, thank you.
(1) Chocolate Bar Orders Assume that you have a corner store and need to order some chocolate bars. called chocolateBars.c that displays the following menu Write a program 1. Oh Henry 2. Coffee Crisp 3. Aero 4. Smarties 5. Crunchie $0.65 $0.80 $0.60 $0.70 $0.75 Your program should then ask the user for the # of boxes of each type of chocolate bar to be ordered How many boxes of Oh Henry bars would you like (48 bars per box) How many boxes of Coffee Crisp bars would you like (48 bars per box)? 15 How many boxes of Aero bars would you like (48 bars per box)? 10 How many boxes of Smarties would you like (48 bars per box) ? 130 How many boxes of Crunchie bars would you like (48 bars per box) 1 Your program should then display the total cost for each type of chocolate bar and the sub total indicating the final cost before taxes. It should also then display the HST (13%) amount followed by the total amount due as follows ($0.65 x 48) -$62.40 15 boxes of Coffee Crisp ($0.80 x 48)$ 576.00 ($0.60 x 48)288.00 ($0.70 x 48) $ 4368.00 ($0.75 x 48) -$36.00 2 boxes of Oh Henry 10 boxes of Aero 130 boxes of Smarties 1 boxes of Crunchie Sub Total HST - $ 5330.40 $ 692.95 Amount Due -6023.35 Notice how things are nicely aligned and formatted. Ensure that your code is also properly lined up Test your program with each of the following test cases as well as the above test case Oh Henry Coffee Crisp Aero Smarties Crunchie SubTotal $168.00 $508.80 $0.00 HST Amount Due $ 21.84 $ 66.14 $ 0.00 $189.84 $574.94 $ 0.00 2 0 3 4 5 0Step 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