Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Practical Quiz 1- Form A Write a C++ program that asks the user for the type of a pizza ['M' for meat, 'C for chicken
Practical Quiz 1- Form A Write a C++ program that asks the user for the type of a pizza ['M' for meat, 'C" for chicken or 'V' for vegetables) and the number of extra toppings (int). The program will calculate and display the cost of the pizza according to the following equation: Pizza cost base price 0.200 number of extra toppings Where the base price of the pizza is 2.400 for meat and chicken pizza and 2.200 for vegetables pizza. Format your output to 3 decimal places Sample Input/Output (input is bold) Enter the type of the pizza (C, M or V): C Enter the number of extra toppings: 2 Pizza cost: BD2.800
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