Question: Objectives To practice with writing a small C + + main ( ) program, along with compiling and running it To practice with basic C
Objectives
To practice with writing a small C main program, along with compiling and running it
To practice with basic C inputoutput features, along with some simple decimal formatting
To practice with basic arithmetic operators in C
Task
Create a program Filename: menu.cpp that will simulate ordering different goodies from the Trolley as if you are on your way to Hogwarts. You will ask the user how many of certain candy items they'd like, calculate, and print the total for the customer, including wizard tax. Yes there's even taxes in the wizarding world
Declare CONSTANT double variables representing the prices of each item on the menu. The prices should be:
Bertie Botts Every Flavour Beans: $
Chocolate Frog: $
Exploding BonBons: $
Cauldron Cake: $
Use these variables anytime you need to do calculations that involve the prices of these items, or anytime you DISPLAY the prices of these items.
Declare a CONST double variable to represent the Wizard Tax rate of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
