a student file type record, containing following information:
- Roll: type string of at most 10 character.
- first name : Type string of up to 30 characters.
- last name : Type string of up to 30 characters.
- Average: real type.
- Allowed: boolean.
Write parameterized action (procedures and functions) include:
1. Reading or creation: saving the N elements in a student file.
NB: Allowed field must be generated automatically by Average
the student ( <12 - false // >12 - true )
2. Calculate the average of the class.
3. Sorting file elements.--- The user can choose to sort by:
I - Last name First Name
II - Average (descending)
4. Search and display information about a student's file.
The user must enter the name and surname of the student.
5. Inserting an element in the file sorted by name, first name. The user must
give all information about the student to insert.
6. Deleting an item: The removal is done by giving the name and
first name of the student to remove.
7. Student admitted: Save the relevant information to admitted students
(Having an average equal or superior to 12)
###########################
The main interface of the program must be in the form of a choice menu
multiple to run the operation selected by the user:
1- Creation
2- calculating the average
3- sorting
4- search of a student
5- insertion
6- suppression
7- student admitted
8- exit