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


C LANGUAGE PLEASE


Create a C program that can do the following.<br>1. Create a C program for a Coffee shop business. The system can do the following task and the corresponding functions:<br>1. Create a function that can register customers for table reservation.<br>Name the function: register_user()<br>2. Create a function that can accommodate the customers. The system must have a specific number of tables that<br>can accommodate the customers. Note: input must not be less than 10 tables. Minimum # of seats = 1<br>Each table must differ on the number of seats that can accommodate.<br>Example: Table #1 can only allocate 2 persons.<br>Table #3 can accommodate 5 persons.<br>Specify each table on how many guest it can accommodate.<br>Function name: number_of tables()<br>3. Create a function that the system can reserve the table for a specific customer. The customer must be notified<br>when a table is being reserved or occupied by another users.<br>Function name: reserve_table()<br>4. The program must be able to determine and check the number of guest before the customer will be able to<br>reserved a table.<br>Function name: number_guest()<br>The three loops must be present in your code/program: For loop, While loop, Do while loop.<br>Both If-else and switch statements must be present in you code. No using of struct and Global Declaration<br>

Extracted text: 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
Start<br>Creation of Tables<br>with Accommodations<br>number_of_tables()<br>True/User<br>chooses to exit<br>while<br>Program Exits<br>quit != 1<br>False/User<br>wants to input<br>New user registers<br>register_user()<br>Registered user<br>wants to reserver<br>table<br>number_guest()<br>System finds table<br>that can accomodate<br>reserve_table()<br>System asks if you want to continue<br>inputting/new customer<br>

Extracted text: Start Creation of Tables with Accommodations number_of_tables() True/User chooses to exit while Program Exits quit != 1 False/User wants to input New user registers register_user() Registered user wants to reserver table number_guest() System finds table that can accomodate reserve_table() System asks if you want to continue inputting/new customer
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here