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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!