Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

4. What does Net Settlement mean?

Answered: 1 week ago

Question

Customers have to repeat information they have already provided.

Answered: 1 week ago

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago