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...


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




Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here