Question: THE CODE IS #include #include using namespace std; int main() { const double BANANA_COST = 0.62; const double STRAWBERRY_COST = 0.60; const double MANGO_COST =
THE CODE IS
#include
int main() { const double BANANA_COST = 0.62; const double STRAWBERRY_COST = 0.60; const double MANGO_COST = 0.48; const double BLUEBERRY_COST = 0.57; const double TAX_RATE = 0.045;
string customerName; int smoothieType, smoothieSize; double costPerOunce, smoothieCost, subtotal, salesTax, totalCost;
// Display smoothie type menu and get user's choice cout > smoothieType;
// Determine cost per ounce based on user's choice switch (smoothieType) { case 1: costPerOunce = BANANA_COST; break; case 2: costPerOunce = STRAWBERRY_COST; break; case 3: costPerOunce = MANGO_COST; break; case 4: costPerOunce = BLUEBERRY_COST; break; default: cout
// Display smoothie size menu and get user's choice cout > smoothieSize;
// Calculate smoothie cost based on user's choice switch (smoothieSize) { case 1: smoothieCost = costPerOunce * 20; break; case 2: smoothieCost = costPerOunce * 32; break; case 3: smoothieCost = costPerOunce * 40; break; default: cout
// Calculate subtotal, sales tax, and total cost subtotal = smoothieCost; salesTax = subtotal * TAX_RATE; totalCost = subtotal + salesTax;
// Display bill for smoothie cout > ws, customerName); cout
return 0; }
INSTRUCTIONS
You have been hired by a local smoothie shop to write a program that will calculate the cost of a smoothie order. The shop sells four types of smoothies in three different sizes: Small (20 oz), Medium (32 oz) and Large (40 oz). Your program should use a menu for the type of smoothie and a second menu for the smoothie size. Calculate the total cost of the order including tax and display a bill for the smoothie. See the Sample Output. The sales tax rate is 4.5%. Use named constants to hold the cost per ounce of each of the products and the sales tax rate. Use the constants in your calculations and wherever else they are appropriate in your program. Calculate the subtotal: cost of the smoothie (smoothie type * size in ounces), sales tax (subtotal * tax rate), and total cost of the order (subtotal + tax rate) and display a bill for the Tea
. Product Cost per Ounce
Banana $0.62
Strawberry $0.60
Mango $0.48
Blueberry $0.57
IM WONDERING IF THERE WOULD BE A Way to make output this way
thats my output

but i need this output
I wondering if it put the text in center as you see in the second picture
and also mention which code of use for centering the text for output statement
SHOULD BE IN c++
D C+t- Smoothie Shop Project Part 1 - Sample Run \#1 Process exited after 62.38 seconds with return value Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
