Create a C program for a Coffee shop business. The system can do the following task and the corresponding functions: 1. register customers for table reservation. Name the function: register_user() 2. 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 they can accommodate. 3. Specify each table on how many guest it can accommodate. Function name: number_of_tables() 4. 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() 5. 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

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 for a Coffee shop business. The system can do the following task and the corresponding functions:
1. register customers for table reservation.
Name the function: register_user()
2. 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 they can accommodate.

3. Specify each table on how many guest it can accommodate.

Function name: number_of_tables()

4. 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()

5. 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 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE 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