Question: 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
Get step-by-step solutions from verified subject matter experts
