Javatpoint Logo
Javatpoint Logo

School Fee Enquiry System in C++

The project's code is written in the C++ programming language. Speaking about the system, the user may explicitly examine a student's fee slip for a class, change the school's fee schedule, and also view the school's fee schedule as a list. The following features are available as menu options:

  • FEE SLIP: This feature shows the fee slip for a specific student from the class that the user has selected.
  • MODIFY: This feature changes the class's pricing schedule. The user can alter the costs for different fields.
  • LIST: This feature lists the total costs for all of the school's classes.
  • HELP: This feature lists each menu's features.
  • QUIT: This command ends a running program.

Program Breakdown

We will include the necessary files to support our code of the project in C++ without facing any type of error.

Fstream: library used to make new files, write information to existing files, and read data from existing files.

dos.h: This library includes routines for handling interrupts, making sound, handling dates and times, etc. It is exclusive to Borland and functions with compilers like Turbo C Compiler.

iomanip: To set the basefield flag, use this. To set the fill character, use this. It is applied to decimal precision settings. Field width is set with it.

To create or draw the borders for our school fee enquiry system in which all the content like fee slip, modify help and list will be present will be done with the help of the class draw having data members such as LINE_HOR, LINE_VER and BOX.

The structure of the fee class will look like the above code having float tuition, ac, science, computer, and activity. To modify the fee record of the system a function named MODIFY_RECORD() will contain addition, modification, FEE_SLIP, LIST, and HELP.

The main menu of the system will be containing some features of the system to select by a user and having switch case like F for opening fee.slip(), M for fee.MODIFICATION(), L for fee.LIST(), H for fee.HELP() and Q for exit(). If the user press key rather than these mentioned key the system will flag an error "Illegal Choice Press any key to return to Main Menu".

The function LINE_HOR will responsible to create a horizontal line for the menu of the system

The function LINE_VER will responsible to create a horizontal line for the menu of the system

The above function uses the functions LINE_HOR and LINE_VER to create a box structure for the menu of the system.

If a user in the middle of the system wants to edit the fee structure of the school than the above code will help. It will open the data file of the system to do the permanent changes by using the MODIFY_RECORD function.

If a user of the system want to list down the fee structure of each classes than the above code will help. It will display the list of the classes and the tution, ac, science, computer and activity fees structure.

The above code functionality is to display the fee structure including the tuition, science, computer and other activities and also the annual charges.

The above code functionality is to print the fee slip of the student name entered by the user. The system will flag a message saying "ENTER NAME OF THE STUDENT", the system will search the name in the data file of the system and print the fee slip of the user.

If the user did not understand how to use the system then it can press H for help the above instructions will get displayed on the screen.

Program for School Fee Enquiry System in C++

OUTPUT:

/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
          -                                                           -
          -     Fee Structure System                  -
          -                                                           -
          -     Press Any Key To ........Continue -
Press the corresponding Keys for the desired action..
                              * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
                              |                                                                                |
                              |                             F: FEE SLIP                                 |
                              |                                                                                |
                              |                            M: MODIFY                                |
                              |                                                                                |
                              |                                L: LIST                                      |                                                                                                         
                              |                                                                                 |
                              |                                H: HELP                                    |
                              |                                                                                 |
                              |                               Q: QUIT                                     |


??????????????????????????????????????????????????????????????????????
?                                          TOTAL FEES FOR THE CLASSES                                                    ?
????????????????????????????????????????????????????????????????????????
?    CLASS             TOTAL FEES                                                                                                  ?
????????????????????????????????????????????????????????????????????????
?    1                       380                                                                                                                     ?
?    2                       380                                                                                                                     ?
?    3                     380                                                                                                                ?
?    4                     380                                                                                                                ?
?    5                     380                                                                                                                ?
?    6                     460                                                                                                                ?
?    7                     460                                                                                                                ?
?    8                     460                                                                                                                ?
?    9                      530                                                                                                                  ?
?    10                  540                                                                                                                ?
?    11                  670                                                                                                                ?
?    12                  670                                                                                                                ?
???????????????????????????????????????????????????????????????????????
?   Press any key to continue.............                                                                                      ?
???????????????????????????????????????????????????????????????????????
Enter Class to see the Fee Structure : 11

     Name : Suraj

                    ??????????????????????????????????????????
                    ?                 YOUR SCHOOL                                                                             ?
                    ?                 Date: 19/11/2022                                                                       ?
                    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
                    ?                 NAME  : Suraj                                                                              ?
                    ?                 CLASS : 11                                                                                    ?
                    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
                    ?    PARTICULARS          ?    AMOUNT                                                           ?
                    ? ? ? ? ? ? ? ? ? ? ? ?  ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?  ? ? ?   ? 
                    ?                                     ?                                                                                ?
                    ?  Tuition fees               ?   2.5e+002                                                             ?
                    ?  Annual charges fees ?  50                                                                          ?
                    ?  Science fees              ?  0                                                                            ?
                    ?  Computer fees          ?  40                                                                          ?
                    ?  Activity fees              ?  40                                                                          ?
                    ?    TOTAL                      ?  380.000000                                                         ?
                    ?        Press any key to return to the main menu........                           ?
                    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
                    ?                                 CASHIER                                                                        ?
                    ??????????????????????????????????????????
Enter Class for the Modification of the Fee Structure : 12
Class : 12

     ~~~~~~~~~~~~
     Tution Fee  : 4.5e+002
     Annual charges Fee  : 50
     Science Fee : 60
     Computer Fee: 60
     Activity Fee : 50
     Do you want to modify the fee structure (y/n) : y
Tuition Fee : 100
     Annual Charges Fee : 100
     Science Fee : 40
     Computer Fee :40
     Activity Fee :100
     Do you want to save (y/n) : y

     7Record Modified or Press  for no changehange

     Press any key to continue...........
H
This is a fee structure program
It can be used to :
1. View the fee slip of a student of a class
2. Modify the fee structure of the school
3. View the fee structure of the school in the form of a list
The menu functions are described as follows
1. FEE SLIP:  This function displays the fee slip for a given student
 from the class entered by the user.
2. MODIFY:    This function modifies the fee structure for a give class.
 The user can change the fees for various fields
3. LIST:      This function displays the list of total fees for all the
Press any key to continue...........

Next TopicVector Pair in C++





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA