Canteen Management System in C++

This C++ project for a canteen management system includes functions like customer and product search, display, change, and deletion. This program does a search on the client information kept in the file before allowing the user to submit an order. The software is made for small canteens that need to keep track of their data and have a finite number of patrons and items.

Additionally, customers have the choice of buying the item in the interim. If the customer chooses yes, they will be given the option to input the price for each item and, at the conclusion of the procedure, print invoices for the items they have bought as well as backup their purchased items from the pickup center. The admin will now solely oversee reviewing final bills and enhancing assistance for both new and current clients.

Features of Canteen Management System in C++

  • Customer's Menu: In the customer's menu, the administrator may add customer information, show all customers, search records, edit records, and remove records for customers.
  • Product's Menu: There are five sections in the products menu that allow the administrator to add new products, view all of the products that are already available, search records in the database, edit product information, and remove products.
  • Products Report Generator: The client enters the product number, followed by the amount of each item, and the program calculates the total with tax.

Program Breakdown

The above code will be going to be our structure of the item in the canteen management system, which will going to have the product id, product name, product company and the price of the product.

The above-mentioned predefined functions are going to be present in our canteen management system for an university like to modify the record we have modify_record which will help in modify the record in the system, delete_record which will allow the user to delete a entry in the system and so on.

You can access the customers menu, which is divided into five options, by selecting the administrator module. The first option is CREATE CUSTOMERS DETAILS. Third: SEARCH RECORD(QUERY), Fourth: MODIFY CUSTOMERS RECORDS, fifth: DELETE CUSTOMERS RECORDS. Second: DISPLAY ALL CUSTOMERS DETAILS.

The above-mentioned code will use to display the details of the customer which was entered by the customer. The entries like name of the customer, phone number and the address.

The customer can also edit there data entered before by them such as, the name of the customer, phone number and address of the customer and the above code will help in doing so.

The changes in the customer data will be displayed in a tabular form by the help of the above code.

The system will display all the customers in the canteen management system and above code will help to print or display the details.

If the administrator wants to modify the customer records if exist in the record file then it can be done from the above code else the system will flag an error that record does not exist.

If the administrator wants to delete a specific record from the dataset than above code will help. First the record which has to be deleted it will get searched in the record file and then the system will flag a message that DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N) then it will get deleted.

If the administrator wants to check wheather a customer record exist in the record file of the customer than it can be done with the help of above code and if the customer record does not exist in the record file then the system will flag a message that record not exist.

The above class is going to be for the products in the canteen. The products menu, which is divided into five choices, may be found in the administrator module. Create products, display all available products, search records, modify products, and delete products are the first four actions.

Output:

    * * * * * * * * * * * * * * * * CANTEEN-MANAGEMENT* * * * * * * * * * *  * * * * * * 
            = = = = = = = = = = = = = = = = =  = = = = = = = = = = = = = = = = = = = = = = = = 
     * * * * * * * * * * * * * * * * * S = Y = S = T =  E = M * * * * * * * * * * * * * * * * * * 
                                                  PROJECT: 


- - - - - - - - - - - - - - SCHOOL : STATE ENGINEERING UNIVERSITY - - - - - - - - - - - - - - - 
* * * * * CANTEEN * * * * MANAGEMENT * * * * SYSTEM * *  * * PROJECT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
                    = = = = == = = = = MAIN MENU = = = = = = = = = = = 
                            01. PRODUCTS REPORT GENERATOR
                            02. ADMINISTRATOR
                            03. EXIT
                     = = = = == = = = = = = = = = = = = = = = = = = = = = = = 
                         Please Select Your Option (1-3)
= = = = = = = = = = = = = = = = = ADMIN MENU = = = = = = = = = = = = = = = = = = = = 
                      1.CREATE PRODUCTS
                      2.DISPLAY ALL PRODUCTS AVAILABLE
                      3.SEARCH RECORD(QUERY)
                      4.MODIFY PRODUCTS
                      5.DELETE PRODUCTS
                      6.BACK TO MAIN MENU
                  Please Enter Your Choice (1-6) 1
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
          PROD NO:      2          NAME OF PROD:      Sandwich
          COMPANY:    Smith&Johns  QUANTITY           10

          PROD PRICE     45        DISCOUNT  5
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
   * * * * * * * * * * * * * * * PRODUCTS RECORD SAVED * * * * * * * * * * * * * * *
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
          PROD NO:      65         NAME OF PROD:      Samosa
          COMPANY:    Canteen      QUANTITY           14

          PROD PRICE     10        DISCOUNT  0
  = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =     
PROD NO:      1          NAME OF PROD:      Tea
          COMPANY:    Tata         QUANTITY           30

          PROD PRICE     15        DISCOUNT  0
* * * * * * * * * * * * * * * PRODUCTS RECORD SAVED * * * * * * * * * * * * * * *
  **********************PRODUCTS DETAILS***************************
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 PROD.NO      NAME        COMPANY          PRICE       QUANTITY  DISCOUNT
  = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

 1         Sandwich      Smith       PHP0              0           0%
 2         SandwichSmith&Johns       PHP1.19209e-007           2573-1.08421e-019%
 16704                                   PHP1.0842e-019           35849.10844e-044%
 256                                   PHP1.58456e+029           76809.10844e-044%

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
          PROD NO:       1         NAME OF PROD:      Tea
          COMPANY:       Tata      PROD PRICE:        15
          DISCOUNT:      0%        QUANTITY:          1
  = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =





Latest Courses