Question: C++ Problem You are tasked with writing a program for a catering service. For the program you need to implement the following algorithm. (100 pts)

C++ Problem

You are tasked with writing a program for a catering service. For the program you need to implement the following algorithm. (100 pts)

Prompt the user with the message How many people are planning on attending your event

If numberOfPeople < 10 or numberOfPeople > 500

display message Dont bother us, please call somebody else.

exit the program

else

If numberOfPeople > 100

prompt user Select your free dessert

If freeDessert = 1

display the message You have selected cake.

If freeDessert = 2

display the message You have selected cookies.

If freeDessert = 3

display the message You have selected ice cream

If freeDessert < 1 or freeDessert > 3

display the message Bad selection

else

display the message Your event is nothing special.

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!