Create a C program that can do the following.   Create a C program for a Coffee shop business. The system can do the following task and the corresponding functions:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 3E
icon
Related questions
Question

Create a C program that can do the following.

 

Create a C program for a Coffee shop business. The system can do the following task and the corresponding functions:

  1. Create a function that can register customers for table reservation.

Name of function: register_user()

  1. Create a function that can accommodate the customers. The system must have a specific number of tables that can accommodate the customers.

Note: Input must not be less than 10 tables. Minimum number of seats is 1. Each table must differ on the number of seats that can accommodate.

Example:

Table 1 can accommodate 2 persons.
Table 3 can accommodate 5 persons.

Specify each table on how many guests it can accommodate.

Function name: number_of_tables()

  1. Create a function that the system can reserve the table for a specific customer. The customer must be notified when a table is available or is already reserved another customer. If selected table is already reserved, ask the customer to select another table to reserve.

Function name: number_guest()

 

The three loops must be present in the code/program: For loop, while loop, do-while loop.

Both if-else and switch statements must be present in the code.

No using of struct and global declaration.

 

 

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning