How rajeshkarmaker/mayer_doa_restaurant works
Mayer Doa Restaurant is a Windows terminal-based, multi-process restaurant management system. Customers choose dine-in or takeaway, reserve tables when needed, select available menu items, and place an order; admin staff manage order status, stock, sales, and session resets. Kitchen and diner screens independently poll shared order data to show placed and ready orders. The launcher starts the four screens, which coordinate through text files rather than a server. Relationships follow the README and shown C excerpts; unsampled data-file formats and runtime behavior are not inferred.
Main entry points: foodorder.txt Order History · admin.c Admin Panel · Mayer_Doa_Restaurant.c Screen Launcher · customer.c Customer Screen
Components 16
Screen Launch
- Screen Launcher
Mayer_Doa_Restaurant.c
Customer Ordering
- Customer Screen
customer.c - Table Reservation
customer.c - Menu and Order
customer.c - Order Recording
customer.c
Administration
- Admin Panel
admin.c - Status Control
admin.c - Sales Reports
admin.c - Stock Control
admin.c - Session Reset
admin.c
Order Displays
- Chef Dashboard
kitchen.c - Diner Pickup Board
audience.c
Shared Files
- Order History
foodorder.txt - Food Availability
foodstock.txt
Other components
- Restaurant User
- Restaurant Staff
Connections 24
- Restaurant User → Screen Launcher: starts system
README.md - Screen Launcher → Customer Screen: launches
Mayer_Doa_Restaurant.c - Screen Launcher → Admin Panel: launches
Mayer_Doa_Restaurant.c - Screen Launcher → Chef Dashboard: launches
Mayer_Doa_Restaurant.c - Screen Launcher → Diner Pickup Board: launches
Mayer_Doa_Restaurant.c - Restaurant User → Customer Screen: places orders
README.md - Customer Screen → Table Reservation: offers dine-in
customer.c - Customer Screen → Menu and Order: offers takeaway
customer.c - Table Reservation → Order History: reads availability
customer.c - Menu and Order → Food Availability: reads availability
customer.c - Menu and Order → Order Recording: records order
customer.c - Order Recording → Order History: appends order
customer.c - Restaurant Staff → Admin Panel: manages restaurant
README.md - Admin Panel → Status Control: dispatches
admin.c - Admin Panel → Sales Reports: dispatches
admin.c - Admin Panel → Stock Control: dispatches
admin.c - Admin Panel → Session Reset: dispatches
admin.c - Status Control → Order History: updates status
admin.c - Sales Reports → Order History: reads totals
admin.c - Stock Control → Food Availability: toggles stock
admin.c - Session Reset → Order History: completes orders
admin.c - Session Reset → Food Availability: restocks items
admin.c - Chef Dashboard → Order History: polls pending
kitchen.c - Diner Pickup Board → Order History: polls ready
audience.c