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: Create a function that can register customers  for table reservation. Name the function: register_user() 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 # of seats  = 1 Each table must differ on the number of seats that can accommodate. Example: Table #1 can only allocate 2 persons.

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.

 

  1. 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 the function: register_user()

    2. 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 # of seats  = 1
      Each table must differ on the number of seats that can accommodate.

      Example: Table #1 can only allocate 2 persons.
      Table #3 can accommodate 5 persons.

      Specify each table on how many guest it can accommodate.

      Function name: number_of_tables()

    3. Create a function that the system can reserve the table for a specific customer. The customer must be notified when a table is being reserved or occupied by another users.

      Function name: reserve_table()

    4. The program must be able to determine and check the number of guest before the customer will be able to reserved a table.

      Function name: number_guest()


      The three loops must be present in your code/program: For loop, While loop, Do while loop.

      Both If-else and switch statements must be present in you code. No using of struct and Global Declaration
Expert Solution
trending now

Trending now

This is a popular 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