Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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