Question: please help write this code You need to control the number of people who can be in a Restaurant. Customers can enter and leave. But,

please help write this code

You need to control the number of people who can be in a Restaurant. Customers can enter and leave. But, NO new customer can enter if there are 100 people in the Restaurant. In this case, a message Restaurant is full should be displayed. Use positive integer to count people entering the restaurant and negative integer when they leave.

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!