Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this output i also need output of when coupon is not used. #include #include using namespace std; // protoTypes double Medium(); double Large(); int

In this output i also need output of when coupon is not used.

#include #include using namespace std; // protoTypes double Medium(); double Large(); int main() { char size,coupon; double price =0.0; cout>size; size=toupper(size); if(size != 'M' && size != 'L') cout

double Medium() { char coupon = ' '; double price = 9.99; cout>coupon; if(toupper(coupon)=='Y') price -= 1; return price; } double Large() { char coupon = ' '; double price = 12.99; cout>coupon; if(toupper(coupon)=='Y') price -= 2; return price; }

Output:

image text in transcribed

image text in transcribed

ium) or L(arge) pizza $2 coupon (Y/N) N Price: $12.99

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago