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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education